Skip to main content

SRT to RTMP

Requrements:

sudo apt install -y ffmpeg srt-tools

To test start a SRT stream with FFMPEG:

ffmpeg -re -i video.mp4 -c:v copy -c:a copy -f mpegts "srt://127.0.0.1:2088?mode=caller&passphrase=mypassword"

 

 

start srt listener:

srt-live-transmit srt://:2088?passphrase=mypassword udp://127.0.0.1:23000

convert srt to rtmp with ffmpeg:

ffmpeg -i udp://127.0.0.1:23000 -c:v copy -c:a copy -f flv rtmp://192.168.1.129:1935/live

replace rtmp://192.168.1.129:1935/live with your RMP stream destination