Set ffmpeg command line to send mp4 file like OBS with rtmp protocol to NGINX streaming server

svenson

New Member
Dear community,
I try to send a test loop to an nginx streaming server with ffmpeg from an Ubuntu 20.04.5 LTS server. FFMPEG version is 4.2.7.

Tried following:

ffmpeg -stream_loop -1 -re -i test.mp4 -c:v libx264 -f flv rtmp://myserver.de/hls/stream

VLC can access the stream under https://myserver.de/hls/stream/index.m3u8, but browsers (Safari) on Macbook and iPhone fail.

If I send the mp4 with OBS, I can access the stream perfectly under e.g. https://myserver.de/hls/stream/index.m3u8 with VLC and browsers.

What's the difference between OBS and ffmpeg command line?

Any help is appreciated! Thanks, Svenson
 
Top