[Bug 642909] New: v4l2src and displaying YUY2 doesn't work

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Feb 21 12:53:00 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=642909
  GStreamer | gst-plugins-good | 0.10.32

           Summary: v4l2src and displaying YUY2 doesn't work
    Classification: Desktop
           Product: GStreamer
           Version: 0.10.32
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: aleixpol at kde.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
      GNOME target: ---
     GNOME version: ---


I've been trying to get my app working using the v4l2src using my laptop and I
couldn't get a clean implementation, so I'm guessing it's a v4l2src problem.
I'll try to describe it here.

The problem is that if I try to get some pictures I get this output:

kde-devel at thinktatil:~/projects/kamoso$ gst-launch-0.10 -vv v4l2src !
ffmpegcolorspace ! autovideosink
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv,
format=(fourcc)YUY2, width=(int)1600, height=(int)1200,
interlaced=(boolean)false, framerate=(fraction)5/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

The problem is that it never starts to play. I guessed that it's because of
being receiving this YUY2, so I tried that:

gst-launch-0.10 -vv v4l2src ! video/x-raw-yuv, format="(fourcc)"I420, width=640
! autovideosink
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv,
format=(fourcc)I420, width=(int)640, height=(int)480,
interlaced=(boolean)false, framerate=(fraction)30/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
interlaced=(boolean)false, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
interlaced=(boolean)false, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink:
caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
interlaced=(boolean)false, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps =
video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
interlaced=(boolean)false, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad0:
caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,
interlaced=(boolean)false, framerate=(fraction)30/1
ERROR: from element
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
Output window was closed
Additional debug info:
xvimagesink.c(1318): gst_xvimagesink_handle_xevents ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage
Execution ended after 3301415763 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink:
caps = NULL
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps =
NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...

But here the problem I see is that, on one hand, the resource consumption is
quite high (i guess because of some internal colorspace conversion) and also
because it just doesn't feel right to force a format for all users.

I'll be happy to provide anything that can help solve that problem.
Thanks

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list