Camerabin - how to specify size of image for capture

Ian Davidson id012c3076 at blueyonder.co.uk
Thu Feb 20 08:20:08 PST 2014


Hi Tim,

I did not compile against libvideo4linux because I did not know where to 
find it.  The trace is below.  If I need to download libvideo4linux, 
I'll need a pointer as to where to find it.

0:00:00.109716228  3877  0x9a37fc0 DEBUG   
                v4l2 
gstv4l2object.c:1578:gst_v4l2_object_v4l2fourcc_to_structure: 
Unknown fourcc 0x50313459 Y41P
0:00:00.115740740  3877  0x9a37fc0 DEBUG   
                v4l2 v4l2_calls.c:528:gst_v4l2_open:<v4l2src0> 
Trying to open device /dev/video0
0:00:00.116018376  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:76:gst_v4l2_get_capabilities:<v4l2src0> getting 
capabilities
0:00:00.116061691  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:84:gst_v4l2_get_capabilities:<v4l2src0> driver:      
'STV06xx'
0:00:00.116087252  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:85:gst_v4l2_get_capabilities:<v4l2src0> card:        
'Camera'
0:00:00.116110199  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:86:gst_v4l2_get_capabilities:<v4l2src0> bus_info:    
'usb-0000:00:03.0-2'
0:00:00.116132806  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:87:gst_v4l2_get_capabilities:<v4l2src0> version:     
00030d03
0:00:00.116154576  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:88:gst_v4l2_get_capabilities:<v4l2src0> capabilites: 
85000001
0:00:00.116177452  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:119:gst_v4l2_fill_lists:<v4l2src0> getting enumerations
0:00:00.116197107  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:122:gst_v4l2_fill_lists:<v4l2src0> channels
0:00:00.116219360  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:145:gst_v4l2_fill_lists:<v4l2src0> index:     0
0:00:00.116241389  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:146:gst_v4l2_fill_lists:<v4l2src0> name:      'STV06xx'
0:00:00.116262048  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:147:gst_v4l2_fill_lists:<v4l2src0> type:      00000002
0:00:00.116282977  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:148:gst_v4l2_fill_lists:<v4l2src0> audioset:  00000000
0:00:00.116341616  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:150:gst_v4l2_fill_lists:<v4l2src0> std:       
0000000000000000
0:00:00.116367103  3877  0x9a37fc0 LOG     
                v4l2 
v4l2_calls.c:151:gst_v4l2_fill_lists:<v4l2src0> status:    00000000
0:00:00.116482797  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:194:gst_v4l2_fill_lists:<v4l2src0>   norms
0:00:00.116508816  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:242:gst_v4l2_fill_lists:<v4l2src0> controls+menus
0:00:00.116529297  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:265:gst_v4l2_fill_lists:<v4l2src0> checking control 
00000000
0:00:00.116556737  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:333:gst_v4l2_fill_lists:<v4l2src0> Control type for 
'User Controls' not suppored for extra controls.
0:00:00.116579998  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:383:gst_v4l2_fill_lists:<v4l2src0> ControlID User 
Controls (980001) unhandled, FIXME
0:00:00.116604053  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:265:gst_v4l2_fill_lists:<v4l2src0> checking control 
00980001
0:00:00.116628261  3877  0x9a37fc0 INFO    
                v4l2 
v4l2_calls.c:324:gst_v4l2_fill_lists:<v4l2src0> adding generic 
controls 'exposure'
0:00:00.116655065  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:390:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID 
exposure (980911)
0:00:00.116745590  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:265:gst_v4l2_fill_lists:<v4l2src0> checking control 
00980911
0:00:00.116774243  3877  0x9a37fc0 INFO    
                v4l2 
v4l2_calls.c:324:gst_v4l2_fill_lists:<v4l2src0> adding generic 
controls 'gain'
0:00:00.116799482  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:390:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID 
gain (980913)
0:00:00.116825038  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:265:gst_v4l2_fill_lists:<v4l2src0> checking control 
00980913
0:00:00.116849025  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:271:gst_v4l2_fill_lists:<v4l2src0> controls finished
0:00:00.116869362  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:452:gst_v4l2_fill_lists:<v4l2src0> done
0:00:00.116888583  3877  0x9a37fc0 INFO    
                v4l2 v4l2_calls.c:588:gst_v4l2_open:<v4l2src0> 
Opened device 'Camera' (/dev/video0) successfully
0:00:00.116919138  3877  0x9a37fc0 DEBUG   
                v4l2 
gstv4l2object.c:880:gst_v4l2_set_defaults:<v4l2src0> tv_norm=0x0, 
norm=(nil)
0:00:00.116951467  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:749:gst_v4l2_get_norm:<v4l2src0> getting norm
0:00:00.116972863  3877  0x9a37fc0 DEBUG   
                v4l2 v4l2_calls.c:763:gst_v4l2_get_norm: 
Failed to get the current norm for device /dev/video0
0:00:00.116998313  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:1015:gst_v4l2_get_input:<v4l2src0> trying to get input
0:00:00.117019920  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:1025:gst_v4l2_get_input:<v4l2src0> input: 0
0:00:00.119570992  3877  0x9a37fc0 LOG     
                v4l2 
gstv4l2object.c:3124:gst_v4l2_object_unlock_stop:<v4l2src0> flush 
stop poll
0:00:00.121158754  3877  0x9a36f50 DEBUG   
                v4l2 
gstv4l2object.c:1283:gst_v4l2_object_fill_format_list:<v4l2src0> 
getting src format enumerations
0:00:00.121444186  3877  0x9a36f50 LOG     
                v4l2 
gstv4l2object.c:1301:gst_v4l2_object_fill_format_list:<v4l2src0> 
index:       0
0:00:00.121486610  3877  0x9a36f50 LOG     
                v4l2 
gstv4l2object.c:1302:gst_v4l2_object_fill_format_list:<v4l2src0> 
type:        1
0:00:00.121511088  3877  0x9a36f50 LOG     
                v4l2 
gstv4l2object.c:1303:gst_v4l2_object_fill_format_list:<v4l2src0> 
flags:       00000000
0:00:00.121534251  3877  0x9a36f50 LOG     
                v4l2 
gstv4l2object.c:1305:gst_v4l2_object_fill_format_list:<v4l2src0> 
description: 'GRBG'
0:00:00.121557454  3877  0x9a36f50 LOG     
                v4l2 
gstv4l2object.c:1307:gst_v4l2_object_fill_format_list:<v4l2src0> 
pixelformat: GRBG
0:00:00.121587994  3877  0x9a36f50 INFO    
                v4l2 
gstv4l2object.c:1320:gst_v4l2_object_fill_format_list:<v4l2src0> 
got 1 format(s):
0:00:00.121609877  3877  0x9a36f50 INFO    
                v4l2 
gstv4l2object.c:1326:gst_v4l2_object_fill_format_list:<v4l2src0> GRBG
0:00:00.121647968  3877  0x9a36f50 DEBUG   
                v4l2 
gstv4l2object.c:1578:gst_v4l2_object_v4l2fourcc_to_structure: 
Unknown fourcc 0x47425247 GRBG
0:00:00.121675401  3877  0x9a36f50 DEBUG   
                v4l2 
gstv4l2object.c:3233:gst_v4l2_object_get_caps:<v4l2src0> unknown 
format 1195528775
0:00:00.121698030  3877  0x9a36f50 INFO    
                v4l2 
gstv4l2object.c:3246:gst_v4l2_object_get_caps:<v4l2src0> probed 
caps: EMPTY
0:00:00.121761973  3877  0x9a36f50 DEBUG   
                v4l2 
gstv4l2object.c:3247:gst_v4l2_object_get_caps:<v4l2src0> ret: EMPTY
0:00:00.121803730  3877  0x9a36f50 DEBUG   
             v4l2src 
gstv4l2src.c:312:gst_v4l2src_negotiate:<v4l2src0> caps of src: EMPTY
0:00:00.121828130  3877  0x9a36f50 DEBUG   
             v4l2src 
gstv4l2src.c:313:gst_v4l2src_negotiate:<v4l2src0> thiscaps: EMPTY
0:00:00.121876723  3877  0x9a36f50 DEBUG   
             v4l2src 
gstv4l2src.c:321:gst_v4l2src_negotiate:<v4l2src0> caps of peer: ANY
0:00:00.121908841  3877  0x9a36f50 DEBUG   
             v4l2src 
gstv4l2src.c:322:gst_v4l2src_negotiate:<v4l2src0> peercaps: ANY
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal 
data flow error.
Additional debug info:
gstbasesrc.c(2934): gst_base_src_loop (): 
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
0:00:00.122758878  3877  0x9a37fc0 LOG     
                v4l2 
gstv4l2object.c:3115:gst_v4l2_object_unlock:<v4l2src0> flush poll
0:00:00.123111144  3877  0x9a37fc0 LOG     
                v4l2 
gstv4l2object.c:3115:gst_v4l2_object_unlock:<v4l2src0> flush poll
0:00:00.123153771  3877  0x9a37fc0 LOG     
                v4l2 
gstv4l2object.c:3124:gst_v4l2_object_unlock_stop:<v4l2src0> flush 
stop poll
0:00:00.123704674  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:723:gst_v4l2_close:<v4l2src0> Trying to close /dev/video0
0:00:00.123804921  3877  0x9a37fc0 DEBUG   
                v4l2 
v4l2_calls.c:460:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations


On 20/02/2014 14:37, Tim Müller wrote:
> On Thu, 2014-02-20 at 14:21 +0000, Ian Davidson wrote:
>
>
>> It crashed when I tried to establish an image size of 800x600.
> It errors out with not-negotiated it seems, which indicates a problem
> with the caps negotiation.
>
>>    I ran with --gst-debug=4 and here is part of the log that was output
>> gstv4l2object.c:3246:gst_v4l2_object_get_caps:<..> probed caps: EMPTY
> Well, that's not very promising. Can you make a debug log like this?
>
>   GST_DEBUG=*v4l*:6 gst-launch-1.0 v4l2src num-buffers=1 ! fakesink
> 2>dbg.log
>
> Note that you may need to compile v4l2src from -good against
> libvideo4linux(-devel) in case the camera only offers formats that are
> not handled natively in GStreamer and that need converting.
>
> Cheers
>   -Tim
>



More information about the gstreamer-devel mailing list