RPi-Distro / vlc

GNU General Public License v2.0
41 stars 4 forks source link

omxplayer to output RTMP stream to HDMI in nginx #105

Open lsmith77 opened 5 months ago

lsmith77 commented 5 months ago

When using Nginx as an RTMP streaming bridge to HDMI, omxplayer used to enable this using an Nginx config like the following


rtmp {
  server {
    listen 1935;

    application live {
      # Enable livestreaming
      live on;

      # Disable recording
      record off;

      # Allow only this machine to play back the stream
      allow play 127.0.0.1;
      deny play all;

      # Start omxplayer and play the stream out over HDMI
      exec omxplayer -o hdmi rtmp://127.0.0.1:1935/live/$name;
    }
  }
}

THe key line relevant for this issue is exec omxplayer -o hdmi rtmp://127.0.0.1:1935/live/$name;

For the full tutorial see: https://aaronparecki.com/2020/09/07/7/raspberry-pi-streaming-server

Is there any way to achieve the same using VLC?