Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The below command creates jpeg out of .mpg, but fails to create jpeg out of .flv.

How can I do that?

$ffmpegpath = FFMPEG_PATH;
$input = "video_file/orig/fdgdf.mpg";//Lady.flv";
$output = "video_file/thumb/kuni.jpeg"; 

$command = "$ffmpegpath -i $input -an -ss 00:00:$fromdurasec -r 1 -vframes 1 -s 80x80 -f mjpeg -y $output";
share|improve this question
ffmpeg -i video.flv -an -ss 00:00:03 -an -r 1 -vframes 1 -y %d.jpg 


share|improve this answer
No its not working – Ipsita Dec 2 '10 at 9:35
Ipsita was probably using an outdated version of ffmpeg, the command here does indeed work perfectly well. – evilsoup Jan 24 '13 at 22:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.