pyav / Libav / ffmpeg disable B frames

668 Views Asked by At

I am using pyav (python wrapper for libav) to ingest an H264 video stream. Is there an option to disable B-frames? I think the same question would apply to libav and ffmpeg.

1

There are 1 best solutions below

4
On BEST ANSWER

The skip_frame option of the codeccontext should be set with value bidir or constant AVDISCARD_BIDIR (if assigning directly) to skip bidirectional frames.