gstreamer use waylandsink can not support NV12 format ?

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

gstreamer use waylandsink can not support NV12 format ?

kevan.lan
My weston version is weston-1.11.0, and when i use gst-launch-1.0 test waylandsink RGB formats(BGRA, BGRx, RGB16) is ok,but NV12 format has errors.

# gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12,height=1920,width=1080 ! waylandsink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

What might be the problem? How to fix it?
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer use waylandsink can not support NV12 format ?

Nicolas Dufresne-5
Le mercredi 11 janvier 2017 à 09:24 -0800, kevan.lan a écrit :

> # gst-launch-1.0 videotestsrc !
> video/x-raw,format=NV12,height=1920,width=1080 ! waylandsink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
> Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2948): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> What might be the problem? How to fix it?
Weston 1.11 only support RGB formats when rendering through wl_shm. Run
weston-info, and look for the line about wl_shm, you'll see. Git master
 of weston now uses the GL Render and Shaders to support some YUV
formats. Though, this seems unstable, cause visual artefact and
sometimes Weston crash.

To fix the problem, you'll have to work with Weston developers and fix
this feature.

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

signature.asc (188 bytes) Download Attachment