Closed Baa14453 closed 3 years ago
Hi, please see the attached video: https://user-images.githubusercontent.com/9057997/112766185-8165c280-9008-11eb-8067-ecd40f8c77d9.mp4
At first the stream is running fine. When I upload an image to Discord, my upload bandwidth is consumed and OBS starts dropping frames. When this happens the HLS playlists being made by SRS stop, this is what the brown window at the top is showing. Even when the upload bandwidth is restored and OBS goes back to normal, HLS playlists do not resume.
I have experienced this as well. Thanks @Baa14453 for opening this.
Perhaps some digging and we can get past this.
I have experienced this as well. Thanks @Baa14453 for opening this. @praisegeek
I think I've found two solutions please try them out:
Set hls_dispose
to a high number, like 300.
I misread the docs and though this was a binary option for whether or not video fragments are deleted when the stream stops, but it's a timeout in seconds for how long SRS waits for data before deleting the video files. By increasing it I think I've given OBS more time to transfer and it seems to be working as fine, from the user's perspective the video feed just halts for a few seconds until my upload speed catches up.
Use Hardware encoding in OBS.
I have no idea why but using NVENC encoding in OBS made the issue go away, even without changing hls_hispose
...
@Baa14453 I can confirm hls_dispose does work. Thanks
Description'
Please ensure that the markdown structure is maintained.
HLS Playlist and Fragments break if RTMP upload is interrupted temporarily.
4.0.81
Please ensure that the markdown structure is maintained.
Please ensure that the markdown structure is maintained.
Replay
Please ensure that the markdown structure is maintained.
How to replay bug?
Please ensure that the markdown structure is maintained.
Use Open Broadcaster to livestream to SRS using the RTMP protocol.
Interrupt the stream somehow, for me it happens whenever I upload a large image somewhere else, like to Discord or to a website. Anything that makes OBS drop into the red zone for upload capacity.
When the stream is interrupted, SRS will stop creating HLS playlists and video fragments. Even if OBS recovers and continues to upload as normal SRS won't make new fragments.
SRS will continue to function as if everything is fine, but the HLS playlist wont come back until the stream is stopped and started again.
Expected behavior (Expect)
Please ensure that the markdown structure is maintained.
Start streaming RTMP from Open Broadcaster to SRS.
Interrupt the stream somehow, for me it happens whenever I upload a large image somewhere else, like to Discord or to a website. Anything that makes OBS drop into the red zone for upload capacity.
SRS might stop creating HLS playlists and video fragments temporarily but will start again once the connection is restored.
I will make a demonstration video later.
TRANS_BY_GPT3