nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

Failed to stream with ffmpeg until I start the stream in the same server

Open marianocarpentier opened this issue 2 years ago • 0 comments

Hi!

I am trying to stream from ffmpeg running inside a Raspberry Pi to a server that runs Nginx and nginx-rtmp-module in my local network.

When I run the command in the RPi I get no errors, and I can see transfer stats like if it was working but then VLC won't connect to the stream.

I managed to make it work by login into the Nginx server and "warming up" the stream by using the ffmpeg command with sudo to stream a short video. After it finishes, I try the command from the Raspberry Pi again and now it's able to stream properly. VLC is also able to open the stream from the server now.

Seems like when I use sudo ffmpeg... into the server it boots something up that can't be done from the RPi without privileges. Am I in the right track? What can I do to fix or workaround this problem?

Many thanks

marianocarpentier avatar Dec 02 '22 07:12 marianocarpentier