FFmpeg mjpeg Argument



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.



2 Responses to “FFmpeg mjpeg Argument”

  1. Dave Myron says:

    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

  2. dennis says:

    Dave,

    Thanks for the feedback. I’ll run some tests and follow up with a post shortly.

    Take care,
    Dennis

Leave a Reply