Why the capsfilter
Sameer Naik
sameer.subscriptions at damagehead.com
Wed Jun 4 03:15:07 PDT 2014
this is because of how the caps negotiation works. the udpsrc element will
not be able to indicate the type of content that it is spitting out (it
simply does not have that capability) and hence will not be able to
indicate that in the pad caps. the rtpjpegdepay plugin can only work with a
source element that has the 'application/x-rtp' caps and since this is not
know the two elements cannot negotiate with each other and successfully
connect.
Because of this you have to manually specify the content type so that the
negotiation takes place.
On Tue, Jun 3, 2014 at 11:16 PM, Arnaud Loonstra <arnaud at sphaero.org> wrote:
> Sorry, typo, indeed I mean the udpsrc. I was just wondering about the
> mechanics.
>
> I hadn't noticed the caps property yet. Are you saying it's better to set
> the caps property than to set a capsfilter? The docs use capsfilters from
> what I've read so far.
>
>
> On 06/03/2014 01:55 PM, Dušan Poizl wrote:
>
>> are you sure about udpsink? it should be udpsrc. proper way is to set
>> caps property of udpsrc. udpsrc
>> caps="application/x-rtp,encoding-name=JPEG,payload=26" ! rtpjpegdepay !
>> ...
>>
>>
>>
>> Dňa 03.06.2014 13:39, Arnaud Loonstra wrote / napísal(a):
>>
>>> I was wondering, in the case of a simple streaming example using udp,
>>> this doesn't work:
>>>
>>> udpsink ! rtpjpegdepay ! jpegdec ! autovideosink
>>>
>>> It needs a capsfilter, like:
>>>
>>> udpsink ! application/x-rtp,encoding-name=JPEG,payload=26 !
>>> rtpjpegdepay ! jpegdec ! autovideosink
>>>
>>> However I don't understand why exactly.
>>>
>>> The udpsink receives data and it could pass it directly to the
>>> rtpjpegdepay element. Why does it not work without the capsfilter and
>>> only when you add the capsfilter.
>>>
>>> Rg,
>>>
>>> Arnaud
>>>
>>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
>
> --
> Stichting z25.org
> Concordiastraat 67A
> 3551 EM Utrecht
> The Netherlands
>
> m: +31-(0)6-41861063
> e: arnaud at z25.org
> w: http://z25.org
> t: http://twitter.com/z25org
> f: http://fb.com/z25org
> g: http://gplus.to/z25
> l: http://linkedin.com/company/z25
>
>
> --
> w: http://www.sphaero.org
> t: http://twitter.com/sphaero
> g: http://github.com/sphaero
> i: freenode: sphaero_z25
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140604/6955fdbc/attachment.html>
More information about the gstreamer-devel
mailing list