
Recherche avancée
Autres articles (97)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (7148)
-
ffmpeg opening video file at lower bitrate
23 février 2018, par Xeno BossI have a php page which runs ffmpeg from shell with the exec() function as follows
ffmpeg -i rtsp://address:port/stream -b:v 512k output.mp4
and since many people could visit the page at once it could fire up many ffmpeg processes for different rtsp streams simultaneously which will eat up my bandwidth.
Is there some way for me to reduce the bitrate at which the streams are opened ?Note : I assumed the bitrate is the most effective factor for reducing bandwidth, please correct me if you have any better suggestions.
-
Subprocess call stopping asynchronously-executed Python parent process
6 mai 2016, par Suriname0The following shell session demonstrates the behavior I am seeing :
[user@compname python-test]$ cat test.py
#!/usr/bin/env python
import subprocess
from time import sleep
proc = subprocess.Popen("ffmpeg", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
print "Starting process: " + str(proc)
status = proc.poll()
while status is None:
print "Process still running."
sleep(0.01)
status = proc.poll()
print "Status: " + str(status)
[user@compname python-test]$ python test.py
Starting process:
Process still running.
Process still running.
Status: 1
[user@compname python-test]$ python test.py &
[4] 6976
[user@compname python-test]$ Starting process:
Process still running.
Process still running.
[4]+ Stopped python test.py
[user@compname python-test]$ ps
PID TTY TIME CMD
4684 pts/101 00:00:00 python
4685 pts/101 00:00:00 ffmpeg
7183 pts/101 00:00:00 ps
14385 pts/101 00:00:00 bashAs you can see, when the simple test Python program is run normally, it completes successfully. When it is run asynchronously (using
&
), the Python process is stopped as soon as the subprocess call is complete (andpoll()
would return a non-None
value).- The same behavior occurs when using
Popen.wait()
- The behavior is unique to
ffmpeg
. - Both the Python process and
ffmpeg
are ending up stopped, as seen in the call tops
.
Can someone help me detangle this behavior ? I don’t see anything in the documentation for the
subprocess
module, bash’s&
operator, orffmpeg
that would explain this.The Python version is 2.6.6, bash is GNU bash version 4.1.2(1)-release (x86_64-redhat-linux-gnu), ffmpeg is version 3.0.1-static.
Thank you for any help !
- The same behavior occurs when using
-
how to kill process in linux which was not killed
3 juin 2013, par R SquareHi I am developing a application in linux for which I am writing a shell script to run ffmpeg and it was working fine but when i want to kill the process of ffmpeg it was not working
kill 2628
where 2628 is my process id