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.