issue with using glcolorscale

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

issue with using glcolorscale

xargon
I am trying to find a way to do video scaling on the GPU and the only thing I could find was the glcolorscale filter. I am running streamer 1.8.0 on my ARM device and I tried to execute the following:

gst-launch-1.0 -v videotestsrc ! "video/x-raw-yuv" | glcolorscale ! ximagesink

This is an example that I found in the documentation for glcolorscale but it returns an error:

"Could not return videotestsrc0 to glcolorscale0"
Reply | Threaded
Open this post in threaded view
|

Re: issue with using glcolorscale

Matthew Waters
On 15/07/16 23:59, xargon wrote:
> I am trying to find a way to do video scaling on the GPU and the only thing I
> could find was the glcolorscale filter. I am running streamer 1.8.0 on my
> ARM device and I tried to execute the following:
>
> gst-launch-1.0 -v videotestsrc ! "video/x-raw-yuv" | glcolorscale !
> ximagesink

1. video/x-raw-yuv caps aren't valid anymore in Gst 1.0.  They are just
video/x-raw,format=??? now.

2. To be able to use glcolorscale with raw pipelines, you either need to
surround it in glupload/gldownload/glcolorconvert or place it in a
glfilterbin.

e.g. videotestsrc ! glfilterbin filter=glcolorscale ! ximagesink; or
videotestsrc ! glupload ! glcolorconvert ! glcolorscale ! glcolorconvert
! gldownload ! ximagesink

Cheers
-Matt

> This is an example that I found in the documentation for glcolorscale but it
> returns an error:
>
> "Could not return videotestsrc0 to glcolorscale0"
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/issue-with-using-glcolorscale-tp4678695.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: issue with using glcolorscale

xargon
Thanks for the reply! I went a bit further by trying:

gst-launch-1.0 -v autovideosrc ! glfilterbin filter=glcolorscale ! 'video/x-raw, width=420, height=240' ! ximagesink

This starts streaming for a few seconds and then it hangs. I set GST_DEBUG level to 3 and I get the following:

/GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0.GstGhostPad:src.GstProxyPad:proxypad0: caps = "video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
0:00:00.768914854  2900   0x183e30 WARN          v4l2bufferpool gstv4l2bufferpool.c:1196:gst_v4l2_buffer_pool_dqbuf:<autovideosrc0-actual-src-v4l:pool:src> Driver should never set v4l2_buffer.field to ANY
0:00:00.904931031  2900   0x183e30 WARN                 v4l2src gstv4l2src.c:829:gst_v4l2src_create:<autovideosrc0-actual-src-v4l> lost frames detected: count = 1 - ts: 0:00:00.478324333
0:00:00.969405951  2900   0x183e30 WARN                 v4l2src gstv4l2src.c:829:gst_v4l2src_create:<autovideosrc0-actual-src-v4l> lost frames detected: count = 1 - ts: 0:00:00.544986333
0:00:01.935838773  2900   0x183e30 WARN                 v4l2src gstv4l2src.c:829:gst_v4l2src_create:<autovideosrc0-actual-src-v4l> lost frames detected: count = 1 - ts: 0:00:01.511671834
0:00:02.044949927  2900   0x183e30 WARN                 v4l2src gstv4l2src.c:829:gst_v4l2src_create:<autovideosrc0-actual-src-v4l> lost frames detected: count = 1 - ts: 0:00:01.611675416
0:00:02.271441391  2900   0x183e30 WARN                 v4l2src gstv4l2src.c:829:gst_v4l2src_create:<autovideosrc0-actual-src-v4l> lost frames detected: count = 1 - ts: 0:00:01.844992583
0:00:02.704928045  2900   0x183e30 WARN                 v4l2src gstv4l2src.c:829:gst_v4l2src_create:<autovideosrc0-actual-src-v4l> lost frames detected: count = 1 - ts: 0:00:02.278339917

Would you have any tips on how to proceed? I am using gstreamer 1.8