[Libav-user] How to skip some useless B frames after using av_seek_frame for a video h264 encoded?

Peter Ross pross at xvid.org
Sat Apr 4 13:32:11 CEST 2015

On Sat, Apr 04, 2015 at 07:15:54PM +0800, 人间之表 wrote:


> How to skip some useless B frames in the right way?

AVCodecContext.skip_frame = AVDISCARD_NONREF

Then it back to AVCodecContext.skip_frame = AVDISCARD_DEFAULT as you approach the target b-frame.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150404/7dc099b3/attachment.asc>

More information about the Libav-user mailing list