[Libav-user] How to calculate pts/dts ???

wolverin wolverin82 at mail.ru
Thu Jan 5 17:17:40 EET 2023


>>If you use libx264 encoder, have you tried tune zerolatency compensation flag?
Of course I use it like this
 
av_dict_set(&pDicOut, "tune", "zerolatency", 0);
avcodec_open2(pCdcCtxOut, pCdcOut, &pDicOut);
 
I probably still have a mistake somewhere in incorrect values or incorrect use of these variables
AVCodecContext->time_base
AVStream->avg_frame_rate
AVStream->r_frame_rate
 
Maybe for outgoing AVFrames it is necessary to count pts/dts in AVStream->time_base, but for AVPacket use AVCodecContext->time_base?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230105/3ed2f42d/attachment.htm>


More information about the Libav-user mailing list