use gstreamer opengl plugin to do video format change

strong 330271189 at qq.com
Fri Apr 2 10:21:55 UTC 2021


hi, all
    I want to use gstreamer OpenGL plugin to do some video format change, I can get the right result when yuv<-->RGB,like
gst-launch-1.0 filesrc location=./video_play/container_cif.yuv do-timestamp=true blocksize=152064 ! video/x-raw, format=I420,width=352, height=288, framerate=25/1 !  glupload ! glcolorscale ! glcolorconvert ! video/x-raw\(memory:GLMemory\),format=RGB,width=320, height=240 ! gldownload ! filesink location=test.yuv sync=false
   
   But if I change YUV420 to NV12,the command did not work, 
gst-launch-1.0 filesrc location=./video_play/container_cif.yuv do-timestamp=true blocksize=152064 ! video/x-raw, format=I420,width=352, height=288, framerate=25/1 !  glupload ! glcolorscale ! glcolorconvert ! video/x-raw\(memory:GLMemory\),format=NV12,width=320, height=240 ! gldownload ! filesink location=test.yuv sync=false
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'gldownloadelement0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter caps do not completely specify the output format
Additional debug info:
../plugins/elements/gstcapsfilter.c(457): gst_capsfilter_prepare_buf (): /GstPipeline:pipeline0/GstCapsFilter:capsfilter0:
Output caps are unfixed: EMPTY
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Freeing pipeline ...



    Does nobody know which OpenGL plugin can do yuv420<-->NV12?
Thanks very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210402/6d557223/attachment.htm>


More information about the gstreamer-devel mailing list