pyav / Libav / ffmpeg disable B frames

659 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 answers

4
Gyan 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.