Audio and Video concurrently WebRTC

leaonidas mtmleao at gmail.com
Fri May 14 13:56:49 UTC 2021


Hello,
I am developing a WebRTC app, and successfully made it send audio and video
separately to a browser.
Now I would like to send both at the same time but I am having difficulties
in finding out how to assemble the pipeline.

Audio pipeline:
  audiotestsrc ! audioconvert ! opusenc ! rtpopuspay ! queue !
  application/x-rtp,media=audio,encoding-name=OPUS,payload=96 

Video pipeline:
  videotestsrc pattern=ball ! video/x-raw,width=320,height=240 !
videoconvert ! queue ! vp8enc deadline=1 ! rtpvp8pay !
  queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97

Both simultaneously pipeline attempt:
  tee name=t ! queue ! audioconvert ! opusenc ! rtpopuspay ! queue !
  application/x-rtp,media=audio,encoding-name=OPUS,payload=96 t. !
  queue ! videoconvert ! queue ! vp8enc deadline=1 ! rtpvp8pay !
  queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97

The code is failing in the pipeline construction (I am using parse_launch()
to do it).
Can someone give me a hand?

Thanks in advance!



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list