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
When switching live streams, the edge server encounters an error while retrieving the source_url. #4011
Comments
Sorry, you only describe the final states and logs, how to reproduce it step by step? There should be a reproduce step that is to describe the steps. |
@winlinvip Sorry for forgetting to add the steps steps test according to the following topology:
ffmpeg -i rtmp://localhost/imlive/WavMain.exe_rooms_282_20240403 -ar 22050 -c:a libmp3lame -f flv rtmp://localhost:1945/imlive/WavMain.exe_rooms_282_20240403
ffmpeg -i rtmp://localhost/imlive/WavMain.exe_rooms_282_20240403 -ar 22050 -c:a libmp3lame -f flv rtmp://localhost:1945/imlive/WavMain.exe_rooms_283_20240403
ffmpeg -i rtmp://localhost/imlive/WavMain.exe_rooms_282_20240403 -ar 22050 -c:a libmp3lame -f flv rtmp://localhost:1945/imlive/WavMain.exe_rooms_284_20240403 It seems that SRS 5.0 only recognizes one of the streams.
Considering the incomplete stream recognition on the origin with SRS 5.0, I switched the origin to 4.0 and then started testing the edge with 5.0.
[2024-04-03 13:17:54.393][INFO][21177][348dms90] HTTP #0 10.202.100.189:58167 GET http://172.17.245.182:8080/imlive/WavMain.exe_rooms_283_20240403.flv, content-length=-1
[2024-04-03 13:17:54.393][INFO][21177][348dms90] flv: source url=/imlive/WavMain, is_edge=1, source_id=vb84bv6q/9jnmn8eg
[2024-04-03 13:17:54.393][INFO][21177][348dms90] flv: source url=/imlive/WavMain, is_edge=1, source_id=vb84bv6q/9jnmn8eg
[2024-04-03 13:18:10.050][INFO][21177][8545n554] HTTP #0 10.202.100.189:58176 GET http://172.17.245.182:8080/imlive/WavMain.exe_rooms_284_20240403.flv, content-length=-1
[2024-04-03 13:18:10.050][INFO][21177][8545n554] flv: source url=/imlive/WavMain, is_edge=1, source_id=vb84bv6q/9jnmn8eg
[2024-04-03 13:18:10.051][INFO][21177][8545n554] flv: source url=/imlive/WavMain, is_edge=1, source_id=vb84bv6q/9jnmn8eg |
Describe the bug
When I perform some transcoding on the origin using ffmpeg (exec), then locally forward it to the SRS's 1945 port as the origin, with an edge server configured in remote mode, when I attempt to switch live streams on the edge server (these live streams have similar names like AAA_BBB_id_CCC), the switch is not successful. It always sticks to the first stream. This issue exists in version 5.0 but not in version 4.0, and even if version 4.0 is used as the origin, the issue persists with version 5.0 on the edge server.
Version
5.0_b1(has bug)
5.0_r1(has bug)
4.0_r4(ok)
4.0_r1(ok)
Topology
Conf
Additional context
summary
5.0
4.0
The text was updated successfully, but these errors were encountered: