Index: trunk/extensions/MetavidWiki/maintenance/transcode_to_flv.php |
— | — | @@ -19,9 +19,11 @@ |
20 | 20 | include_once('../skins/mv_embed/flvServer/MvFlv.php'); |
21 | 21 | |
22 | 22 | define('MV_BASE_MEDIA_SERVER_PATH', 'http://mvbox2.cse.ucsc.edu/mvFlvServer.php/'); |
| 23 | +//ffmpeg based (bad) |
| 24 | +//$flvEncodeCommand = 'ffmpeg -i $input -ar 22050 -async 2 -aspect 4:3 -f flv -acodec libmp3lame -ac 1 -ab 32k -b 250k -s 400x300 $output'; |
| 25 | +//mencoder based (good) |
| 26 | +$flvEncodeCommand = 'mencoder $input -noskip -mc 0 -o $output -of lavf -oac mp3lame -lameopts abr:br=32 -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=400:300 -srate 22050'; |
23 | 27 | |
24 | | -$flvEncodeCommand = 'ffmpeg -i $input -ar 22050 -async 2 -aspect 4:3 -f flv -acodec libmp3lame -ac 1 -ab 32k -b 250k -s 400x300 $output'; |
25 | | - |
26 | 28 | $doneWithTrascode=false; |
27 | 29 | while($doneWithTrascode==false){ |
28 | 30 | $doneWithTrascode=true; |