Page 1 of 1

ffmpeg flv conversion, progress bar is not coming

Posted: Thu May 20, 2010 1:49 am
by sougat
Hi,

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);
Can any one please help me why it is happening? or what is the mistake I am doing.

Thanks in advance.

Regards,
Sougat