ffmpeg – capture screenshot from a video file

1
ffmpeg -i /my_video_file_dir/video.flv -y -f image2 -ss 8 -sameq -t 0.001 -s 320*240 /image_dir/screenshot.jpg

320*240 : image dimension is 320 pixels width and 240 pixels height
-ss 8 : screenshot will be taken at 8 second after video starts.

  • Share/Save/Bookmark

4 Responses to “ffmpeg – capture screenshot from a video file”

  1. Alex says:

    Big ups, this has helped me!

  2. Snowcore says:

    Wow, thanks!
    How can I control the quality of the screenshot image?

  3. rick says:

    Hi Snowcore,

    “-sameq” means use the same quality of the source video.

    I read the long “man ffmpeg”, I couldn’t find where to adjust the quality other than just “-sameq”

  4. Tombe says:

    Hello,

    Your code does the trick. Thanks. Does ffmpeg allows the user to take a snapshot of a movie directly by accessing a DVD disc or a video_ts folder in a similar way? If yes, how, please?

Leave a Reply