You will be appreciated if you can answer my similiar question:<br> If video scale element is not needed(we use hardware scale), what's the proper method to notify application the video width and height ratio, implement a signal in every decoder?<br>
If video size changes during playback, how should decoder notify videosink the new data caps, change buffer caps and pad caps directly?<br> Thank you!<br><br><div><span class="gmail_quote">2008/3/18, Bastian Winkler <<a href="mailto:buz@netbuz.org">buz@netbuz.org</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hello daniel,<br> <br> you can connect to the 'notify::caps' signal on the videoscale's sink<br> pad and query for the negotiated caps via gst_pad_get_negotiated_caps<br> there you'll get width, height and pixel-aspect-ratio of the video.<br>
<br> :wq buz<br> <br><br> On Tue, Mar 18, 2008 at 04:58:49AM -0700, <a href="mailto:danielkun@iremo.com">danielkun@iremo.com</a> wrote:<br> ><br> > Hello,<br> ><br> > Videoscale doesn't scale the MPEG files correctly so I'd like to set the<br>
> ratio manually.<br> > (480x480, 4:3 videos are displayed at 1:1. 352x480, 4:3 are displayed as<br> > 3:4...)<br> ><br> > My pipeline looks like this:<br> > (filesrc, mpegdemux, queue, mpeg2dec, videoscale, capsfilter,<br>
> ffmpegcolorspace, dfbvideosink)<br> ><br> > How would I be able to get the ratio (size) of the video?<br> ><br> > Thank you,<br> ><br> > Daniel<br> ><br> ><br> > -------------------------------------------------------------------------<br>
> This SF.net email is sponsored by: Microsoft<br> > Defy all challenges. Microsoft(R) Visual Studio 2008.<br> > <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
> _______________________________________________<br> > gstreamer-devel mailing list<br> > <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br> > <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br> <br>--<br> /* Nobody will ever see this message :-) */<br> panic("Cannot initialize video hardware\n");<br> 2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c<br> <br> GnuPG Fingerprint: 2FFF FC48 C7DF 1EA0 00A0 FD53 8C35 FD2E 6908 7B82<br>
<br>-----BEGIN PGP SIGNATURE-----<br> Version: GnuPG v1.4.6 (GNU/Linux)<br> <br> iD8DBQFH37TFjDX9LmkIe4IRAkN0AJ437xTR1jZmyrt+y48iF9sIMY8vUwCgsWAQ<br> Lj+pMt3/haIg8VrrJ3sTI40=<br> =Ynpd<br> -----END PGP SIGNATURE-----<br>
<br>-------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
_______________________________________________<br> gstreamer-devel mailing list<br> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>