caps of rtp stream

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

caps of rtp stream

Tomasz Grobelny-2
I have such a commandline:

$ LANG=C gst-launch -v udpsrc port=9012 caps="application/x-rtp,
clock-rate=(int)8000, encoding-name=(string)SPEEX" ! rtpspeexdepay !
speexdec ! alsasink

and it works just fine (I get audio in my speakers). But I would like to write
a filter that would modify raw udp packets. First I wanted to decouple udpsrc
from setting caps like that:

$ LANG=C gst-launch -v udpsrc port=9012 ! capsfilter caps="application/x-rtp,
clock-rate=(int)8000, encoding-name=(string)SPEEX" ! rtpspeexdepay !
speexdec ! fakesink

but it doesn't work as expected:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
notification: This doesn't look like a Speex file
ERROR: from element /pipeline0/speexdec0: Could not decode stream.
Additional debug info:
gstspeexdec.c(555): speex_dec_chain_parse_header (): /pipeline0/speexdec0:
couldn't read header
Execution ended after 1122214 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...

What element (and how) should I use to assign caps to a stream just like caps
property of udpsrc does? Thanks in advance,
--
Regards,
Tomasz Grobelny

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel