glcolorscale problem with resizing
Matthew Waters
ystreet00 at gmail.com
Thu Oct 1 06:27:22 PDT 2015
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
:). 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
> <mailto: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/e01bd47e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151001/e01bd47e/attachment-0001.sig>
More information about the gstreamer-devel
mailing list