2015-10-13 21:17 GMT+11:00 Carl Eugen Hoyos <[email protected]>:

> YIRAN LI <mrfun.china@...> writes:
>
> > And does this mean, for any encoders that can
> > generate B frames, I need to do similar
> > pre-processing before calling av_write_frame()?
>
> No, only for encoders that produce broken pts/dts.
>
> > So if I don't know possible max B frames, then I
> > can't use av_write_frame to correctly mux?
>
> You set max_bframes when you init the encoder.
>
> Feel free to subtract 1 from dts as an alternative.
>
> Great thanks Carl, by the way if subtract 1 from dts, then I'll have a
negative dts value, is that still valid?
​


> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to