what's the reason for 'returned caps which are not a real subset of its template caps'?

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

what's the reason for 'returned caps which are not a real subset of its template caps'?

Zhao, Halley

When I use my customized camera src element, there is one warning that:

'returned caps which are not a real subset of its template caps'

Could anyone kindly tell me where is root reason?

How to fix it?

Thanks.

 

 

I guess there are two possible reasons:

1. I added ‘video/x-raw-va’ for my camera src caps, which is not included in base src.

2. Pad template (shows by gst-inspect?) doesn’t match with _get_caps during run-time. See attachment.

 

 

 

ZHAO, Halley (Aihua)

Email: halley.zhao<a href="BLOCKED::mailto:aihua.zhao@intel.com" title="mailto:aihua.zhao@intel.com&#10;mailto:hui.xue@intel.com">@intel.com

Tel: +86(21)61166476

iNet: 8821-6476

SSG/OTC/Moblin 3W038 Pole: F4

 


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

gst-inspect-mrstcamsrc.txt (9K) Download Attachment
mrstcamsrc-caps-runtime.txt (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: what's the reason for 'returned caps which are not a real subset of its template caps'?

Wim Taymans
On Wed, 2009-12-23 at 16:57 +0800, Zhao, Halley wrote:
> When I use my customized camera src element, there is one warning
> that:
>
> 'returned caps which are not a real subset of its template caps'

It means that the template caps are more restrictive that the caps
returned by getcaps, which is likely not what you want.

>
> Could anyone kindly tell me where is root reason?

The template caps contain a framerate field while the ones from the
getcaps function don't.

>
> How to fix it?

Add a framerate field to the caps returned from getcaps.

Wim

>
> Thanks.
>
>  
>
>  
>
> I guess there are two possible reasons:
>
> 1. I added ‘video/x-raw-va’ for my camera src caps, which is not
> included in base src.
>
> 2. Pad template (shows by gst-inspect?) doesn’t match with _get_caps
> during run-time. See attachment.
>
>  
>
>  
>
>  
>
> ZHAO, Halley (Aihua)
>
> Email: [hidden email]
>
> Tel: +86(21)61166476
>
> iNet: 8821-6476
>
> SSG/OTC/Moblin 3W038 Pole: F4
>
>
>  
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what's the reason for 'returned caps which are not a real subset of its template caps'?

Zhao, Halley

Great thanks Wim.
It works.

-----Original Message-----
From: Wim Taymans [mailto:[hidden email]]
Sent: 2009年12月23日 17:55
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] what's the reason for 'returned caps which are not a real subset of its template caps'?

On Wed, 2009-12-23 at 16:57 +0800, Zhao, Halley wrote:
> When I use my customized camera src element, there is one warning
> that:
>
> 'returned caps which are not a real subset of its template caps'

It means that the template caps are more restrictive that the caps
returned by getcaps, which is likely not what you want.

>
> Could anyone kindly tell me where is root reason?

The template caps contain a framerate field while the ones from the
getcaps function don't.

>
> How to fix it?

Add a framerate field to the caps returned from getcaps.

Wim

>
> Thanks.
>
>  
>
>  
>
> I guess there are two possible reasons:
>
> 1. I added ‘video/x-raw-va’ for my camera src caps, which is not
> included in base src.
>
> 2. Pad template (shows by gst-inspect?) doesn’t match with _get_caps
> during run-time. See attachment.
>
>  
>
>  
>
>  
>
> ZHAO, Halley (Aihua)
>
> Email: [hidden email]
>
> Tel: +86(21)61166476
>
> iNet: 8821-6476
>
> SSG/OTC/Moblin 3W038 Pole: F4
>
>
>  
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel