#10106 NORM 1.5-sof: Camera driver v4l2 caps only advertise 30fps

Zarro Boogs per Child bugtracker at laptop.org
Wed Apr 7 18:17:54 EDT 2010


#10106: Camera driver v4l2 caps only advertise 30fps
---------------------------------+------------------------------------------
           Reporter:  cjb        |       Owner:  corbet             
               Type:  defect     |      Status:  new                
           Priority:  normal     |   Milestone:  1.5-software-update
          Component:  kernel     |     Version:  not specified      
         Resolution:             |    Keywords:                     
        Next_action:  never set  |    Verified:  0                  
Deployment_affected:             |   Blockedby:                     
           Blocking:             |  
---------------------------------+------------------------------------------

Comment(by cjb):

 According to gstreamer, once it's getting samples from the camera (at
 30fps, I suppose), it stops receiving audio samples after the first two
 samples that it sees.

 I tried ffmpeg, mencoder and vlc in an attempt to see if recording
 audio+video works outside of gstreamer, but so far haven't been able to
 get any of them to record audio+video for varying and unexciting reasons.

 Maybe having lower framerate support will help; perhaps gstreamer's
 response to spending lots of CPU gathering video frames is to drop audio.
 It does seem like it's not getting the audio samples from alsa, rather
 than choosing to drop them itself, though..

 The gstreamer command that I'm using to record is:

 `gst-launch -vvv v4l2src ! videorate ! video/x-raw-yuv,framerate=5/1 !
 fakesink alsasrc ! wavenc ! fakesink`

 If it's working, fakesink0 and fakesink1 should accumulate timestamps
 together.  (fakesink discards the generated data rather than writing it to
 disk or RAM; I'm doing that to exclude I/O speed issues.)

-- 
Ticket URL: <http://dev.laptop.org/ticket/10106#comment:4>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list