How can I use FFMPEG to extract any frame of an image from a video ~

Source: Internet
Author: User

In my other log, there was no progress in the days when I used the FFMPEG command to extract images of specified frames from the video, in the past, the list of FFMPEG parameter commands I found on the Internet was not complete, and the-SS parameter was missing. so this problem was solved only now.

Today, after printing out the FFMPEG command using FFMPEG-h> ffmpeg.txt, we found this parameter:

-SS time_off set the Start Time Offset

You can use the-SS parameter to process the conversion task from the specified time. For example:

FFmpeg-I test2.asf-y-F image2-SS 08.010-T 0.001-s 352x240 B .jpg

The problem of any frame is solved as long as the time parameter after-SS is generated randomly and within the video validity period.

In addition, the unit of time followed by-SS is second.

2006-06-27Supplement:


In addition, by specifying - SS, and - Vframes can also achieve the same effect.

At this time-The time followed by the SS parameter can be written in two ways: hh: mm: SS or directly written in seconds:

FFmpeg - I test. ASF - Y - F image2 - SS 00 : 01 : 00   - Vframes 1 Test1.jpg
Or
FFmpeg - I test. ASF - Y - F image2 - SS 60   - Vframes 1 Test1.jpg

In this way, the output image is the same.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.