restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

Connection drops at high bitrate

Open Hoerli1337 opened this issue 2 years ago • 12 comments

Hi! :)

I am using Restreamer to distribute my livestream to other platforms. Restreamer is running in a LXC via proxmox. -> datarhei-core v16.10.1 (linux/amd64) - orange-dawn-2621 -> datarhei-core v16.10.1 (linux/amd64) - solitary-feather-3863 (2 Cores, 4GB RAM, 20GB SSD) For this I used the RTMP server. My stream machine sends a 1440p stream with 60FPS and 17000kbps to Restreamer. This sends the stream to 3 platforms.

As soon as the throughput exceeds a bit more than 50Mbits - which is the case with 3 streams - the stream has permanent disconnects. OBS continues to stream, so nginx is reachable, only Internally a service crashes and then restarts. This means for all other platforms receiving the stream, there is a short interruption. For restreamers, the stream is interrupted and then starts over. If I stay below 40-50Mbits throughput, it runs. The log doesn't tell me anything, because it doesn't show any connection problems.

What have I tested?

  • I have turned on / off several options in Restreamer -> Has no influence on the crashes
  • I have created a fresh Debian 11 VM and tested it in it -> Has no influence on the crashes
  • Reduced the data rate of the stream to 10000kbps -> It works with that with 3 endpoints
  • Stream with 50000kbps -> The stream crashes on the first viewer after a view secons or one minute
  • Tested on another Proxmox server -> Does not affect the crashes
  • Measured the available bandwidth via iperf3 to the server -> 1Gbits are consistently present, without connection loss
  • I installed everything on a Pine ROCK64 (ARM64) -> No problems! (datarhei-core v16.8.0 (linux/arm64) - long-dew-3702)

Hoerli1337 avatar Nov 05 '22 22:11 Hoerli1337

We ask for your understanding that we only process requests with an error logfile.

svenerbeck avatar Nov 06 '22 21:11 svenerbeck

Which logs would you like to have? Here are a few extracts:

Docker:

ts=2022-11-12T19:24:49Z level=INFO component="Process" msg="Scheduling restart in 1m0s" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:24:50Z level=INFO component="Process" msg="Starting" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf"
ts=2022-11-12T19:24:50Z level=INFO component="Process" msg="Started" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf"
ts=2022-11-12T19:24:50Z level=INFO component="RTMP" action="START" address=":1935" client="127.0.0.1:35416" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"
ts=2022-11-12T19:24:52Z level=INFO component="Session" msg="Active" id="/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0.m3u8" location="/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0.m3u8" peer="" reference="6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0" type="hlsingress"
ts=2022-11-12T19:24:52Z level=INFO component="Session" msg="Active" id="/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8" location="/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8" peer="" reference="6cbe40a4-6094-48eb-8924-a0e4879faaaf" type="hlsingress"
ts=2022-11-12T19:25:00Z level=INFO component="Process" msg="Starting" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:25:00Z level=INFO component="Process" msg="Started" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:25:00Z level=INFO component="Session" msg="Active" extra="[192.168.178.0] Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0" id="bdQsJVdFeNCkxMyZ2R4FEc" location="/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0.m3u8" peer="192.168.178.121:5080" reference="6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0" type="hls"
ts=2022-11-12T19:25:00Z level=INFO component="Process" msg="Stopped" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:25:00Z level=INFO component="Process" msg="Scheduling restart in 1m0s" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:25:57Z level=INFO component="RTMP" action="START" address=":1935" client="192.168.178.3:51797" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"
ts=2022-11-12T19:25:57Z level=INFO component="Session" msg="Active" id="192.168.178.3:51797" location="play:/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" peer="192.168.178.3:51797" reference="6cbe40a4-6094-48eb-8924-a0e4879faaaf" type="rtmp"
ts=2022-11-12T19:26:00Z level=INFO component="Process" msg="Starting" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:26:00Z level=INFO component="Process" msg="Started" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:26:01Z level=INFO component="Process" msg="Stopped" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:26:01Z level=INFO component="Process" msg="Scheduling restart in 1m0s" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:26:08Z level=INFO component="RTMP" action="START" address=":1935" client="192.168.178.3:51814" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"
ts=2022-11-12T19:26:08Z level=INFO component="Session" msg="Active" id="192.168.178.3:51814" location="play:/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" peer="192.168.178.3:51814" reference="6cbe40a4-6094-48eb-8924-a0e4879faaaf" type="rtmp"
ts=2022-11-12T19:26:55Z level=INFO component="RTMP" action="STOP" address=":1935" client="127.0.0.1:35416" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"
ts=2022-11-12T19:26:55Z level=INFO component="Process" msg="Stopped" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf"
ts=2022-11-12T19:26:55Z level=INFO component="Process" msg="Scheduling restart in 15s" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf"
ts=2022-11-12T19:26:55Z level=INFO component="RTMP" action="STOP" address=":1935" client="192.168.178.3:51814" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"
ts=2022-11-12T19:26:56Z level=INFO component="RTMP" action="STOP" address=":1935" client="192.168.178.3:51797" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"
ts=2022-11-12T19:27:01Z level=INFO component="Process" msg="Starting" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:27:01Z level=INFO component="Process" msg="Started" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:27:01Z level=INFO component="Process" msg="Stopped" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:27:01Z level=INFO component="Process" msg="Scheduling restart in 1m0s" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf_snapshot"
ts=2022-11-12T19:27:10Z level=INFO component="Process" msg="Starting" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf"
ts=2022-11-12T19:27:10Z level=INFO component="Process" msg="Started" id="restreamer-ui:ingest:6cbe40a4-6094-48eb-8924-a0e4879faaaf"
ts=2022-11-12T19:27:10Z level=INFO component="RTMP" action="START" address=":1935" client="127.0.0.1:51466" path="/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream" who="PLAY"

Process Details:

ffmpeg version 4.4.2-datarhei Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.3.1 (Alpine 10.3.1_git20211027) 20211027
  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-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-debug --disable-doc --disable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, flv, from 'rtmp://localhost/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream?token=docker01':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    2.1             : false
    7.1             : false
    4.0             : false
    5.1             : false
    encoder         : obs-output module (libobs version 28.1.0)
    3.1             : false
    4.1             : false
  Duration: 00:00:00.00, start: 0.011000, bitrate: N/A
  Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 327 kb/s
  Stream #0:1: Video: h264 (High), yuv420p(tv, bt709, progressive), 2560x1440 [SAR 1:1 DAR 16:9], 51200 kb/s, 60 fps, 60 tbr, 1k tbn, 120 tbc
Output #0, hls, to 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0.m3u8':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    2.1             : false
    7.1             : false
    4.0             : false
    5.1             : false
    service_provider: datarhei-Restreamer
    3.1             : false
    4.1             : false
    title           : http://192.168.178.121:5080/6cbe40a4-6094-48eb-8924-a0e4879faaaf/oembed.json
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 2560x1440 [SAR 1:1 DAR 16:9], q=2-31, 51200 kb/s, 60 fps, 60 tbr, 90k tbn, 60 tbc
  Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 327 kb/s

Process Report:

@1668281302 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281304 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0090.ts' for writing
@1668281304 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0080.ts' for writing
@1668281306 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0091.ts' for writing
@1668281306 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0081.ts' for writing
@1668281306 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281308 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0092.ts' for writing
@1668281308 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0082.ts' for writing
@1668281310 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0093.ts' for writing
@1668281310 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0083.ts' for writing
@1668281310 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281312 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0094.ts' for writing
@1668281312 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0084.ts' for writing
@1668281314 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0095.ts' for writing
@1668281314 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0085.ts' for writing
@1668281314 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281316 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0096.ts' for writing
@1668281316 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0086.ts' for writing
@1668281318 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0097.ts' for writing
@1668281318 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0087.ts' for writing
@1668281318 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281320 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0098.ts' for writing
@1668281320 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0088.ts' for writing
@1668281322 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0099.ts' for writing
@1668281322 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0089.ts' for writing
@1668281322 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281324 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0100.ts' for writing
@1668281324 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0090.ts' for writing
@1668281326 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0101.ts' for writing
@1668281326 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0091.ts' for writing
@1668281326 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281328 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0102.ts' for writing
@1668281328 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0092.ts' for writing
@1668281330 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0103.ts' for writing
@1668281330 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0093.ts' for writing
@1668281330 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281332 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0104.ts' for writing
@1668281332 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0094.ts' for writing
@1668281335 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0105.ts' for writing
@1668281335 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0095.ts' for writing
@1668281335 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281337 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0106.ts' for writing
@1668281337 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0096.ts' for writing
@1668281339 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0107.ts' for writing
@1668281339 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0097.ts' for writing
@1668281339 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf.m3u8' for writing
@1668281341 [rtmp      ] Incorrect chunk size -1762850559
@1668281341 rtmp://localhost/restreamer1/6cbe40a4-6094-48eb-8924-a0e4879faaaf.stream?token=docker01: I/O error
@1668281341 [hls       ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0108.ts' for writing
@1668281341 [mpegts    ] Opening 'http://admin:PF4k6KZnUnUj6IKR5S@localhost:8080/memfs/6cbe40a4-6094-48eb-8924-a0e4879faaaf_output_0_0098.ts' for writing

Hoerli1337 avatar Nov 12 '22 19:11 Hoerli1337

Hey @Hoerli1337 Thanks for the reports. Incorrect chunk size -1762850559 looks bad.

I'll invest some more time here.

By the way: Are you monitoring the system limits (kernel, net)? Could be a problem with the VM.

And try the latest v2.4.1^^

jstabenow avatar Nov 15 '22 10:11 jstabenow

Hi @jstabenow I have updated to the latest version after posting the logs. Unfortunately the problem still occurs. The VM or even the container (because Proxmox) is totally bored. ~5% CPU load and maximum 2GB RAM consumption. There is no performance problem. Per iPerf3 I have also tested the network card -> 1Gbits go through without problems.

Hoerli1337 avatar Nov 15 '22 16:11 Hoerli1337

Can't reproduce it:

ffmpeg version 5.1.2-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 -lm -lz -lsupc++ -lstdc++ -lssl -lcrypto -lz -lc -ldl' --enable-nonfree --enable-gpl --enable-version3 --enable-static --enable-openssl --enable-libv4l2 --enable-v4l2_m2m --enable-libfreetype --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libmfx --enable-vaapi --enable-vdpau --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
Input #0, flv, from 'rtmp://localhost/52f4e64d-7df4-4ec0-b411-7570976b4cda.stream':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    7.1             : false
    2.1             : false
    3.1             : false
    4.0             : false
    5.1             : false
    encoder         : obs-output module (libobs version 27.1.3)
    4.1             : false
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
  Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 163 kb/s
  Stream #0:1: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 65536 kb/s, 60 fps, 60 tbr, 1k tbn
[http @ 0x7fd38028a440] HTTP error 404 Not Found
Output #0, hls, to 'http://admin:92DZbO9d5tEMdsoBEL@localhost:8080/memfs/52f4e64d-7df4-4ec0-b411-7570976b4cda_output_0.m3u8':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    7.1             : false
    2.1             : false
    3.1             : false
    4.0             : false
    5.1             : false
    service_provider: datarhei-Restreamer
    4.1             : false
    title           : http://86.103.221.227:8080/52f4e64d-7df4-4ec0-b411-7570976b4cda/oembed.json
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 65536 kb/s, 60 fps, 60 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 163 kb/s

Process details: Bildschirmfoto 2022-11-15 um 23 53 10

OBS footer: Bildschirmfoto 2022-11-15 um 23 53 26

OBS encoder settings: Bildschirmfoto 2022-11-15 um 23 53 39

  1. Please post your OBS-Settings.
  2. And analyze your system. Can be a bottleneck (e.g., System/kernel settings, VM limits): https://www.netdata.cloud/agent

That's strange.

jstabenow avatar Nov 15 '22 23:11 jstabenow

Here are my settings. I have not set anything special. OBS Config Tested it with x264 and NVENC.

The VM is not busy or limited in any way. I do not understand this right now either :(

Hoerli1337 avatar Nov 18 '22 16:11 Hoerli1337

Looks like an exciting problem that needs deeper insight.

So, please get in touch with [email protected]. Subject: Restreamer, issue 441

jstabenow avatar Nov 21 '22 13:11 jstabenow

Short update: I have installed the latest version (2.4.2) and also restarted the whole server. Now I have been able to keep a stream for just under 4 hours without an outage. I'm still keeping an eye on it, but maybe the problem is gone now.

Hoerli1337 avatar Dec 02 '22 20:12 Hoerli1337

is there any updates?

ibrah3m avatar Feb 06 '23 21:02 ibrah3m

Currently, it actually runs without problems. In the meantime there were also a few updates for Docker, maybe even those fixed the problem.

Hoerli1337 avatar Feb 17 '23 12:02 Hoerli1337

Just out of curiosity, what’s the available bandwidth (upstream) in your network environment?

BenK885 avatar Jun 10 '23 11:06 BenK885

The servers running Restreamer are connected with 1Gbits (RJ45). My upload to the internet is currently 200Mbit/s (fiber).

Hoerli1337 avatar Jun 11 '23 11:06 Hoerli1337