Hi all i have three questions.
Q1, i have this code
global $c;
$ffmpeg = $c['ffmpeg'];
$flvtool2 = $c['flvtool2'];
$sourcepath = $c['video_temp_path'] . $audioname;
$outputpath = $c['mp3_path'] . $name . '.mp3';
//$vwidth = $c['video_width'];
//$vheight = $c['video_height'];
$command = "export LD_LIBRARY_PATH=/usr/lib;" .
"$ffmpeg -s ".$vwidth."x".$vheight." -i $sourcepath -acodec mp3 -ar 22050 " . $outputpath;
//echo $command;
@exec($command, $output);
It converts mpeg to FLV just fine. Will it work with thease extensions:
MPEG, MOV, WMV, AVI, FLV
I'd test it myself, but i dont have too many videos. The ones i have are all MPEG.
Q2, How can i convert WAV & WMA files to Mp3?
Q3, What other audio/video formats can be converted to FLV, or MP3 using FFMPEG php?
Thank you for your time
~Gabor Szauer