GstRtspSink - Client Applications

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page



Previous: iMX6 Nitrogen Index Next: Legacy_GstRtspSink



This page helps developers choose a client for validating rtspsink streams. It provides the minimum commands needed to test the published RTSP URLs with common clients and explain which depayloaders and decoders correspond to each format.


Why a client compatibility matters

A server pipeline is only half of the workflow. rtspsink streams are compatible with standard RTSP client side players, including GStreamer, VLC and Totem.


Problems running the pipelines shown on this page? Please see our GStreamer Debugging guide for help.


GStreamer Client

The most quick methods to validating a RTSP stream with GStreamer are with playbin or gst-play.

Playbin

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

gst-launch-1.0 playbin uri=rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}

gst-play

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=/stream

gst-play-1.0 rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}

rtspsrc with decodebin

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

gst-launch-1.0 rtspsrc location=rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING} ! decodebin ! autovideosink


rtspsrc with depayloader and decoder

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

gst-launch-1.0 rtspsrc location=rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING} ! <depayloader> ! <decoder> ! queue ! autovideosink

where <depayloader> and <decoder> match one of the following:

Table 1. Depayloaders and decoders associated to each format.
Format Depayloader Decoder
MPEG4 rtpmp4vdepay avdec_mpeg4
H264 rtph264depay avdec_h264
VP8 rtpvp8depay vp8dec
MJPEG rtpjpegdepay avdec_mjpeg
AAC rtpmp4adepay avdec_aac
AC3 rtpac3depay avdec_ac3
PCMU rtppcmudepay
PCMA rtppcmadepay
OPUS rtpopusdepay avdec_opus


VLC

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

vlc rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}

Totem

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

totem rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}

MPlayer

USER=user
PASSWORD=pass
IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

mplayer rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}


Related pages

FAQ

Which client should I use first?
Using gst-play or VLC are often the quickest paths to testing, and a GStreamer client pipeline with rtspsrc and specific depayloader, and decoder is best for debugging and optimization.
What IP address should I use on the client side?
The address of the host in which rtspsink is running.


Previous: Qualcomm RB5 Index Next: Legacy_GstRtspSink