Problem playing raw (gray8) video

Wim Taymans wim.taymans at gmail.com
Mon Jun 25 07:33:38 PDT 2012


On 06/25/2012 04:13 PM, John Stowers wrote:
> Hi All,
>
> I can't get gstvideoparse to recognize my raw video format. The following works
>
> gst-launch-0.10 videotestsrc num-buffers=100 ! \
>    video/x-raw-yuv,format=\(fourcc\)"I420",width=640,height=480 !
> filesink location=video.yuv
>
> cat ./video.yuv | gst-launch-0.10 fdsrc ! \
>    videoparse format="i420" width=640 height=480 ! xvimagesink
>
> But I do not have Y420, I have gray8 (aka Y800?). The following *does not work*
>
> gst-launch-0.10 videotestsrc num-buffers=100 ! \
>    video/x-raw-gray,width=640,height=480 ! filesink location=video.raw
>
> cat ./video.raw | gst-launch-0.10 fdsrc ! \
>    videoparse format="gray8" width=640 height=480 ! xvimagesink

this won't work, xvimagesink doesn't accept gray8, use ffmpegcolorspace 
before
xvimagesink to convert it.

Wim
>
> It dies withSetting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstVideoParse:videoparse0.GstPad:src: caps =
> video/x-raw-gray, bpp=(int)8, depth=(int)8, width=(int)640,
> height=(int)480, framerate=(fraction)25/1,
> pixel-aspect-ratio=(fraction)1/1
> ERROR: from element /GstPipeline:pipeline0/GstFdSrc:fdsrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2625): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstFdSrc:fdsrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /GstPipeline:pipeline0/GstVideoParse:videoparse0.GstPad:src: caps = NULL
>
> Any ideas?
>
> John
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list