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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel