ons 2023-01-04 klockan 19:31 +0800 skrev zhilizhao(赵志立):
> 
> > On Jan 4, 2023, at 18:16, Anton Khirnov <an...@khirnov.net> wrote:
> > 
> > Does this mean the encoder will produce packets with
> > dts=AV_NOPTS_VALUE?
> 
> MediaCodec should not encode B frames by default, so dts = pts by
> default.
> B frames can be enabled explicitly, in that case dts is
> AV_NOPTS_VALUE.
> 
> Android system’s MP4 muxer works very hard to recreate dts to
> workaround
> the limitation of MediaCodec API. It create ‘valid’ but almost
> useless
> files with a lot of jitters.

Maybe we should disallow B-frames entirely until the MediaCodec API is
fixed so as to not add to this mess?

/Tomas

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to