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
avcodec_encode_video2
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.
frame->pts = av_frame_get_best_effort_timestamp(frame)