[gstreamer-bugs] [Bug 338818] [PLUGIN-MOVE] v4l2src from bad to good

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Oct 3 07:14:51 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=338818

  GStreamer | gst-plugins-good | Ver: HEAD CVS





------- Comment #28 from Thomas Vander Stichele  2006-10-03 14:14 UTC -------
Another problem I ran into.  Right now v4l2src tries to negotiate a 32768x32768
frame size.  I haven't yet encountered a v4l2 device that can do this.  I also
think it is not the behaviour you expect, and it is definately different from
v4lsrc.

So I tried changing it to a standard format: CIF, which is 352x288.

This does not work on my pwc camera however - the log shows that it requests
352x288, but gets 320x240 instead.  That should be fine; however the pipeline
then stops with a negotiation error.

[gst-head] [thomas at otto v4l2]$ GST_DEBUG=v4l*:4 gst-launch v4l2src !
video/x-raw-yuv,width=352,height=288 ! xvimagesink sync=FALSE
0:00:01.183184000 12969 0x8b22a18 DEBUG              v4l2src
gstv4l2src.c:558:gst_v4l2src_v4l2fourcc_to_caps: Unknown fourcc 0x31384142 BA81
0:00:01.183436000 12969 0x8b22a18 DEBUG              v4l2src
gstv4l2src.c:558:gst_v4l2src_v4l2fourcc_to_caps: Unknown fourcc 0x30313953 S910
Setting pipeline to PAUSED ...
0:00:01.405691000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:349:gst_v4l2_open:<v4l2src0> Trying to open device /dev/video0
0:00:01.780812000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:54:gst_v4l2_get_capabilities:<v4l2src0> getting capabilities
0:00:01.781064000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:86:gst_v4l2_fill_lists:<v4l2src0> getting enumerations
0:00:01.781167000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:89:gst_v4l2_fill_lists:<v4l2src0>   channels
0:00:01.781268000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:108:gst_v4l2_fill_lists:<v4l2src0>     'usb'
0:00:01.781446000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:148:gst_v4l2_fill_lists:<v4l2src0>   norms
0:00:01.781552000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:172:gst_v4l2_fill_lists:<v4l2src0>     'webcam', fps: 0/1
0:00:01.781853000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:184:gst_v4l2_fill_lists:<v4l2src0>   controls+menus
0:00:01.781956000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Brightness
(980900)
0:00:01.782088000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Contrast
(980901)
0:00:01.782196000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Saturation
(980902)
0:00:01.782310000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Auto White
Balance (98090c)
0:00:01.782418000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Red Gain
(98090e)
0:00:01.782524000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Blue Gain
(98090f)
0:00:01.782629000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Gamma (980910)
0:00:01.782733000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Shutter Speed
(Exposure) (980911)
0:00:01.782840000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Auto Gain
Enabled (980912)
0:00:01.782945000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:259:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Gain Level
(980913)
0:00:01.783376000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:193:gst_v4l2_fill_lists:<v4l2src0> checking private CIDs
0:00:01.783482000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:315:gst_v4l2_fill_lists:<v4l2src0> done
0:00:01.783581000 12969 0x8b22a18 INFO                  v4l2
v4l2_calls.c:387:gst_v4l2_open:<v4l2src0> Opened device 'Logitech QuickCam
Orbit' (/dev/video0) successfully
0:00:01.783705000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:469:gst_v4l2_get_norm:<v4l2src0> getting norm
0:00:01.783828000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:705:gst_v4l2_get_input:<v4l2src0> trying to get input
0:00:01.783948000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:70:gst_v4l2src_fill_format_list:<v4l2src0> getting src format
enumerations
0:00:01.784104000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:789:gst_v4l2src_get_fps:<v4l2src0> failed to get PARM: Invalid
argument
0:00:01.784205000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:469:gst_v4l2_get_norm:<v4l2src0> getting norm
0:00:01.784305000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:823:gst_v4l2src_get_fps:<v4l2src0> frame rate returned by
get_norm: 0/1 fps
0:00:01.784429000 12969 0x8b22a18 DEBUG              v4l2src
gstv4l2src.c:558:gst_v4l2src_v4l2fourcc_to_caps: Unknown fourcc 0x32435750 PWC2
0:00:01.785124000 12969 0x8b22a18 DEBUG              v4l2src
gstv4l2src.c:372:gst_v4l2src_fixate:<v4l2src0> fixating caps video/x-raw-yuv,
format=(fourcc)I420, width=(int)352, height=(int)288, framerate=(fraction)[
0/1, 100/1 ]
0:00:01.785260000 12969 0x8b22a18 DEBUG              v4l2src
gstv4l2src.c:797:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 352x288,
format 4:2:0, planar, Y-Cb-Cr
0:00:01.785368000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:285:gst_v4l2src_set_capture:<v4l2src0> V4L2SRC: Setting capture
format to 352x288, format 4:2:0, planar, Y-Cb-Cr
0:00:01.785471000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:248:gst_v4l2src_get_capture:<v4l2src0> V4L2SRC: Getting capture
format
0:00:01.943879000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:307:gst_v4l2src_set_capture:<v4l2src0> V4L2SRC: Updating size
from 352x288 to 320x240, format 4:2:0, planar, Y-Cb-Cr
0:00:01.944120000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:248:gst_v4l2src_get_capture:<v4l2src0> V4L2SRC: Getting capture
format
0:00:01.944252000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:757:gst_v4l2src_set_fps:<v4l2src0> failed to get PARM: Invalid
argument
0:00:01.944379000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:375:gst_v4l2src_capture_init:<v4l2src0> initting the capture
system
0:00:01.944490000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:789:gst_v4l2src_get_fps:<v4l2src0> failed to get PARM: Invalid
argument
0:00:01.944590000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:469:gst_v4l2_get_norm:<v4l2src0> getting norm
0:00:01.944692000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:823:gst_v4l2src_get_fps:<v4l2src0> frame rate returned by
get_norm: 0/1 fps
0:00:01.944849000 12969 0x8b22a18 INFO               v4l2src
v4l2src_calls.c:420:gst_v4l2src_capture_init:<v4l2src0> Got 2 buffers (YU12) of
size 112 KB
0:00:01.945007000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:528:gst_v4l2src_capture_start:<v4l2src0> starting the capturing
0:00:01.945109000 12969 0x8b22a18 WARN               v4l2src
gstv4l2src.c:832:gst_v4l2src_set_caps:<v4l2src0> framerate changed after start
capturing from 15/2 to 0/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /pipeline0/v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(1610): gst_base_src_loop (): /pipeline0/v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 861552000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:02.808439000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:564:gst_v4l2src_capture_stop:<v4l2src0> stopping capturing
0:00:02.808472000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:619:gst_v4l2src_capture_deinit:<v4l2src0> deinitting capture
system
0:00:02.906883000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:528:gst_v4l2src_capture_start:<v4l2src0> starting the capturing
0:00:02.906938000 12969 0x8b22a18 DEBUG              v4l2src
v4l2src_calls.c:564:gst_v4l2src_capture_stop:<v4l2src0> stopping capturing
0:00:02.906962000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:445:gst_v4l2_close:<v4l2src0> Trying to close /dev/video0
0:00:02.913273000 12969 0x8b22a18 DEBUG                 v4l2
v4l2_calls.c:323:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations
Setting pipeline to NULL ...
FREEING pipeline ...


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list