[Libav-user] How to calculate pts/dts ???
wolverin
wolverin82 at mail.ru
Mon Jan 2 16:13:13 EET 2023
>>Output #0, rtsp, to 'rtsp:// 127.0.1.1:555 ':
>> Stream #0:0: Video: h264, yuv422p(tv, bt470bg/unknown/unknown), 1280x720, q=2-31, 500 kb/s, 15 tbr, 90k tbn
>>
>>
>>I compared such an approximate calculation of pts/dts in ffprobe for my code and ffmpeg and they match until the real fps becomes different from the calculated one, then I see either delays or frame losses in VLC.
>
>You can not use 15 from video frame rate to calculate PTS when video is variable frame rate.
ok, but then how do I calculate the pts/dts of each frame correctly???
I want my SoC ARM to provide maximum transcoding speed, this is especially important for a resolution of 1920x1080 when fps is 8-11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230102/a103ed71/attachment.htm>
More information about the Libav-user
mailing list