[FFmpeg-user] Set ffmpeg command line to send mp4 file like OBS with rtmp protocol to NGINX streaming server

Sven Gallenbacher sven.gallenbacher at gabas.de
Tue Jan 24 10:07:03 EET 2023


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 (Mac OS version), i can access the stream perfectly under the same link https://myserver.de/hls/stream/index.m3u8 with VLC and browsers on laptop and mobile.

What's the difference between OBS and ffmpeg command line? Do I miss options for ffmpeg, or used already wrong options?


Any help is appreciated! Thanks, Svenson


More information about the ffmpeg-user mailing list