Stream a local mp4 file over RTMP using FFMpeg

24 February 2021

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Similar Content

23 January 2021
Introduction to the new how-to article in the Knowledge Base.

I wrote a new guide on setting up your own live-stream server. Mostly due to your requests. I took the opportunity to simplify and shorten the guide a bit. If you follow this guide step by step, and use your brain a tiny bit, you'll be fine. This guide has so far been tested on […]

× Read More ×
19 June 2025
Choosing the live-stream host that suits your needs

Discover how to choose the right live-stream host for your organization. Compare popular platforms like DaCast, Wowza, Vimeo, Kick, ReStream and IBM.

× Read More ×
Copyright © 2025. 
All rights reserved.