RE: FFMPEG-PHP: converting videos
its 2009 ! lol
this is what i'm looking for but , i really hate flv ! flash now supports h264 !
how can i change this,
---------------------------------------------------------------------------------------
<?php
convertToFlv( "test.avi", "test.flv" );
function convertToFlv( $input, $output ) {
echo "Converting $input to $output<br />";
$command = "ffmpeg -i $input -s 320x240 -ar 44100 -r 12 $output";
echo "$command<br />";
shell_exec( $command );
echo "Converted<br />";
}
?>
----------------------------------------------------------------------------------------------------------
to support this,
mencoder video.mpeg -o output.mp4 -af volume=10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encopts bitrate=300:level_idc=41:bframes=3:frameref=2: nopsnr: nossim: pass=1: threads=auto -oac mp3lame
i'm not sure if mencoder can be called through like php. which runs with ffmpeg-php i believe.
i just want to encode to h264 video, mp3 audio, and output container to be ogg or ogm.
and yes i do notice this post was made years ago lol who knows maybe i get reply
|