Skip to main content

RTSP

FFmpeg Push​

RTSP protocol streaming supports both TCP and UDP modes.

Over TCP(Interleaved mode)​

ffmpeg -re -stream_loop -1  -i test.mp4 -c:v copy  -c:a copy  -rtsp_transport tcp -f rtsp "rtsp://127.0.0.1:5544/live/test?token=123"

Over UDP​

ffmpeg -re -stream_loop -1  -i test.mp4 -c:v copy  -c:a copy -f rtsp "rtsp://127.0.0.1:5544/live/test?token=123"

Play​

Play Streams over TCP​

ffplay -rtsp_transport tcp -i "rtsp://127.0.0.1:5544/live/test?token=123"

Play Streams over UDP​

ffplay -i "rtsp://127.0.0.1:5544/live/test?token=123"