RTSP

Real Time Streaming ProtocolApplication layer · OSI 7

Controlling live IP camera feeds streamed over RTP

Step 1 of 5: Open port 554 and query OPTIONS. VLC opens TCP port 554 to 192.168.1.64 and sends OPTIONS (CSeq: 1) . The camera replies 200 OK listing every supported control verb .
0.0 s / 19.2 s
VLC player192.168.1.10
HandshakeControlResponseRequestData

Overview

lets video players such as VLC control IP cameras like a remote control (DESCRIBE, SETUP, PLAY, TEARDOWN) over TCP 554. Live video itself travels separately in UDP packets.

Defined in RFC 2326 and RFC 7826, RTSP exchanges HTTP-styled control lines numbered by CSeq. Negotiated media tracks then stream H.264 video frames over UDP RTP ports per RFC 6184.

Key facts

Layer
Application (TCP port 554)
Control verbs
OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN
Media plane
RTP over UDP (here H.264 PT 96)
Session clock
90 kHz video clock rate
Defined in
RFC 2326, RFC 7826, RFC 6184

Control channel ran TCP; video rode UDP

VLC checked capabilities, verified Digest credentials, set up H.264 track ports, and triggered PLAY. Video streamed via fragmented RTP UDP datagrams until TEARDOWN closed the session.

RTSP session 1185d200 coordinated OPTIONS, Digest DESCRIBE (SDP), SETUP (`6970->50000`), PLAY, RFC 6184 H.264 FU-A RTP delivery, and TEARDOWN.

Control protocol
TCP 554 (6 request-reply turns)
Video stream
UDP 6970 -> 50000 (RTP PT 96)
Large frames
Split into H.264 FU-A fragments
Timeout
60 s if viewer vanishes

Try it yourself

Inspect an RTSP stream description with ffprobe

Connect to a test RTSP stream to display its SDP tracks, H.264 dimensions, and frame rate.

ffprobe -v quiet -print_format json -show_streams rtsp://192.168.1.64/stream1