Hi,<br><br>Is it about aspect ratio ? (I do not think so but just to be sure)<br><br>Well, why not doing this:<br><br>- retrieve the native width &amp; height from negociated caps just before the xvimagesink (using gstreamer api so)<br>
- set your QWidget (more espcially you should use a QFrame) to this size<br>- put your widget anywhere inside a kind of main widget.<br><br>And so you would be able to control the way the video is streched of not, just by choicing by your self the size of the QFrame, and the behaviour of the QFrame inside its parent widget.<br>
<br>Julien<br><br><div class="gmail_quote">2010/1/22 Debsu <span dir="ltr">&lt;<a href="mailto:debojyoti.pal@wipro.com">debojyoti.pal@wipro.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">













<div>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi Giles,</span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ok, no problem. By default setting,
playbin can rescale the video to fit the window, but it creates the stretching
effect which I don’t want. Anyway, thanks for your help.</span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Regards,</span></font></p>

<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Debojyoti </span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Giles Atkinson
[via GStreamer-devel] [mailto:<a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&amp;node=1099898&amp;i=0" rel="nofollow" target="_blank">[hidden email]</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, January 22, 2010
3:15 PM<br>
<b><span style="font-weight: bold;">To:</span></b> Debojyoti Pal (WT01 -
PES-Mobile-Auto-CE Practice)<div class="im"><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [gst-devel] How to
set window height &amp; width using Playbin</div></span></font></p>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Deb, <br><div class="im">
<br>
I am afraid your questions go beyond my knowledge.  I have developed an
application using playbin, but we are happy with the default behaviour. <br>
We find it works well to control width and height by changing the size of the
output window directly with XConfigureWindow().  Playbin then rescales the
video to fit the window. <br>
<br>
Giles <br>
<br>
-----Original Message----- <br></div><div class="im">
From: Debsu [mailto:<a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&amp;node=1099895&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>] <br>
Sent: 22 January 2010 07:40 <br></div><div class="im">
To: <a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&amp;node=1099895&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br>
Subject: Re: [gst-devel] How to set window height &amp; width using Playbin <br>
<br>
<br>
Hi Giles, <br>
<br>
Thanks a lot for your reply. But I want to set the video height &amp; width <br>
using playbin. So I attached a video sink xvimagesink to playbin, it is not <br>
playing anything. Also I am unable to set the height &amp; width in video sink.
<br>
Is there any other method to set video height &amp; width using playbin? <br>
<br>
Regards, <br>
Deb <br>
-- <br>
View this message in context: <a href="http://n4.nabble.com/How-to-set-window-height-width-using-Playbin-tp1018443p1099823.html" link="external" rel="nofollow" target="_blank">http://n4.nabble.com/How-to-set-window-height-width-using-Playbin-tp1018443p1099823.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com. <br>
<br>
------------------------------------------------------------------------------ <br>
Throughout its 18-year history, RSA Conference consistently attracts the <br>
world&#39;s best and brightest in the field, creating opportunities for Conference <br>
attendees to learn about information security&#39;s most important issues through <br>
interactions with peers, luminaries and emerging and established companies. <br>
<a href="http://p.sf.net/sfu/rsaconf-dev2dev" link="external" rel="nofollow" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</a><br>
_______________________________________________ <br>
gstreamer-devel mailing list <br>
</div><a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&amp;node=1099895&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><div class="im">
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" link="external" rel="nofollow" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
------------------------------------------------------------------------------ <br>
Throughout its 18-year history, RSA Conference consistently attracts the <br>
world&#39;s best and brightest in the field, creating opportunities for Conference <br>
attendees to learn about information security&#39;s most important issues through <br>
interactions with peers, luminaries and emerging and established companies. <br>
<a href="http://p.sf.net/sfu/rsaconf-dev2dev" link="external" rel="nofollow" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</a><br>
_______________________________________________ <br>
gstreamer-devel mailing list <br>
</div><a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&amp;node=1099895&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><div class="im">
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" link="external" rel="nofollow" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
</div></span></font></p>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" color="#cccccc" noshade size="1" width="100%">

</span></font></div>

<div>

<p class="MsoNormal"><font color="#666666" face="Tahoma" size="1"><span style="font-size: 8.5pt; font-family: Tahoma; color: rgb(102, 102, 102);">View message @ <a href="http://n4.nabble.com/How-to-set-window-height-width-using-Playbin-tp1018443p1099895.html" rel="nofollow" link="external" target="_blank">http://n4.nabble.com/How-to-set-window-height-width-using-Playbin-tp1018443p1099895.html</a>
<br>
To unsubscribe from Re: [gst-devel] How to set window height &amp; width using
Playbin, <a rel="nofollow" link="external">click
here</a>. </span></font></p>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<p><b><span style="font-size: 10pt; font-family: &quot;Palatino Linotype&quot;,&quot;serif&quot;; color: green;"> Please do not print this email unless it is absolutely necessary. </span></b><span></span></p>


<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>


<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>

<p>
<a href="http://www.wipro.com" target="_blank">www.wipro.com</a>
</p>




<br><hr align="left" width="300">
View this message in context: <a href="http://n4.nabble.com/How-to-set-window-height-width-using-Playbin-tp1018443p1099898.html" target="_blank">RE: [gst-devel] How to set window height &amp; width using Playbin</a><div>
<div></div><div class="h5"><br>
Sent from the <a href="http://n4.nabble.com/GStreamer-devel-f966125.html" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br>
</div></div><br>------------------------------------------------------------------------------<br>
Throughout its 18-year history, RSA Conference consistently attracts the<br>
world&#39;s best and brightest in the field, creating opportunities for Conference<br>
attendees to learn about information security&#39;s most important issues through<br>
interactions with peers, luminaries and emerging and established companies.<br>
<a href="http://p.sf.net/sfu/rsaconf-dev2dev" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</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" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>