HTTP-FLV stream playback issue in SRS version 6.0-a1 after multiple successful pushes
!!! Before submitting a new bug report, please ensure you have searched for any existing bugs. Duplicate issues or questions that are overly simple or already addressed in the documentation will be removed without any response.
Describe the bug After frequently pushing videos successfully, it often happens that when the player plays the HTTP-FLV stream, SRS does not push the video stream.
Version 6.0-a1
To Reproduce Frequent pushing of video streams, video publish successful, HLS video can be opened.
Expected behavior However, the HTTP-FLV video cannot be opened.
Screenshots
Additional context
After examining the SRS logs, as shown in the image above, it was discovered that the stream was abnormally terminated before the publish hook callback succeeded. This resulted in the HTTP-FLV connection showing active=0. By modifying the SrsLiveSource::stream_is_dead function in the srs_app_source.cpp file to return failure when stream_die_at_ == 0, the aforementioned anomaly was not reproduced.
TRANS_BY_GPT4
I encountered the same issue when streaming with GB28181. I eventually found that enabling HLS triggers this phenomenon. After turning off the HLS switch, the streaming has been successful, and no errors have occurred for a long time. FLV can also play continuously.
Should have been fixed in 6.0.182 and 7.0