-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRT: Stutter/Choppy/Glitch covert to RTMP. After converting to RTMP, there is jitter. #3164
Comments
Occasionally, certain videos will appear, such as the built-in Avatar flv in SRS. From the observation, it appears that the timestamp of the pulled stream elapses faster than the timestamp of the pushed stream. In other words, if the stream is pushed for 10 seconds, the playback has already advanced to around 18 seconds. Upon analyzing the code, it was found that the lack of proper interleaving of audio and video timestamps resulted in jitter correction. After analysis, it was found that SRT streaming uses MPEG-TS payload, where audio is combined and sent in multiple packets. From this problematic video, it can be observed that 16 audio frames are combined to form a single PES packet.
|
There are several solutions:
The final choice is 4. Add the parameter ffmpeg -re -i ./doc/source.flv -c copy -pes_payload_size 0 \
-f mpegts 'srt://127.0.0.1:10080?streamid=#!::r=live/livestream,m=publish'
|
* SRT: print warning log when audio duration too large * Fix #3164: SRT: Choppy when audio ts gap is too large. v5.0.65 Co-authored-by: winlin <winlin@vip.126.com>
SRS 5.0, after coverting SRT to RTMP, the streaming is stuttering/choppy/glitch.
Replay:
doc/source.flv
.TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: