ffmpeg flv conversion, progress bar is not coming

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
sougat
Forum Newbie
Posts: 3
Joined: Thu May 20, 2010 1:39 am

ffmpeg flv conversion, progress bar is not coming

Post 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
Last edited by Benjamin on Thu May 20, 2010 2:49 am, edited 1 time in total.
Reason: Added [syntax=php] tags.
Post Reply