datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.85k stars 441 forks source link

Cannot stream from obs to rtmp; Error opening input: I/O error #722

Open Joly0 opened 6 months ago

Joly0 commented 6 months ago

Describe the bug I have enabled the rtmp server in restreamer and copied the shown address into obs in the custom stream server field. I tried leaving the stream key empty or tried to add the password, but neither worked. I enabled the stream source after starting to stream from obs, but the check errors out with the error code "Error opening input: I/O error

ffmpeg version 6.1.1-datarhei Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13.2.1 (Alpine 13.2.1_git20231014) 20231014
  configuration: --extra-version=datarhei --prefix=/usr --extra-libs='-lpthread -lxml2 -lm -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-alsa --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libdav1d --enable-librav1e --disable-ffplay --disable-debug --disable-doc --disable-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
[in#0 @ 0x14821cc70e40] Error opening input: I/O error
Error opening input file rtmp://localhost:1935/bbade45b-9d97-422a-803c-509dcb721089.stream?token=TestToken.
Error opening input files: I/O error

Expected behavior Should work

ioppermann commented 5 months ago

What is the RTMP URL you entered in OBS? There is a bug in the UI that presents a wrong RTMP URL for the custom stream server field.