How to use FFmpeg

后端 未结 3 524
刺人心
刺人心 2020-12-28 21:39

I\'m trying to extract frames from a video and I\'ve picked ffmpeg ( tell me if you know something better ) for this task.

I\'ve downloaded its source and don\'t know

3条回答
  •  庸人自扰
    2020-12-28 22:40

    If you only want use ffmpeg you should just get a build and not the source itself.

    To extract a frame from a video use the following command line:

    ffmpeg -i input.avi -r 1 -f image2 -s 120x96 images%05d.png
    

    Where input.avi is your video, 120x96 the dimension of the output image. There are a lot of options you can use to specify the exact frame in the movie, but that would definetely be too much to show here. Take a look at this page to get a more detailed description.

    Best wishes,
    Fabian

提交回复
热议问题