Difference between revisions of "GstRtspSink - Transport Stream RTSP Streaming"

From RidgeRun Developer Connection
Jump to: navigation, search
m
m
Line 1: Line 1:
<table>
 
<tr>
 
<td><div class="clear; float:right">__TOC__</div></td>
 
<td valign=top>
 
{{Debug Symbol}} Problems running the pipelines shown on this page?<br>Please see our [http://developer.ridgerun.com/wiki/index.php?title=GStreamer_Debugging GStreamer Debugging guide] for help.
 
</td>
 
</table>
 
 
 
{{GstRtspSink Page|
 
{{GstRtspSink Page|
 
[[GstRtspSink_-_Audio%2BVideo_Streaming_Plus_H264_Single_Streaming|Audio & Video Streaming Plus H264 Single Streaming]]|
 
[[GstRtspSink_-_Audio%2BVideo_Streaming_Plus_H264_Single_Streaming|Audio & Video Streaming Plus H264 Single Streaming]]|
 
[[GstRtspSink_-_Multicast%2BAuthentication|Multicast + Authentication]]|
 
[[GstRtspSink_-_Multicast%2BAuthentication|Multicast + Authentication]]|
 +
 +
{{GStreamer debug}}
 +
 +
<br>
  
 
This wiki provides an example to send MPEG-TS through RTSP using GstRtspSink.
 
This wiki provides an example to send MPEG-TS through RTSP using GstRtspSink.
 
__TOC__
 
  
 
== GstRtspSink Pipeline ==
 
== GstRtspSink Pipeline ==

Revision as of 20:05, 2 February 2020


Audio & Video Streaming Plus H264 Single Streaming


Home

Multicast + Authentication



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


This wiki provides an example to send MPEG-TS through RTSP using GstRtspSink.

GstRtspSink Pipeline

The following pipeline combines takes an MPEG4 stream, encapsulates it in a Transport Stream container and sends it via RTSP.

This example may fail in GStreamer version lower than 1.8 due to a bug in the TS muxer
PORT=12345
MAPPING=/stream

gst-launch-1.0 v4l2src ! avenc_mpeg4 ! mpeg4videoparse ! mpegtsmux ! capsfilter caps="video/mpegts, mapping=${MAPPING}" ! rtspsink name=sink service=$PORT


RTSP Clients

VLC

IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING1=stream

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

GStreamer

IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

gst-launch-1.0 rtspsrc location=rtsp://${IP_ADDRESS}:${PORT}/${MAPPING} ! rtpmp2tdepay ! tsdemux ! mpeg4videoparse ! avdec_mpeg4 ! queue ! autovideosink

MPlayer

IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

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

Totem

IP_ADDRESS=192.0.0.1
PORT=12345
MAPPING=stream

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


Audio & Video Streaming Plus H264 Single Streaming


Home

Multicast + Authentication