[gst-devel] How do I get the size of a video?
danielkun at iremo.com
danielkun at iremo.com
Wed Mar 19 08:38:18 CET 2008
Hello there Bastian,
Thank you very much!
I ended up adding a 'notify::caps' signal to the src of my decoder so
that I would be able to set the width/height properties of videoscale.
Thanks,
Daniel
> hello daniel,
>
> you can connect to the 'notify::caps' signal on the videoscale's sink
> pad and query for the negotiated caps via gst_pad_get_negotiated_caps
> there you'll get width, height and pixel-aspect-ratio of the video.
>
> :wq buz
>
> On Tue, Mar 18, 2008 at 04:58:49AM -0700, danielkun at iremo.com wrote:
> >
> > Hello,
> >
> > Videoscale doesn't scale the MPEG files correctly so I'd like to set the
> > ratio manually.
> > (480x480, 4:3 videos are displayed at 1:1. 352x480, 4:3 are displayed as
> > 3:4...)
> >
> > My pipeline looks like this:
> > (filesrc, mpegdemux, queue, mpeg2dec, videoscale, capsfilter,
> > ffmpegcolorspace, dfbvideosink)
> >
> > How would I be able to get the ratio (size) of the video?
> >
> > Thank you,
> >
> > Daniel
> >
More information about the gstreamer-devel
mailing list