videocrop and videobox not working in video coordinate...

Eric Trousset etrousset at awox.com
Mon Jan 27 00:20:43 PST 2014



> -----Original Message-----
> From: gstreamer-devel-
> bounces+etrousset=awox.com at lists.freedesktop.org [mailto:gstreamer-
> devel-bounces+etrousset=awox.com at lists.freedesktop.org] On Behalf Of
> Sebastian Dröge
> Sent: samedi 25 janvier 2014 12:09
> To: Discussion of the development of and with GStreamer
> Subject: Re: videocrop and videobox not working in video coordinate...
> 
> On Do, 2014-01-23 at 09:48 +0100, Eric Trousset wrote:
> > Yes, I understand that. Then, when using playbin, how can I get the
> > original video size and to be able the add a capfilter in front of the
> > videocrop element to avoid video scaling prior to the cropping?
> 
> That's actually a good question and not so trivial at all. I assume you have a
> custom video-sink on playbin, which is a bin that contains among other things
> the capsfilter and videocrop.

Yes that's my case.

> 
> If you're lucky then the following will work. You put ... ! videocrop !
> videoscale ! capsfilter ! ...
> inside the bin. The capsfilter would then make sure that the output after
> cropping is exactly the size you want.

It seems I wasn't lucky cause the negotiated input size of the videocrop was the output size + croping size instead of the video size :)

> 
> Alternatively you will have to handle negotiation and the caps events in your
> bin and dynamically set proper caps on the capsfilters and set the crop
> properties on videocrop accordingly.

Ok, I'll try to figure out how this work.

> 
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com Expertise,
> Straight from the Source


More information about the gstreamer-devel mailing list