GstBaseSink - getcaps

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

GstBaseSink - getcaps

Julien Isorce
Hi,

If my X11 settings are 32 bpp then an annoying thing is that running "gst-launch-0.10 videotestsrc ! "video/x-raw-rgb, bpp=16, depth=16" ! ximagesink" gives me an error from videotestsrc but I think the error should come from ximagesink.

In ximagesink::gst_ximagesink_getcaps, the xcontext->caps is setup to bpp=32 and depth=24, so I think at this point it should check that this is not compatible with the required caps from my capfilter.

The error is:
"videotestsrc0 : Could not negotiate format" 
and I think it should be:
"ximagesink0 : Could not negotiate format"

Any comment ?

Sincerely
Julien
 

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GstBaseSink - getcaps

Sudarshan Bisht
Use ffmpegcolorspace between caps filter and ximagesink.


On Wed, Sep 1, 2010 at 1:34 PM, Julien Isorce <[hidden email]> wrote:
Hi,

If my X11 settings are 32 bpp then an annoying thing is that running "gst-launch-0.10 videotestsrc ! "video/x-raw-rgb, bpp=16, depth=16" ! ximagesink" gives me an error from videotestsrc but I think the error should come from ximagesink.

In ximagesink::gst_ximagesink_getcaps, the xcontext->caps is setup to bpp=32 and depth=24, so I think at this point it should check that this is not compatible with the required caps from my capfilter.

The error is:
"videotestsrc0 : Could not negotiate format" 
and I think it should be:
"ximagesink0 : Could not negotiate format"

Any comment ?

Sincerely
Julien
 

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GstBaseSink - getcaps

Tim-Philipp Müller-2
In reply to this post by Julien Isorce
On Wed, 2010-09-01 at 12:34 +0200, Julien Isorce wrote:

> If my X11 settings are 32 bpp then an annoying thing is that running
> "gst-launch-0.10 videotestsrc ! "video/x-raw-rgb, bpp=16, depth=16" !
> ximagesink" gives me an error from videotestsrc but I think the error
> should come from ximagesink.
>
> In ximagesink::gst_ximagesink_getcaps, the xcontext->caps is setup to
> bpp=32 and depth=24, so I think at this point it should check that
> this is not compatible with the required caps from my capfilter.
>
> The error is:
> "videotestsrc0 : Could not negotiate format"
> and I think it should be:
> "ximagesink0 : Could not negotiate format"
>
> Any comment ?

Well, yes. We should find a way to report errors like this better, no
doubt. Currently there's no way to communicate error state to the
upstream element that drives the pipeline and eventually errors out
though, it just knows the flow return and that's that. I think there's a
bug about this somewhere in bugzilla, but can't find it right now. Feel
free to file a new one.

Cheers
 -Tim




------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GstBaseSink - getcaps

Julien Isorce


2010/9/1 Tim-Philipp Müller <[hidden email]>
On Wed, 2010-09-01 at 12:34 +0200, Julien Isorce wrote:

> If my X11 settings are 32 bpp then an annoying thing is that running
> "gst-launch-0.10 videotestsrc ! "video/x-raw-rgb, bpp=16, depth=16" !
> ximagesink" gives me an error from videotestsrc but I think the error
> should come from ximagesink.
>
> In ximagesink::gst_ximagesink_getcaps, the xcontext->caps is setup to
> bpp=32 and depth=24, so I think at this point it should check that
> this is not compatible with the required caps from my capfilter.
>
> The error is:
> "videotestsrc0 : Could not negotiate format"
> and I think it should be:
> "ximagesink0 : Could not negotiate format"
>
> Any comment ?

Well, yes. We should find a way to report errors like this better, no
doubt. Currently there's no way to communicate error state to the
upstream element that drives the pipeline and eventually errors out
though, it just knows the flow return and that's that. I think there's a
bug about this somewhere in bugzilla, but can't find it right now. Feel
free to file a new one.

Cheers
 -Tim

Hi,
Could you suggest me a tittle for bugzilla ? So we can find it easier. And in core or base ? 
Julien
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GstBaseSink - getcaps

Stefan Sauer
On 02.09.2010 10:53, Julien Isorce wrote:

>
>
> 2010/9/1 Tim-Philipp Müller <[hidden email] <mailto:[hidden email]>>
>
>     On Wed, 2010-09-01 at 12:34 +0200, Julien Isorce wrote:
>
>     > If my X11 settings are 32 bpp then an annoying thing is that running
>     > "gst-launch-0.10 videotestsrc ! "video/x-raw-rgb, bpp=16,
>     depth=16" !
>     > ximagesink" gives me an error from videotestsrc but I think the
>     error
>     > should come from ximagesink.
>     >
>     > In ximagesink::gst_ximagesink_getcaps, the xcontext->caps is
>     setup to
>     > bpp=32 and depth=24, so I think at this point it should check that
>     > this is not compatible with the required caps from my capfilter.
>     >
>     > The error is:
>     > "videotestsrc0 : Could not negotiate format"
>     > and I think it should be:
>     > "ximagesink0 : Could not negotiate format"
>     >
>     > Any comment ?
>
>     Well, yes. We should find a way to report errors like this better, no
>     doubt. Currently there's no way to communicate error state to the
>     upstream element that drives the pipeline and eventually errors out
>     though, it just knows the flow return and that's that. I think
>     there's a
>     bug about this somewhere in bugzilla, but can't find it right now.
>     Feel
>     free to file a new one.
>
>     Cheers
>      -Tim
>
>
> Hi,
> Could you suggest me a tittle for bugzilla ? So we can find it easier.
> And in core or base ?
> Julien

Could be this one
https://bugzilla.gnome.org/show_bug.cgi?id=350545

Stefan

>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel