&nbsp;&nbsp;&nbsp;&nbsp; You will be appreciated if you can answer my similiar question:<br>&nbsp;&nbsp;&nbsp;&nbsp; If video scale element is not needed(we use hardware scale), what&#39;s the proper method to notify application the video width and height ratio, implement a signal in every decoder?<br>
&nbsp;&nbsp;&nbsp;&nbsp; If video size changes during playback, how should decoder notify videosink the new data caps, change buffer caps and pad caps directly?<br>&nbsp;&nbsp;&nbsp;&nbsp; Thank you!<br><br><div><span class="gmail_quote">2008/3/18, Bastian Winkler &lt;<a href="mailto:buz@netbuz.org">buz@netbuz.org</a>&gt;:</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 &#39;notify::caps&#39; signal on the videoscale&#39;s sink<br> pad and query for the negotiated caps via gst_pad_get_negotiated_caps<br> there you&#39;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> &gt;<br> &gt; Hello,<br> &gt;<br> &gt; Videoscale doesn&#39;t scale the MPEG files correctly so I&#39;d like to set the<br>
 &gt; ratio manually.<br> &gt; (480x480, 4:3 videos are displayed at 1:1. 352x480, 4:3 are displayed as<br> &gt; 3:4...)<br> &gt;<br> &gt; My pipeline looks like this:<br> &gt; (filesrc, mpegdemux, queue, mpeg2dec, videoscale, capsfilter,<br>
 &gt; ffmpegcolorspace, dfbvideosink)<br> &gt;<br> &gt; How would I be able to get the ratio (size) of the video?<br> &gt;<br> &gt; Thank you,<br> &gt;<br> &gt; Daniel<br> &gt;<br> &gt;<br> &gt; -------------------------------------------------------------------------<br>
 &gt; This SF.net email is sponsored by: Microsoft<br> &gt; Defy all challenges. Microsoft(R) Visual Studio 2008.<br> &gt; <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
 &gt; _______________________________________________<br> &gt; gstreamer-devel mailing list<br> &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br> &gt; <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(&quot;Cannot initialize video hardware\n&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c<br> <br> GnuPG Fingerprint: 2FFF FC48 C7DF 1EA0 00A0&nbsp;&nbsp;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>