Ffmpeg
-
Testing Your Work
+
Troubleshooting FFMPEG
-
Convert from the Commandline Directly
+ -
+ - Grab a test video: + -
wget http://cylon.liquidweb.com/testmedia/PrinceofPersia_e3.mp4
+ -
+ - FFMPEG & FLVTool2 CLI Conversion + -
+ - Convert test avi to flv and inject flv metadata with FFMPEG and FlvTool2: + -
ffmpeg -i PrinceofPersia_e3.mp4 -ar 22050 -ab 56000 -b 5000 -f flv -s 320x180 - | flvtool2 -U stdin PrinceofPersia_e3.flv
+ -
+ - Mencoder & FLVTool2 CLI Conversion + -
+ - Convert test avi to flv and inject flv metadata with Mencoder and FlvTool2: + - + - mencoder PrinceofPersia_e3.mp4 -o PrinceofPersia_e3_mencoder.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc \ + - -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:keyint=10:cbp:last_pred=3 -vf scale=320:180 -srate 22050 + -
+ - flvtool2 -U PrinceofPersia_e3_mencoder.flv + -
+ -
Test ffmpeg-php functions
+ -
+ - This will use a php script to call ffmpeg and use ffmpeg-php to get the current Audio information and dimensions and pass them to the ffmpeg encoding line. + -
+ - wget -O videoinfo.php http://cylon.liquidweb.com/testmedia/hidden/videoinfo.txt + - + - php -f videoinfo.php PrinceofPersia_e3.mp4 + -
+ -
+ - This script will run, and query the movie for results. + -
+ - Template:Box Note + -
+ - Template:Box Warning + -
+ -
+ -
+ - Now Remove the script. + - rm -f videoinfo.php