Skip to content

Need a easy filter sample. e.g. Create a thumbnail image every X seconds of the video #338

@swordry

Description

@swordry

In FFmpeg wiki: https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
we use cmd:
fmpeg -i input.flv -ss 00:00:14.435 -vframes 1 out.png
We get one picture in Specified time
ffmpeg -i input.flv -vf fps=1 out%d.png
then get lots of images. One picture per second.

How to use PyAV to achived the same goal ? Does anybody make a demo? Thanks.

BTW: by use cmd:
ffmpeg -i input.flv-r 1 -y -f image2 -s 240*320 pc%3d.jpg
use '-r' arg seems to be the same purpose, Which method is more efficient ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions