Auto rtp depayloader and decoder
Andrea Lo Pumo
alopumo at movia.biz
Fri Jan 18 14:03:11 UTC 2019
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 <
sebastian at centricular.com> 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
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190118/74addc46/attachment.html>
More information about the gstreamer-devel
mailing list