Auto rtp depayloader and decoder

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

Auto rtp depayloader and decoder

Andrea Lo Pumo
I receive a rtp stream and the codec might vary, for example, G711, G722, G726, ...

I would like a "rtpdecodebin", to do something like:

udpsrc port=1234 caps="application/x-rtp" ! rtpptdemux ! rtpdecodebin ! audioconvert ! autoaudiosink

I can listen to the"request-pt-map" signal and tell rtpptdemux the exact format of the payload.

What can I do?

Thank you in advance.

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

Re: Auto rtp depayloader and decoder

Sebastian Dröge-3
On Fri, 2019-01-18 at 11:35 +0100, Andrea Lo Pumo wrote:

> I receive a rtp stream and the codec might vary, for example, G711,
> G722, G726, ...
>
> I would like a "rtpdecodebin", to do something like:
>
> udpsrc port=1234 caps="application/x-rtp" ! rtpptdemux ! rtpdecodebin
> ! audioconvert ! autoaudiosink
>
> I can listen to the"request-pt-map" signal and tell rtpptdemux the
> exact format of the payload.
>
> What can I do?
decodebin can do exactly that already. You only have to provide it with
complete caps for the incoming RTP stream and it will select
depayloaders, parsers and decoders as needed.

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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Auto rtp depayloader and decoder

Andrea Lo Pumo
Perfect! It works:
gst-launch-1.0 audiotestsrc ! mulawenc !  rtppcmupay ! udpsink port=1234
gst-launch-1.0 udpsrc port=1234 caps="application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)PCMU" ! decodebin ! audioconvert ! autoaudiosink

I didn't imagine decodebin could handle application/x-rtp :)



Il giorno ven 18 gen 2019 alle ore 14:41 Sebastian Dröge <[hidden email]> ha scritto:
On Fri, 2019-01-18 at 11:35 +0100, Andrea Lo Pumo wrote:
> I receive a rtp stream and the codec might vary, for example, G711,
> G722, G726, ...
>
> I would like a "rtpdecodebin", to do something like:
>
> udpsrc port=1234 caps="application/x-rtp" ! rtpptdemux ! rtpdecodebin
> ! audioconvert ! autoaudiosink
>
> I can listen to the"request-pt-map" signal and tell rtpptdemux the
> exact format of the payload.
>
> What can I do?

decodebin can do exactly that already. You only have to provide it with
complete caps for the incoming RTP stream and it will select
depayloaders, parsers and decoders as needed.

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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel