ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.24k stars 622 forks source link

Fix RTMP timestamp overflow after 24 days of non-stop streaming #6559

Closed lastpeony closed 1 month ago

lastpeony commented 1 month ago

https://github.com/ant-media/Ant-Media-Server/issues/6486

mekya commented 1 month ago

Hi @lastpeony ,

Thank you for the fix. I just made simple refactor.

Here is a quick trick. If you use setpts filter, it makes you reproduce the problem in a couple of seconds ;)

ffmpeg -stream_loop -1 -re -i src/test/resources/test_video_360p.flv -an -filter_complex "setpts=PTS+21474836/TB" -vcodec libx264 -profile:v baseline -f flv rtmp://localhost/live/stream1

Cheers Oguz

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
89.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud