Skip to content

FFmpeg-like vsync logic #225

@kharazi

Description

@kharazi

I want to sample specific video frames using this command:

ffmpeg -i SampleVideo_1280x720_2mb.mp4 -vf select='eq(pict_type\,I)' -vsync 2 -s 1280x720 -f image2 thumbnails-%02d.jpeg
What's AV equievalent for this command and how can I pass select parameter in decode function?

container = av.open(path) 
for frame in container.decode(video=0, vsync=2, select='eq(pict_type\,I)') # ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions