
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (66)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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
Sur d’autres sites (8538)
-
Transcoding with ffmpeg libfaac reduces the audio duration
20 juillet 2012, par sky609I have to transcode a mpegts file : input.ts(H.264 and AAC)
So I use the following command line :
ffmpeg -y -i input.ts -acodec libfaac -vcodec copy out.ts
But I find that the duration of output.ts's audio is shorter than that of the input.ts !If I do the following iterations, the output's audio will be shorter and shorter.
ffmpeg -y -i out.ts -acodec libfaac -vcodec copy out-iter1.ts
ffmpeg -y -i out-iter1.ts -acodec libfaac -vcodec copy out-iter2.ts
ffmpeg -y -i out-iter2.ts -acodec libfaac -vcodec copy out-iter3.ts
ffmpeg -y -i out-iter3.ts -acodec libfaac -vcodec copy out-iter4.ts
ffmpeg -y -i out-iter4.ts -acodec libfaac -vcodec copy out-iter5.tsMy ffmpeg's version is 0.6.6. libfaac's version is 1.28.
input.ts's audio duration is 10.432 seconds. out-iter5.ts's audio duration is 10.56 seconds
And I have also tried ffmpeg with version 0.11.
And it makes the audio longer than the original input.So my question is : how to make sure the output's audio duration is same as the input's audio.
Since libfaac will make the audio shorter, how can I compensate for it ?
(For some reason I can't use -acodec copy directly.) Any suggestions ? -
transcoding with ffmpeg libfaac makes auido's duration shorter
20 juillet 2012, par sky609I have to transcode a mpegts file : input.ts(H.264 and AAC)
So I use the following command line :"ffmpeg -y -i input.ts -acodec libfaac -vcodec copy out.ts"
But I find that the duration of output.ts's audio is shorter than that of the input.ts !
If I do the following iterations, the output's audio will be shorter and shorter.
"ffmpeg -y -i out.ts -acodec libfaac -vcodec copy out-iter1.ts"
"ffmpeg -y -i out-iter1.ts -acodec libfaac -vcodec copy out-iter2.ts"
"ffmpeg -y -i out-iter2.ts -acodec libfaac -vcodec copy out-iter3.ts"
"ffmpeg -y -i out-iter3.ts -acodec libfaac -vcodec copy out-iter4.ts"
"ffmpeg -y -i out-iter4.ts -acodec libfaac -vcodec copy out-iter5.ts"
My ffmpeg's version is 0.6.6. libfaac's version is 1.28.
input.ts's audio duration is 10.432 seconds
out-iter5.ts's audio duration is 10.56 secondsAnd I have also tried ffmpeg with version 0.11.
And it makes the audio longer than the original input.So my question is : how to make sure the output's audio equals to the input's audio.
Since libfaac will make the audio shorter, how can I compensate for it ?
(For some reason I can't use -acodec copy directly.)Thank you for your help !
-
PHP shell_exec wait for script to done ? [duplicate]
6 mars 2016, par Melih BüyükbayramThis question already has an answer here :
I have a PHP script that queries a database for a list of jobs to be done and fires off other PHP scripts based on what it finds in the database (basically a process queue).
Some of the scripts that the queue runner script executes may take 30 seconds or so to finish running (convert video, resizing images, etc).
The problem is that shell_exec() in the queue runner script calls the processing scripts, but then doesn’t wait for them to finish, resulting in the queue not being completed.
Queue runner script :
#!/usr/bin/php
<?php
// Loop through database and find jobs to be done
shell_exec("nohup $command > /dev/null 2> /dev/null & echo $! &");
?>Running the job script directly from the command line works and the PDF is created.
Any ideas on how to fix this ? Or a better way to run a process queue ?