Requirements:
- ffmpeg – works fine with static builds – https://www.johnvansickle.com/ffmpeg/
- Simple-RTMP-Server – https://github.com/ossrs/srs
Build and run srs
|
1 2 3 |
./configure make ./objs/srs -c conf/srs.conf |
Stream ffmpeg to srs:
|
1 |
ffmpeg -re -i "rtmp://source.stream.com:1935/live/" -ar 44100 -vcodec libx264 -r 50 -b:v 2000k -f flv rtmp://127.0.0.1/app/live |
Adapt bitrate (-b:v) and framerate (-r) to your needs.
