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.95k stars 452 forks source link

Re stream to multiple source problem #690

Open oyi77 opened 9 months ago

oyi77 commented 9 months ago

Subject of the issue Hi i have setting up 1 input with 2 output, one using player, one using rtmp server, so the restreamer as a client

Your environment

Files image report.txt

Banners :

  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-libfreetype --enable-alsa --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
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/core/data/channels/85530a33-564b-467a-9d42-389ed6e460f2/videoloop.source':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    creation_time   : 2021-12-31T01:55:50.000000Z
    artist          : Microsoft Game DVR
    title           : AdminLTE 3 | Log in (v2) - Google Chrome
  Duration: 00:00:40.82, start: 0.000000, bitrate: 1368 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1032 [SAR 1:1 DAR 80:43], 1076 kb/s, 36.12 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2021-12-31T01:55:50.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 79 kb/s (default)
    Metadata:
      creation_time   : 2021-12-31T01:55:50.000000Z
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[http @ 0x7f042a206ac0] HTTP error 404 Not Found
Output #0, hls, to 'http://admin:yPvokClqiPCMV9HpGD@localhost:8080/memfs/85530a33-564b-467a-9d42-389ed6e460f2_output_0.m3u8':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    artist          : Microsoft Game DVR
    title           : http://103.175.219.102:8080/85530a33-564b-467a-9d42-389ed6e460f2/oembed.json
    service_provider: datarhei-Restreamer
    encoder         : Lavf59.27.100
  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1032 [SAR 1:1 DAR 80:43], q=2-31, 1076 kb/s, 36.12 fps, 29.97 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2021-12-31T01:55:50.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 79 kb/s (default)
    Metadata:
      creation_time   : 2021-12-31T01:55:50.000000Z
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

Steps to reproduce Use any input, using 2 output and there is no output on the rtmp. I check the process details, and process report. There is no line describing the 2nd output

Awesome ⭐⭐⭐⭐⭐ If the Restreamer has problems processing your video signals, it would be constructive if you send us this origin stream by mail with the GitHub issue number to support@datarhei.com. This way, we can better see why the Restreamer is not working correctly.

Expected behavior It should re-streamed my file to 2 outputs. it should be shown on both of the output

Actual behavior Only video on website player is shown

Business inquiries

We provide support for commercial requirements with professional support, agile software development, and consulting. If you have a commercial request, be it a bug or a feature enhancement, please contact us directly at support@datarhei.com.

ioppermann commented 9 months ago

In your screenshot I see that the RTMP output is enabled, but in orange color. This means, there's some problem with connecting to the RTMP server. Please check the availability of the RTMP server you want to send the stream to.

oyi77 commented 9 months ago

What color it should be? and since i am trying to send the stream directly using ffmpeg, and its okay, i think there's no problem with RTMP server it self.

However i didn't see any output mentioned to be the RTMP servers i place.

Is there are something wrong?

ioppermann commented 9 months ago

The color should be green.

To see a report for the RTMP publication service, you have to open it and switch to the "Process & Control" section. There you'll find information about the connection status.

oyi77 commented 9 months ago

If there's an issue of that so it could be with the core right?

On Fri, Feb 16, 2024, 19:29 Ingo Oppermann @.***> wrote:

The color should be green.

To see a report for the RTMP publication service, you have to open it and switch to the "Process & Control" section. There you'll find information about the connection status.

— Reply to this email directly, view it on GitHub https://github.com/datarhei/restreamer/issues/690#issuecomment-1948302355, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR3B76FCOCM3PEVFN3JSITYT5GJZAVCNFSM6AAAAABDEZBCKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGMYDEMZVGU . You are receiving this because you authored the thread.Message ID: @.***>

ioppermann commented 9 months ago

Yes, or with the ffmpeg command that Restreamer creates. Maybe there's some setting that prevents ffmpeg to properly connect to the RTMP server.

oyi77 commented 9 months ago

that could be, will check it out. i will send the error from process and control later too

On Fri, Feb 16, 2024, 19:47 Ingo Oppermann @.***> wrote:

Yes, or with the ffmpeg command that Restreamer creates. Maybe there's some setting that prevents ffmpeg to properly connect to the RTMP server.

— Reply to this email directly, view it on GitHub https://github.com/datarhei/restreamer/issues/690#issuecomment-1948328484, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR3B73V3OCKM74HXUWGOH3YT5INHAVCNFSM6AAAAABDEZBCKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGMZDQNBYGQ . You are receiving this because you authored the thread.Message ID: @.***>