Examples
The following examples all make use of the ffplay
and ffmpeg
tools.
Watch a stream over UDP, with a max reordering delay of 0.5 seconds:
ffplay -max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
Watch a stream tunneled over HTTP:
ffplay -rtsp_transport http rtsp://server/video.mp4
Send a stream in realtime to a RTSP server, for others to watch:
ffmpeg -re -i input -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
Receive a stream in realtime:
ffmpeg -rtsp_flags listen -i rtsp://ownaddress/live.sdp output