Page 23
C
h
a
p t
e
r
5
5
Stream media via RTSP
The easiest way to extract a video or audio stream from the TC620-PID is to use the Real-Time
Streaming Protocol (RTSP). This chapter explains the role of the TC620-PID in RTSP media
sessions and describes how to open a media stream from the unit in a video player plug-in.
In This Chapter
RTSP and RTP .................................................................... 23
Transfer via UDP or TCP ...................................................... 24
5.1
RTSP and RTP
The TC620-PID implements an RTSP server. A hardware or software decoder (the latter within a
viewing application, for example) is the RTSP client. Media sessions between client and server
are established and controlled with RTSP. Media stream delivery itself is handled by the
Real-Time Transport Protocol (RTP). The TC620-PID supports video and audio streaming via UDP
and TCP.
Use the following URL format to get a video stream into, for example, VLC or QuickTime.
rtsp:// <IP address of encoder>:<RTSP Port>/VideoInput/<x>/<y>/<z>
where:
<
x
> is the number of the Video Input
<
y
> is the media type of the required encoder
<
z
> is the encoder number
Note:
The <RTSP Port> is optional. If not entered, port 554 is used by default.
Note:
The encoder number index <
z
> in the URL only takes enabled encoders into account, with
the encoder mode set to the indicated media type <
y
> (RTSP is a streaming protocol which
takes care of stream control; it does not handle device configuration).
The stream in the following figure will be pulled from the unit with the IP address 172.22.250.39,
using Video Input 1 and the first enabled H.264 encoder.