Audio and Video concurrently WebRTC

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Audio and Video concurrently WebRTC

GStreamer-devel mailing list
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio and Video concurrently WebRTC

GStreamer-devel mailing list
On Fri, 2021-05-14 at 08:56 -0500, leaonidas via gstreamer-devel wrote:
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.
[...]

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

Did you see the examples:

They all implement audio/video sending and receiving.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio and Video concurrently WebRTC

GStreamer-devel mailing list
Hadn't notice the audio part, embarrassing...

Anyways, thank you!

My pipeline ended up looking like this:
PIPELINE_DESC = """
 webrtcbin name=sendrecv
  audiotestsrc ! audioconvert ! opusenc ! rtpopuspay ! queue !
  application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv.
  videotestsrc pattern=ball ! videoconvert ! queue ! vp8enc deadline=1 !
rtpvp8pay !
  queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97 !
  sendrecv.
"""



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel