Open HunterTang opened 8 months ago
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:
origin: 172.17.245.180 - edge: 172.17.245.182
Here are some issues with the origin:
I used nginx_rtmp (exec ffmpeg) on the origin to convert the same stream into 3 different streams as shown below.
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
When I use SRS 4.0, I can see the following on the console:
When I use SRS 5.0, I can see the following on the console:
It seems that SRS 5.0 only recognizes one of the streams.
Here are some issues with the edge:
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.
When I pull the following 3 streams separately via flv, I see the following on the console.
I saw the switch records in the log as follows.
[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
I am currently using version 271 of SRS4. I am using the HTTP-API to retrieve some service information. I have noticed that for the same stream access, the PageUrl is the same, even though my Nginx logs only record one access.
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