Grab a picture from a FLV File

Source: Internet
Author: User
Tags flv file

Use the following command parameters:

FFmpeg-I 11.flv-F image2-SS 30-T 0.001-S 400 × 300 2.jpg

Where:

-I 11. FLV-indicates that the input file is 11.flv, and-I indicates that the input file is followed by the name of the input file, which cannot be saved;

-F image2-indicates the forced format conversion to be used,-F indicates the forced format conversion, and image2 indicates the commonly used image format (including JPG format );

-SS 30 -- indicates that the video capture starts from 30 seconds,-SS indicates the conversion start time, and the last 30 indicates the duration, in seconds;

-T 0.001 -- indicates the conversion duration, that is, the length of time specified by-T from the start time specified by-SS in the video file to be converted. In the screenshot, A frame is captured at the beginning regardless of the length. However, this parameter cannot be saved. Otherwise, it will be converted from the set start time to the end of the video file by default, however, the final result is still a frame at the start time, wasting resources.

-S 400*300 -- the size of the specified output file is 400 dpi * 300 dpi, with a length of 400 dpi and a width of 300 dpi;

2.jpg -- Name of the output file

Summary: The preceding command line statement captures an image at 30 s in the 11. FLV file and sets the output image size to 400*300.

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.