GstRtspSink - Multicast Audio Video: Difference between revisions
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
service=$PORT multicast=true multicast-ip-min=${IP_MIN} multicast-ip-max=${IP_MAX} \ | service=$PORT multicast=true multicast-ip-min=${IP_MIN} multicast-ip-max=${IP_MAX} \ | ||
multicast-port-min=${PORT_MIN} multicast-port-max=${PORT_MAX} multicast-ttl=${TTL} \ | multicast-port-min=${PORT_MIN} multicast-port-max=${PORT_MAX} multicast-ttl=${TTL} \ | ||
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. \ | 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. \ | |||
alsasrc ! queue ! audioconvert ! queue ! voaacenc ! aacparse ! capsfilter caps="audio/mpeg, mapping=${MAPPING}" ! sink. | alsasrc ! queue ! audioconvert ! queue ! voaacenc ! aacparse ! capsfilter caps="audio/mpeg, mapping=${MAPPING}" ! sink. | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 20:45, 10 March 2020
← |
⌂ Home |
→ |
Problems running the pipelines shown on this page? Please see our GStreamer Debugging guide for help. |
This wiki provides an example to send an AC3 audio stream to a multicast group and make use of basic authentication.
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.
PORT=12345 MAPPING=/stream IP_MIN=239.255.255.253 IP_MAX=239.255.255.255 PORT_MIN=5000 PORT_MAX=6000 TTL=128 gst-launch-1.0 rtspsink name=sink \ service=$PORT multicast=true multicast-ip-min=${IP_MIN} multicast-ip-max=${IP_MAX} \ multicast-port-min=${PORT_MIN} multicast-port-max=${PORT_MAX} multicast-ttl=${TTL} \ 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. \ alsasrc ! queue ! audioconvert ! queue ! voaacenc ! aacparse ! capsfilter caps="audio/mpeg, mapping=${MAPPING}" ! sink.
RTSP Clients
VLC
IP_ADDRESS=127.0.0.1 PORT=12345 MAPPING=stream USER=anonymous PASSWORD= vlc rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}
GStreamer
IP_ADDRESS=127.0.0.1 PORT=12345 MAPPING=stream USER=anonymous PASSWORD= gst-launch-1.0 rtspsrc location=rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING} ! rtpac3depay ! ac3parse ! avdec_ac3 ! queue ! autoaudiosink
MPlayer
IP_ADDRESS=192.0.0.1 PORT=12345 MAPPING=stream USER=anonymous PASSWORD= mplayer rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}
Totem
IP_ADDRESS=192.0.0.1 PORT=12345 MAPPING=stream USER=anonymous PASSWORD= totem rtsp://${USER}:${PASSWORD}@${IP_ADDRESS}:${PORT}/${MAPPING}
← |
⌂ Home |
→ |