Jump to content

GstRtspSink - Multicast Audio Video: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 11: Line 11:
== GstRtspSink Pipeline ==
== GstRtspSink Pipeline ==


The following pipelines takes audio from the microphone, encodes it to AC3 and serves it to a multicast group found between 239.255.255.253 and 239.255.255.255 and a port between 5000 and 6000. Additionally, it requires an ''anonymous'' user without a password.
The following pipeline combines a H264 video and an AAC audio stream into a single mapping and serves it to a multicast group found between 239.255.255.253 and 239.255.255.255 and a port between 5000 and 6000.


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 27: Line 27:
v4l2src device=/dev/video0 ! "video/x-raw,width=640,height=480" ! queue ! videoconvert ! \
v4l2src device=/dev/video0 ! "video/x-raw,width=640,height=480" ! queue ! videoconvert ! \
queue ! x264enc key-int-max=10 ! h264parse ! capsfilter caps="video/x-h264, mapping=${MAPPING}" ! sink. \
queue ! x264enc key-int-max=10 ! h264parse ! capsfilter caps="video/x-h264, mapping=${MAPPING}" ! sink. \
alsasrc ! queue ! audioconvert ! queue ! voaacenc ! aacparse ! capsfilter caps="audio/mpeg, mapping=${MAPPING}" ! sink.
audiotestsrc ! queue ! audioconvert ! queue ! voaacenc ! aacparse ! capsfilter caps="audio/mpeg, mapping=${MAPPING}" ! sink.
</syntaxhighlight>
</syntaxhighlight>


507

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.