I need to convert "mpg" (video) file to "flv".
I am using ffmpeg version 5.1.
I could convert, but the output file does not show progress bar. I believe this happens because the meta data is not successfully copied to the new one.
The code I have written is as follows:
Code: Select all
$inputFileName = "may4_sm.mpg";
$outputFileName = "demo1234.flv";
//$tmpfile = rand(1,999999).$outputFileName;
$tmpfile = "abc.flv";
$command = "/usr/local/ffmpeg-0.5.1/bin/ffmpeg -i '".$_SERVER['DOCUMENT_ROOT']."/ffmpegtest/".$inputFileName."' -y ".$_SERVER['DOCUMENT_ROOT']."/ffmpegtest/".$tmpfile." &> ".$_SERVER['DOCUMENT_ROOT']."/ffmpegtest/testing.info";
$a = exec($command,$b);Thanks in advance.
Regards,
Sougat