<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 01/10/15 21:29, Hamdi Rakkez wrote:<br>
</div>
<blockquote
cite="mid:CAFXmeVvxhJHnujvFvCMciExj5x3W-9rk=c-+gWaABtJeBQTqtg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000"></font></div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif" color="#000000">I've tried already with <b>capsfilter</b> and
I still have black frames.</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">The pipeline with capsfilter is
:</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">gst-launch-1.0 videotestsrc
num-buffers=500 !
video/x-raw,format=RGBA,width=828,height=544 ! glupload !
glcolorscale ! capsfilter
caps="video/x-raw(memory:GLMemory),format=RGBA,width=800,height=600"
! gldownload ! glimagesink<br>
</font></div>
</div>
</blockquote>
<br>
Oh! There's a bug in the glcolorscale element. It's fixed now by <a
href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=50b690cadbb1bdba98e667fa4d6dc67f393c126f"><a class="moz-txt-link-freetext" href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=50b690cadbb1bdba98e667fa4d6dc67f393c126f">http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=50b690cadbb1bdba98e667fa4d6dc67f393c126f</a></a>
:). If you want the scaling you can use a gleffects_identity
element instead however that won't go into passthrough mode like
glcolorscale will.<br>
<br>
Cheers<br>
-Matt<br>
<br>
<blockquote
cite="mid:CAFXmeVvxhJHnujvFvCMciExj5x3W-9rk=c-+gWaABtJeBQTqtg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Thu, Oct 1, 2015 at 12:22 PM,
Matthew Waters <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:ystreet00@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ystreet00@gmail.com">ystreet00@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class=""> On
01/10/15 20:00, Hamdi Rakkez wrote:<br>
<blockquote type="cite">
<div dir="ltr">
<div><font face="arial, helvetica, sans-serif"
color="#000000">Hi list,</font></div>
<div><font face="arial, helvetica, sans-serif"
color="#000000"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif"
color="#000000">I am using gstreamer-1.5.90 on
ubuntu14.04.</font></div>
<div><font face="arial, helvetica, sans-serif"
color="#000000"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif"
color="#000000">So here's the pipeline which
intend to resize a video stream :</font></div>
<div style="color:rgb(7,55,99)"><font face="arial,
helvetica, sans-serif"><br>
</font></div>
<div><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>
</span> 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<span class=""><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div><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><br>
</div>
<div><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">PS :</font></span></div>
<div>
<ul>
<li><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><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">Best Regards,</font></span></div>
<div><span
style="font-family:arial,sans-serif;font-size:13px;line-height:16px"><font
color="#000000">Hamdi</font></span></div>
</div>
</blockquote>
<br>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>