<div dir="ltr"><div><div dir="auto">Hello</div><div dir="auto"><br></div><div dir="auto">If you are using ffmpeg on the client too, this is a strange feature of core demuxer. RTP timestamp wraps</div><div dir="auto">at 2^32/(90000*3600) ~= 13 hours 15 minutes. RTP decoder correctly unwraps RTP timestamps to 64-bit</div><div dir="auto">values. But later, in demux.c, they are treated as 32-bit and incorrectly unwrapped twice, producing negative</div><div>timestamp deltas.<br></div><div dir="auto"><br></div><div dir="auto">You can set correct_ts_overflow ffmpeg parameter on the client to fix this.</div><div dir="auto"><br></div><div dir="auto">If you are not using ffmpeg as RTSP client, you can look at <span class="gmail-pl-en">finalize_packet function</span> in libavformat/rtpdec.c</div><div dir="auto">to write your own unwrap code.<br></div><div dir="auto"><span class="gmail-pl-en"><br></span></div><div><span class="gmail-pl-en">Yurii<br></span></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ср, 15 февр. 2023 г. в 08:54, wolverin via Libav-user <<a href="mailto:libav-user@ffmpeg.org" target="_blank">libav-user@ffmpeg.org</a>>:<br></div></div></div></div></div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>Hello, maybe someone has encountered — I transcoding from MJPEG to H264 and streaming RTSP publication to the server, everything works well for exactly 13 hours and 15 minutes, then the pts/dts timestamps on the server suddenly start coming from scratch, therefore the online video goes down, I don't have timestamps reset in the code and don't set the duration for online stream.<br>where can the duration of the stream be set or what can affect it???</div><div> </div><div> </div><div> </div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div></div>
</div>