Calculate PTS before frame encoding in FFmpeg

后端 未结 3 1215
悲&欢浪女
悲&欢浪女 2020-12-24 09:05

How to calculate correct PTS value for frame before encoding in FFmpeg C API?

For encoding I\'m using function avcodec_encode_video2 and then writing i

3条回答
  •  暖寄归人
    2020-12-24 09:36

    There's also the option with setting it like frame->pts = av_frame_get_best_effort_timestamp(frame) but I'm not sure this is the correct approach either.

提交回复
热议问题