To run the app you would need Docker and make - Docker installation guide
- Clone or download the repo
git clone https://github.com/juniorxsound/libav-RTMP-Streaming.git - Place an mp4 file you would like to stream in
samples/folder - Create a
buildfolder inside the root directory - From within the root directory run
make buildto create the Docker container - Open
main.cppand change the video file name and RTMP server address in line 12
Streamer streamer("samples/your_video_test_file.mp4", "rtmp://your_rtmp_streaming_endpoint");- Run
make runand if everything goes smooth, you should be live streaming your video file to the RTMP server ✨
Thank you @kodabb for helping me get started with using libav and to @leandromoreira for posting helpful getting started tutorials and a Docker image (used in this repo).
