Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The procedure for using ffmpeg to obtain one screenshot from a specific time in a video is as follows:

  1. Open the terminal or command prompt on your computer.
  2. Navigate to the directory where the video file is located using the "cd" command.
  3. Type the following command:

    -ss [hh:mm:ss] -i [input_video_file] -vframes 1 [output_image_file]

    Replace [hh:mm:ss] with the specific time in the video where you want to take the screenshot, [inputvideofile] with the name of your video file, and [outputimagefile] with the name you want to give to the screenshot file. For example:

    -ss 00:01:30 -i myvideo.mp4 -vframes 1 screenshot.jpg

  4. Press Enter to execute the command. ffmpeg will start processing the video and take a screenshot at the specified time.

  5. Once the process is completed, you will find the screenshot file in the same directory where your video file is located.