Edward-Wu / srt-live-server

srt live server for low latency
Other
644 stars 192 forks source link

Unable to receive stream from server #104

Closed boxerab closed 3 years ago

boxerab commented 3 years ago

I am using the following command to successfully send a file to the live server:

gst-launch-1.0 filesrc location=BigBuckBunny_512kb.ts ! mpegvideoparse ! mpegtsmux !  srtsink uri=srt://127.0.0.1:8080/?streamid=uplive.sls.com/live/test

Unfortunately my attempt to receive this stream after sending is not working:

gst-play-1.0 srt://127.0.0.1:8080?streamid=uplive.sls.com/live/test

I get the following error:

WARNING Error on SRT socket. Trying to reconnect.

I also tried live server's own utility

./slc -r "srt://127.0.0.1:8080?streamid=live.sls.com/live/test" -o foo

and output is

2021-09-09 17:53:35:969 SLS WARNING: [0x55e25e75ce80]CSLSSrt::libsrt_read failed, sock=509037936, ret=-1, err_no=5004.
2021-09-09 17:53:35:969 SLS ERROR: [0x7ffe93207020]CSLSClient::read_data_handler, libsrt_read failure, n=-1.
srt live client, cur bitrate=0(kb)2021-09-09 17:53:35:970 SLS ERROR: CSLSSrt::libsrt_neterrno, err=5004, Operation not supported: Invalid socket ID.
2021-09-09 17:53:35:970 SLS WARNING: [0x55e25e75ce80]CSLSSrt::libsrt_read failed, sock=509037936, ret=-1, err_no=5004.
2021-09-09 17:53:35:970 SLS ERROR: [0x7ffe93207020]CSLSClient::read_data_handler, libsrt_read failure, n=-1.
srt live client, cur bitrate=0(kb)2021-09-09 17:53:35:976 SLS ERROR: CSLSSrt::libsrt_neterrno, err=5004, Operation not supported: Invalid socket ID.
2021-09-09 17:53:35:976 SLS WARNING: [0x55e25e75ce80]CSLSSrt::libsrt_read failed, sock=509037936, ret=-1, err_no=5004.
2021-09-09 17:53:35:976 SLS ERROR: [0x7ffe93207020]CSLSClient::read_data_handler, libsrt_read failure, n=-1.
srt live client, cur bitrate=0(kb)b)
gitpierpy commented 3 years ago

For playing, change uplive.sls.com with live.sls.com Domains for publishers and players are different. This works if you are using default settings

boxerab commented 3 years ago

@gitpierpy thanks! working now