Video screenshot of ffmpeg

To take a screenshot of a video based on ffmpeg, the operation steps are as follows:

1. Set the start time, you can first view the metadata information of the video to obtain the duration and then operate

2. Execute the interception command

The specific operations are as follows:

ffmpeg -i  c:\video\12_1.mkv   -y -f image2  -ss 00:10:00 -vframes 1  -s 640x360 c:\video\test.jpg

The command description is as follows:

-i input

-y override

-f format image2 a format

-ss start value

-vframes If the frame is greater than 1, then the output will add %03d c:\video\test%03d.jpg

-s format size size

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326676690&siteId=291194637