Skip to content

Instantly share code, notes, and snippets.

@blluv
Last active February 19, 2024 09:23
Show Gist options
  • Save blluv/4a69fe0a2f14e1f88b03896f74848404 to your computer and use it in GitHub Desktop.
Save blluv/4a69fe0a2f14e1f88b03896f74848404 to your computer and use it in GitHub Desktop.
gst-launch-1.0 rtpbin name=rtpbin \
udpsrc address=127.0.0.1 port=5000 caps="application/x-rtp,media=audio,clock-rate=48000,encoding-name=OPUS,payload=111" ! rtpbin.recv_rtp_sink_0 \
udpsrc address=127.0.0.1 port=5001 caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=VP8,payload=96" ! rtpbin.recv_rtp_sink_1 \
rtpbin. ! rtpopusdepay ! opusparse ! mux. \
rtpbin. ! rtpvp8depay ! mux. \
webmmux name=mux ! filesink location=out.webm
gst-launch-1.0 rtpbin name=rtpbin \
udpsrc address=127.0.0.1 port=5000 caps="application/x-rtp,media=audio,clock-rate=48000,encoding-name=OPUS,payload=111" ! rtpbin.recv_rtp_sink_0 \
udpsrc address=127.0.0.1 port=5001 caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96" ! rtpbin.recv_rtp_sink_1 \
rtpbin. ! rtpopusdepay ! opusparse ! mux. \
rtpbin. ! rtph264depay ! h264parse ! avdec_h264 ! vp8enc ! mux. \
webmmux name=mux ! filesink location=out.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment