restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

Unable to probe SRT source

Open muko82 opened this issue 2 years ago • 7 comments

Subject of the issue I've just configured the docker image on my raspberry. Everything, including rtmp, is working fine. But I'm stuck on getting the SRT verification. I Also have a public static IP for my connection (which is detected at the first run).

Your environment datarhei/rpi-latest image on docker CE. Raspberry PI4 OBS configured to be SRT caller (I did copy and paste of the URL provided)

Files ffmpeg version 5.1.3-datarhei Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.1 (Alpine 11.2.1_git20220219) 20220219 configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-libv4l2 --enable-v4l2_m2m --enable-alsa --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 14:23:05.973054/SRT:RcvQ:w1!W:SRT.cn: processAsyncConnectRequest: REJECT reported from HS processing: Peer rejected connection - not processing further [srt @ 0x7f8fc1c870] Connection to srt://localhost:6000?mode=caller&transtype=live&latency=20000&streamid=27536a7d-d603-46cf-b667-45bfd4633e8c.stream,mode:request,token:XXXXXXX&passphrase=XXXXXXX failed (I/O error), trying next address [srt @ 0x7f8fc1c870] Connection to srt://localhost:6000?mode=caller&transtype=live&latency=20000&streamid=27536a7d-d603-46cf-b667-45bfd4633e8c.stream,mode:request,token:XXXXXXXXx&passphrase=XXXXXXX failed: I/O error srt://localhost:6000?mode=caller&transtype=live&latency=20000&streamid=27536a7d-d603-46cf-b667-45bfd4633e8c.stream,mode:request,token:XXXXXX&passphrase=XXXXXXX: I/O error

Steps to reproduce Install the docker image and try to configure the SRT source

Expected behavior Being able to probe the source

Actual behavior Getting the errors above from the probe

Any suggestion? I already opened all firewall ports where OBS resides (it's working fine with both RTMP and RTMPS). Thanks

muko82 avatar Jan 06 '24 14:01 muko82

Same issue here. Restreamer installed in Docker with port 6000/udp forwarded to it, OBS is indicating that it is streaming, but the probe fails. (Tried with token and both with without a passphrase, and without neither token nor password.)

System log shows this:

ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49396" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49397" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49398" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49399" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49400" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49401" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49402" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49403" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49404" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49405" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49406" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49407" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49408" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49409" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49410" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49411" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49412" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49413" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49414" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49415" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49416" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49417" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49418" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49419" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49420" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND" ts=2024-01-07T17:15:56Z level=INFO component="SRT" msg="no publisher for this resource found" address=":6000" client="192.168.1.3:49421" handler="CONNECT" resource="9ff4725c-f7e7-4503-938c-0c05c3712dd7.stream" status="NOTFOUND"

P.S. downgrading from the 2.7.0 image to 2.6.0 fixes the issue, so it must be something introduced in the latest version.

Steltek avatar Jan 07 '24 17:01 Steltek

I also experienced the same issue. I had assumed I was missing something so I posted it to the Discussions forum, but appears it may actually be a bug.

JeffThis avatar Jan 07 '24 17:01 JeffThis

it happens the same to me. It's a bug in latest version

gvillo avatar Jan 09 '24 19:01 gvillo

I have the same problem, I was using srt to transmit, and I switched to rtmp after trying to go back to SRT and I couldn't give the probe to use again

LuizStSantos avatar Jan 10 '24 18:01 LuizStSantos

Same problem here.

miglourenco avatar Jan 11 '24 20:01 miglourenco

There's currently a bug in the UI that displays a wrong SRT URL to be pasted into OBS. See this description: https://github.com/datarhei/restreamer/issues/635#issuecomment-1837234576

This bug has been fixed and the fix will be available in the next release.

ioppermann avatar Jan 12 '24 11:01 ioppermann

Thanks! Manually adding the ".stream" to the url's streamid worked.

An interesting observation is that if you start the player in the UI then the (incomplete) SRT link apparently works. :smile:

Obeyed avatar May 14 '24 11:05 Obeyed