I recently posted about extracting jpeg frames from video files. I received an email from a reader who was having problems with the singlejpeg argument. It turns out that the latest version of FFmpeg doesn’t support this argument, which has now been replaced by mjpeg. I haven’t had the opportunity to upgrade, but if you run into problems be sure to give this a try.
And if you do, follow these tips (man I need a blog):
- Don’t use the -ss argument. Just doesn’t work (though ffmpeg seems to complete successfully no file is created)
- The name of the file must include a %d (it will be replaced with the frame number). IMO, this is a bug.
Here’s my working ffmpeg options (replace the %s with your input and output file paths):
ffmpeg -i %s -vframes 1 -an -s 320×240 -t 00:00:05 -y %s
HTH,
Dave
Dave,
Thanks for the feedback. I’ll run some tests and follow up with a post shortly.
Take care,
Dennis