Knowledge Base

Stream a local mp4 file over RTMP using FFMpeg

With this command you can "live-stream" an mp4 file that is stored locally to an RTMP server that is running on the same host, under /live/vod. The first example is for Linux, the second one will work on Windows if you have ffmpeg added to your path.

ffmpeg -re -i "/home/andre/videos/test.mp4" -c copy -f flv rtmp://127.0.0.1/live/vod
ffmpeg -re -i "C:\Temp\test.mp4" -c copy -f flv rtmp://127.0.0.1/live/vod
Table of Contents