Problem playing raw (gray8) video

John Stowers john.stowers.lists at gmail.com
Mon Jun 25 07:13:07 PDT 2012


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

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


More information about the gstreamer-devel mailing list