glcolorscale problem with resizing

Hamdi Rakkez hamdi.rakez.selotec at gmail.com
Thu Oct 1 06:42:25 PDT 2015


ah okay Thank you a lot.

What you mean by passthrough mode ??

On Thu, Oct 1, 2015 at 2:27 PM, Matthew Waters <ystreet00 at gmail.com> wrote:

> On 01/10/15 21:29, Hamdi Rakkez wrote:
>
> ​​
> I've tried already with *capsfilter* and I still have black frames.
>
> The pipeline with capsfilter is :
>
> 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
>
>
> Oh!  There's a bug in the glcolorscale element.  It's fixed now by
> <http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=50b690cadbb1bdba98e667fa4d6dc67f393c126f>
> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=50b690cadbb1bdba98e667fa4d6dc67f393c126f
> :).  If you want the scaling you can use a gleffects_identity element
> instead however that won't go into passthrough mode like glcolorscale will.
>
> Cheers
> -Matt
>
> On Thu, Oct 1, 2015 at 12:22 PM, Matthew Waters < <ystreet00 at gmail.com>
> ystreet00 at gmail.com> wrote:
>
>> On 01/10/15 20:00, Hamdi Rakkez wrote:
>>
>> Hi list,
>>
>> I am using gstreamer-1.5.90 on ubuntu14.04.
>>
>> So here's the pipeline which intend to resize a video stream :
>>
>> gst-launch-1.0 videotestsrc num-buffers=500 !
>> video/x-raw,format=RGBA,width=828,height=544 ! glupload ! glcolorscale !
>> capssetter caps="video/x-raw,format=RGBA,width=800,height=600" !
>> gldownload ! glimagesink
>>
>>
>> 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.
>>
>> Cheers
>> -Matt
>>
>> The problem is with *glcolorscale* along with the *capssetter* : If I
>> put *width* and *height* other then the original ones (828 X 544 ) I get
>> black frames.
>>
>> PS :
>>
>>    - The API which my gstreamer uses is OpenGL
>>    - When preserving the same resolution I get the normal video stream.
>>
>> Best Regards,
>> Hamdi
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151001/cd3389b7/attachment.html>


More information about the gstreamer-devel mailing list