-
-
Notifications
You must be signed in to change notification settings - Fork 514
Description
RTMP Pull Link Breaks After a While on New Instance with GPU
I have migrated a couple of webcams to a new Restreamer instance on new hardware with a GPU. CPU usage sits around 16% and GPU around 2%.
I'm noticing that the RTMP pull link provided breaks after a while (see image). The RTMP push (e.g., to YouTube) works fine. HLS works fine. But the RTMP pull link breaks—not immediately, though. This URL feeds OBS (i.e., OBS and a couple of others pull from it off and on).
Also, ffprobe from the server console confirms this link does not work, even though it is pushing to YouTube (RTMP) just fine. But the RTMP pull URL doesn't work, although it does work fine initially.
The IPv6 addresses must be within Docker. This setup doesn't use IPv6. 172.17.0.2 is the Restreamer container IP. Image is the CUDA version.
This happens on multiple cameras. Happy to provide additional info as I chase this down. Thank you!
Logs
10.1.6.9:36578: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:36578" path="/49559f23-7148-43f7-b670-92945cb91513.stream" who="PLAY"
ts=2025-10-06T02:12:26Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:36582: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:36582" path="/05163ff1-155a-4163-ae18-a4459824a670.stream" who="PLAY"
ts=2025-10-06T02:12:31Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:41072: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:41072" path="/49559f23-7148-43f7-b670-92945cb91513.stream" who="PLAY"
ts=2025-10-06T02:29:01Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:58910: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:58910" path="/75eb44f6-78e9-4191-b114-5480c07cfcc5.stream" who="PLAY"
ts=2025-10-06T02:29:50Z level=ERROR component="RTMP" msg="read tcp [::1]:1935->[::1]:49136: i/o timeout" action="ERROR" address=":1935" client="[::1]:49136" path="/de6466cf-a674-4d85-9918-890e0ee99963.stream" who="PUBLISH"
ts=2025-10-06T02:29:50Z level=ERROR component="RTMP" msg="read tcp [::1]:1935->[::1]:49196: i/o timeout" action="ERROR" address=":1935" client="[::1]:49196" path="/75eb44f6-78e9-4191-b114-5480c07cfcc5.stream" who="PUBLISH"
ts=2025-10-06T02:29:51Z level=ERROR component="RTMP" msg="read tcp [::1]:1935->[::1]:49164: i/o timeout" action="ERROR" address=":1935" client="[::1]:49164" path="/49559f23-7148-43f7-b670-92945cb91513.stream" who="PUBLISH"
ts=2025-10-06T02:29:52Z level=ERROR component="RTMP" msg="read tcp [::1]:1935->[::1]:49102: i/o timeout" action="ERROR" address=":1935" client="[::1]:49102" path="/e48cb4d8-3b51-4a48-861e-20e462f2b0b8.stream" who="PUBLISH"
ts=2025-10-06T02:29:55Z level=ERROR component="RTMP" msg="read tcp 172.17.0.2:1935->172.17.0.1:51422: i/o timeout" action="ERROR" address=":1935" client="172.17.0.1:51422" path="/7109e2c3-af0d-42c4-904b-4be5d97e56f8.stream" who="PUBLISH"
ts=2025-10-06T02:29:55Z level=ERROR component="RTMP" msg="read tcp [::1]:1935->[::1]:52098: i/o timeout" action="ERROR" address=":1935" client="[::1]:52098" path="/05163ff1-155a-4163-ae18-a4459824a670.stream" who="PUBLISH"
ts=2025-10-06T02:29:59Z level=ERROR component="RTMP" msg="read tcp [::1]:1935->[::1]:49112: i/o timeout" action="ERROR" address=":1935" client="[::1]:49112" path="/ea1c1921-c11e-486c-9565-d077378920e9.stream" who="PUBLISH"
ts=2025-10-06T02:29:59Z level=ERROR component="RTMP" msg="read tcp 172.17.0.2:1935->172.17.0.1:41410: i/o timeout" action="ERROR" address=":1935" client="172.17.0.1:41410" path="/live/sin" who="PUBLISH"
ts=2025-10-06T02:33:51Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:60038: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:60038" path="/de6466cf-a674-4d85-9918-890e0ee99963.stream" who="PLAY"
ts=2025-10-06T02:33:51Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:60576: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:60576" path="/871e5bb3-9c72-4c05-b07a-dd8b481b29ab.stream" who="PLAY"
ts=2025-10-06T02:34:04Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:51830: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:51830" path="/e48cb4d8-3b51-4a48-861e-20e462f2b0b8.stream" who="PLAY"
ts=2025-10-06T02:34:27Z level=ERROR component="RTMP" msg="detected sequence of non-changing timestamps: 245562 (msgtypeid 9)" action="ERROR" address=":1935" client="[::1]:33050" path="/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream" who="PUBLISH"
ts=2025-10-06T02:34:35Z level=ERROR component="RTMP" msg="detected sequence of non-changing timestamps: 237616 (msgtypeid 8)" action="ERROR" address=":1935" client="[::1]:35404" path="/c2fd1522-c6b1-4453-a337-3cc5dbcf2b25.stream" who="PUBLISH"
ts=2025-10-06T02:35:54Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:51434: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:51434" path="/de6466cf-a674-4d85-9918-890e0ee99963.stream" who="PLAY"
ts=2025-10-06T02:36:11Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:53620: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:53620" path="/871e5bb3-9c72-4c05-b07a-dd8b481b29ab.stream" who="PLAY"
ts=2025-10-06T02:36:29Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:50858: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:50858" path="/05163ff1-155a-4163-ae18-a4459824a670.stream" who="PLAY"
ts=2025-10-06T02:37:41Z level=ERROR component="RTMP" msg="write tcp 172.17.0.2:1935->10.1.6.9:35682: write: connection reset by peer" action="ERROR" address=":1935" client="10.1.6.9:35682" path="/e48cb4d8-3b51-4a48-861e-20e462f2b0b8.stream" who="PLAY"
Additional Info: ffprobe Output
ffprobe also shows failure. I even tried the container IP. This is from the console hosting the container. But OBS can still pull it. I imagine that will fail soon.
root@dh1:# ffprobe -v verbose rtmp://10.1.98.2/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream
ffprobe version 6.1.1-3ubuntu5 Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[tcp @ 0x5996e9f2e540] Starting connection attempt to 10.1.98.2 port 1935
[tcp @ 0x5996e9f2e540] Successfully connected to 10.1.98.2 port 1935
rtmp://10.1.98.2/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream: Input/output error
root@dh1:# ffprobe -v verbose rtmp://10.1.98.2/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream
ffprobe version 6.1.1-3ubuntu5 Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[tcp @ 0x5ccf59684540] Starting connection attempt to 10.1.98.2 port 1935
[tcp @ 0x5ccf59684540] Successfully connected to 10.1.98.2 port 1935
rtmp://10.1.98.2/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream: Input/output error
root@dh1:# ffprobe -v verbose rtmp://172.17.0.2/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream
ffprobe version 6.1.1-3ubuntu5 Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[tcp @ 0x6444977f8540] Starting connection attempt to 172.17.0.2 port 1935
[tcp @ 0x6444977f8540] Successfully connected to 172.17.0.2 port 1935
rtmp://172.17.0.2/0c7f4c26-4ac4-4bb3-b5cd-4ed6cb54a667.stream: Input/output error
root@dh1:#
<img width="354" height="269" alt="Image" src="https://github.com/user-attachments/assets/1c0086a1-cb98-4d5f-9c53-02052e28d24e" />