[gst-devel] Re: [patch] gstreamer v4l2 source frame rate detection

Edgard Lima edgard.lima at indt.org.br
Fri May 5 08:16:03 CEST 2006


Hi Fredrik,

Could you please explain better 
http://v4l2spec.bytesex.org/spec-single/v4l2.html#AEN185 how it works.

Thanks,
Edgard Lima - alima
edgard.lima at indt.org.br


ext Fredrik Persson wrote:

>>>Ok, granted, but that is not something the device would do without the
>>>application requesting it (which is what I meant with "dynamically"). And
>>>it's easy to fix, too. Just call get_fps to update the v4l2src->fps_x
>>>variables when the video mode is changed in set_norm. Do you want to write
>>>this? Like I mentioned, I couldn't test it with a TV card anyway.
>>>
>>> 
>>>
>>>      
>>>
>>Couldn't a v4l2 devide be opened by two apps at same time? If so, is the 
>>second app alowed to change the input, or is it read-only?
>>    
>>
>
>(Not knowing exactly what is beeing discussed in this thread, I can answer this single question.)
>
>No, a v4l2 device (typically /dev/video0) can only be opened once. If a second app wants to use /dev/video0, the first app will have to close() it first.
>
>/Fredrik Persson
>
>  
>





More information about the gstreamer-devel mailing list