Nooblazor
Posts: 1
Joined: Wed Apr 29, 2020 7:53 am

raspividyuv to gstreamer using glupload

Wed Apr 29, 2020 7:59 am

Hello,

I am trying to get raw I420 video (from raspividyuv) into a glimagesink on a raspberry pi. I have eglfs working and I can run a simple pipeline like:

Code: Select all

gst-launch-1.0 testvideosrc ! glupload ! glimagesink
However, the following pipeline:

Code: Select all

gst-launch-1.0 fdsrc ! queue ! video/x-raw,width=1280,height=480,format=I420, framerate=40/1 ! rawvideoparse use-sink-caps=true ! glupload ! glcolorconvert ! glcolorscale ! glimagesink
Breaks with the following error:

Code: Select all

0:00:00.295788384  8443  0x12698f0 WARN           basetransform gstbasetransform.c:1364:gst_base_transform_setcaps:<gluploadelement0> transform could not transform video/x-raw, format=(string)I420, width=(int)1280, height=(int)480, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)40/1 in anything we support
I was under the impression that glupload should be able to handle this format based on the listed caps:

Code: Select all

video/x-raw:
         format: { RGBA, BGRA, RGBx, BGRx, ARGB, ABGR, xRGB, xBGR, RGB, BGR, RGB16, BGR16, AYUV, VUYA, I420, YV12, NV12, NV21, YUY2, UYVY, Y41B, Y42B, Y444, GRAY8, GRAY16_LE, GRAY16_BE, ARGB64 }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]
I would really appreciate if someone could point me in the right direction.

Return to “OpenGLES”