GNOME Bugzilla – Bug 572872
[ffmpegcolorspace] Add YVYU colorspace
Last modified: 2009-02-24 13:08:07 UTC
hello, I can't use my internal webcam with gstreamer: $ gst-launch-0.10 v4l2src ! fakesink Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format Additional debug info: gstbasesrc.c(2426): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Check your filtered caps, if any Setting pipeline to NULL ... FREEING pipeline ... gnutoo@port4 ~ $ GST_DEBUG=*v4l2*:5 gst-launch-0.10 v4l2src ! fakesink 0:00:00.128593861 7385 0x93ab018 DEBUG v4l2src gstv4l2src.c:606:gst_v4l2src_v4l2fourcc_to_structure: Unknown fourcc 0x30313953 S910 0:00:00.128989093 7385 0x93ab018 DEBUG v4l2src gstv4l2src.c:606:gst_v4l2src_v4l2fourcc_to_structure: Unknown fourcc 0x31435750 PWC1 0:00:00.129204763 7385 0x93ab018 DEBUG v4l2src gstv4l2src.c:606:gst_v4l2src_v4l2fourcc_to_structure: Unknown fourcc 0x32435750 PWC2 Setting pipeline to PAUSED ... 0:00:00.150745769 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:382:gst_v4l2_open:<v4l2src0> Trying to open device /dev/video0 0:00:00.151002995 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:63:gst_v4l2_get_capabilities:<v4l2src0> getting capabilities 0:00:00.151239129 7385 0x93ab018 LOG v4l2 v4l2_calls.c:71:gst_v4l2_get_capabilities:<v4l2src0> driver: 'vc032x' 0:00:00.151457732 7385 0x93ab018 LOG v4l2 v4l2_calls.c:72:gst_v4l2_get_capabilities:<v4l2src0> card: 'USB2.0 Web Camera' 0:00:00.151662576 7385 0x93ab018 LOG v4l2 v4l2_calls.c:73:gst_v4l2_get_capabilities:<v4l2src0> bus_info: '0000:06:0b.2' 0:00:00.151866234 7385 0x93ab018 LOG v4l2 v4l2_calls.c:74:gst_v4l2_get_capabilities:<v4l2src0> version: 00020300 0:00:00.152069821 7385 0x93ab018 LOG v4l2 v4l2_calls.c:75:gst_v4l2_get_capabilities:<v4l2src0> capabilites: 05000001 0:00:00.152275294 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:104:gst_v4l2_fill_lists:<v4l2src0> getting enumerations 0:00:00.152478951 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:107:gst_v4l2_fill_lists:<v4l2src0> channels 0:00:00.152685262 7385 0x93ab018 LOG v4l2 v4l2_calls.c:128:gst_v4l2_fill_lists:<v4l2src0> index: 0 0:00:00.179425253 7385 0x93ab018 LOG v4l2 v4l2_calls.c:129:gst_v4l2_fill_lists:<v4l2src0> name: 'vc032x' 0:00:00.179641901 7385 0x93ab018 LOG v4l2 v4l2_calls.c:130:gst_v4l2_fill_lists:<v4l2src0> type: 00000002 0:00:00.179842764 7385 0x93ab018 LOG v4l2 v4l2_calls.c:131:gst_v4l2_fill_lists:<v4l2src0> audioset: 00000000 0:00:00.180042371 7385 0x93ab018 LOG v4l2 v4l2_calls.c:132:gst_v4l2_fill_lists:<v4l2src0> std: 0000000000000000 0:00:00.180241907 7385 0x93ab018 LOG v4l2 v4l2_calls.c:133:gst_v4l2_fill_lists:<v4l2src0> status: 00000000 0:00:00.180538663 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:175:gst_v4l2_fill_lists:<v4l2src0> norms 0:00:00.180743996 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:214:gst_v4l2_fill_lists:<v4l2src0> controls+menus 0:00:00.180965533 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:290:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Auto Gain (980912) 0:00:00.181364187 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:223:gst_v4l2_fill_lists:<v4l2src0> checking private CIDs 0:00:00.181567146 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:348:gst_v4l2_fill_lists:<v4l2src0> done 0:00:00.181765635 7385 0x93ab018 INFO v4l2 v4l2_calls.c:420:gst_v4l2_open:<v4l2src0> Opened device 'USB2.0 Web Camera' (/dev/video0) successfully 0:00:00.181991432 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:502:gst_v4l2_get_norm:<v4l2src0> getting norm 0:00:00.182201444 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:738:gst_v4l2_get_input:<v4l2src0> trying to get input 0:00:00.182401330 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:748:gst_v4l2_get_input:<v4l2src0> input: 0 0:00:00.182635648 7385 0x93ab018 DEBUG v4l2src v4l2src_calls.c:503:gst_v4l2src_fill_format_list:<v4l2src0> getting src format enumerations 0:00:00.182844403 7385 0x93ab018 LOG v4l2src v4l2src_calls.c:521:gst_v4l2src_fill_format_list:<v4l2src0> index: 0 0:00:00.183042263 7385 0x93ab018 LOG v4l2src v4l2src_calls.c:522:gst_v4l2src_fill_format_list:<v4l2src0> type: 1 0:00:00.183239216 7385 0x93ab018 LOG v4l2src v4l2src_calls.c:523:gst_v4l2src_fill_format_list:<v4l2src0> flags: 00000000 0:00:00.183446016 7385 0x93ab018 LOG v4l2src v4l2src_calls.c:524:gst_v4l2src_fill_format_list:<v4l2src0> description: 'YVYU' 0:00:00.183645203 7385 0x93ab018 LOG v4l2src v4l2src_calls.c:526:gst_v4l2src_fill_format_list:<v4l2src0> pixelformat: YVYU 0:00:00.183846556 7385 0x93ab018 DEBUG v4l2src v4l2src_calls.c:535:gst_v4l2src_fill_format_list:<v4l2src0> got 1 format(s) 0:00:00.184044276 7385 0x93ab018 DEBUG v4l2src gstv4l2src.c:606:gst_v4l2src_v4l2fourcc_to_structure: Unknown fourcc 0x55595659 YVYU 0:00:00.184244930 7385 0x93ab018 DEBUG v4l2src gstv4l2src.c:704:gst_v4l2src_get_caps:<v4l2src0> unknown format 1431918169 0:00:00.184443140 7385 0x93ab018 INFO v4l2src gstv4l2src.c:710:gst_v4l2src_get_caps:<v4l2src0> probed caps: EMPTY 0:00:00.184746810 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:478:gst_v4l2_close:<v4l2src0> Trying to close /dev/video0 0:00:00.184876854 7385 0x93ab018 DEBUG v4l2 v4l2_calls.c:356:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format Additional debug info: gstbasesrc.c(2426): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Check your filtered caps, if any Setting pipeline to NULL ... FREEING pipeline ... I was told that it was because there is no support for YVYU despite of the fact that some people started working on it: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=42c8aa7abc14a67e1241d90ad0e6b0a6e8af08c0
Partially fixed by the following commit. But it still requires ffmpegcolorspace to be aware of the colorspace (in order to convert it to other formats we know about). commit 42c8aa7abc14a67e1241d90ad0e6b0a6e8af08c0 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Mon Feb 23 17:05:43 2009 +0100 Add YVYU format to caps Add YVYU format to the caps. We don't have anything to handle these caps yet, though.
I'll add this later to ffmpegcolorspace and videotestsrc ;)
commit 77a56d597562628b94840e707b9fbd381cbf7905 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Tue Feb 24 14:06:38 2009 +0100 ffmpegcolorspace: Add conversion from/to YVYU colorspace Fixes bug #572872.