
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (81)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (11072)
-
lavf : move avpriv function definition to internal.h
1er avril 2018, par Josh de Kock -
FFmpeg output to textfile causing 500 Internal Server Error in PHP
27 mars 2018, par user3080392I have a PHP script with two FFmpeg commands. The first command combines a list of .ts files into a single .ts file and logs the output information into a textfile. The second command converts the combined .ts file into an mp4 file and logs the output information into a textfile.
Here’s the PHP :
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
$ffmpeg = "/usr/local/bin/ffmpeg";
$vidClips = 'my_vids/vidClipslist.txt';
$combinedFileTs = 'my_vids/combinedFileTs.ts';
$logFileCombine = 'my_vids/logFileCombine.txt';
$logFileConvert = 'my_vids/logFileConvert.txt';
$combinedFileMp4 = 'my_vids/combinedFileMp4.mp4';
shell_exec("$ffmpeg -f concat -safe 0 -i $vidClips -c copy $combinedFileTs 1> $logFileCombine 2>&1");
shell_exec("$ffmpeg -i $combinedFileTs -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -q 12 $combinedFileMp4 1> $logFileConvert 2>&1");
echo "Video finished.";
?>When I run this, my 500.shtml file message is shown on the page. However, I get no other error message echoed to the page nor are there any errors in my Cpanel error log. I also have a php error log set up, but it doesn’t show any errors.
Oddly, both of the FFmpeg commands do what they’re supposed to, i.e., the "combinedFileTs.ts", "logFileCombine.txt", "combinedFileMp4.mp4", and "logFileConvert.txt" are all created. It’s just that I’m getting the 500 error and the PHP script following the two FFmpeg commands is not being run, i.e., echo "video finished."When I remove the output directive on the first FFmpeg command, i.e., "1> $logFileCombine 2>&1", everything works. All the files are created, the proceeding PHP script is run, and I don’t get the 500 error.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
$ffmpeg = "/usr/local/bin/ffmpeg";
$vidClips = 'my_vids/vidClipslist.txt';
$combinedFileTs = 'my_vids/combinedFileTs.ts';
$logFileCombine = 'my_vids/logFileCombine.txt';
$logFileConvert = 'my_vids/logFileConvert.txt';
$combinedFileMp4 = 'my_vids/combinedFileMp4.mp4';
shell_exec("$ffmpeg -f concat -safe 0 -i $vidClips -c copy $combinedFileTs");
shell_exec("$ffmpeg -i $combinedFileTs -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -q 12 $combinedFileMp4 1> $logFileConvert 2>&1");
echo "Video finished.";
?>Also, the first FFmpeg command takes about 2 min to run. Thinking that the problem was due to the PHP script being killed, I increased the max_execution_time to 600 and the memory_limit to 512M in my php.ini file but that did not fix the problem.
I need both FFmpeg commands to produce an output log textfile and I need the proceeding PHP code to run.
-
avcodec/noise_bsf : move the reference in the bsf internal buffer
20 mars 2018, par James Almer