Add audio and record RTP stream.
Nicolas Dufresne
nicolas at ndufresne.ca
Thu Jul 7 17:37:25 UTC 2016
Le jeudi 07 juillet 2016 à 11:51 -0400, Andrew Borntrager a écrit :
> gst-launch-1.0 -v vl2src device=/dev/video0 ! queue ! -e pulserc device="alsa_input.usb-046d_HD_Pro_Webcam_C920_118F5B1F-02-C920.analog-stereo" ! queue ! video/x-h264, width=1280, height=720, framerate=15/1 ! queue ! h264parse ! queue ! rtph264pay pt=127 config-interval=4 ! udpsink host=***********.ddns.net port=5000
You need to properly split the two graphs, and you'll need to use two
UDP port (one per stream). An example:
gst-launch-1.0 -v \
vl2src device=/dev/video0 ! h264parse ! rtph264pay pt=127 config-interval=4 ! udpsink port=5001 \
pulsesrc device="..." ! opusenc ! rtpopuspay pt=96 ! udpsink port=5002
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160707/6dfe28a0/attachment.sig>
More information about the gstreamer-devel
mailing list