<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 01/10/15 20:00, Hamdi Rakkez wrote:<br>
<blockquote
cite="mid:%3CCAFXmeVs4=BHT35FmKNZhD99tF-UWgoc697_E+7XEJ4yPMVPryQ@mail.gmail.com%3E"
type="cite">
<div dir="ltr">
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000">Hi list,</font></div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000"><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000">I am using gstreamer-1.5.90 on
ubuntu14.04.</font></div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000"><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000">So here's the pipeline which
intend to resize a video stream :</font></div>
<div class="gmail_default" style="color:rgb(7,55,99)"><font
face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">gst-launch-1.0
videotestsrc num-buffers=500 !
video/x-raw,format=RGBA,width=828,height=544 ! glupload ! </span><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#ff0000">glcolorscale ! capssetter
caps="video/x-raw,format=RGBA,width=800,height=600"</font></span><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000"> ! gldownload ! glimagesink</font></span><br>
</div>
</div>
</blockquote>
<br>
capssetter is definitely not what you want here. Try a capsfilter
instead. capssetter will simply override the caps between the
elements where a capsfilter will make them negotiate to the
requested caps.<br>
<br>
Cheers<br>
-Matt<br>
<br>
<blockquote
cite="mid:%3CCAFXmeVs4=BHT35FmKNZhD99tF-UWgoc697_E+7XEJ4yPMVPryQ@mail.gmail.com%3E"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">The problem is with <b>glcolorscale</b>
along with the <b>capssetter</b> : If I put <b>width</b>
and <b>height</b> other then the original ones (828 X 544
) I get black frames.</font></span></div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><br>
</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">PS :</font></span></div>
<div class="gmail_default">
<ul>
<li style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;line-height:16px">The
API which my gstreamer uses is OpenGL</span><br>
</li>
<li><font color="#000000"><span style="line-height:16px">When
preserving the same resolution I get the normal video
stream.</span></font></li>
</ul>
</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">Best Regards,</font></span></div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">Hamdi</font></span></div>
</div>
</blockquote>
<br>
</body>
</html>