GstRtspSink-Simple Examples TX1/TX2

From RidgeRun Developer Wiki

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



Simple Examples


Home

Advanced examples



This wiki provides a series of simple examples for the different formats supported by GstRtspSink.


GstRtspSink Pipelines

Single Video Streaming

H264

gst-launch-1.0 nvcamerasrc ! omxh264enc ! video/x-h264, mapping=/stream1  ! rtspsink service=5000

VP8

gst-launch-1.0 nvcamerasrc ! omxvp8enc ! video/x-vp8, mapping=/stream1  ! rtspsink service=5000

Motion JPEG

gst-launch-1.0 nvcamerasrc ! nvvidconv ! nvjpegenc ! image/jpeg, mapping=/stream1  ! rtspsink service=5000

Single Audio Streaming

AAC

gst-launch-1.0 audiotestsrc ! voaacenc ! audio/mpeg, mapping=/stream1  ! rtspsink service=5000

PCMU

gst-launch-1.0 audiotestsrc ! mulawenc ! audio/x-mulaw, mapping=stream1 ! rtspsink service=5000

PCMA

gst-launch-1.0 audiotestsrc ! alawenc ! audio/x-alaw, mapping=stream1 ! rtspsink service=5000

OPUS

gst-launch-1.0 audiotestsrc ! opusenc ! audio/x-opus, mapping=stream1 ! rtspsink service=5000

RTSP Clients

VLC

IP_ADDRESS=127.0.0.1
PORT=5000
MAPPING=/stream1

vlc rtsp://${IP_ADDRESS}:${PORT}/${MAPPING}

GStreamer

IP_ADDRESS=127.0.0.1
PORT=5000
MAPPING=/stream1

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

MPlayer

IP_ADDRESS=127.0.0.1
PORT=5000
MAPPING=/stream1

mplayer rtsp://${IP_ADDRESS}:${PORT}/${MAPPING}

Totem

IP_ADDRESS=127.0.0.1
PORT=5000
MAPPING=/stream1

totem rtsp://${IP_ADDRESS}:${PORT}/${MAPPING}




Simple Examples


Home

Advanced examples