framerate is low

Bug #347570 reported by mungewell
2
Affects Status Importance Assigned to Milestone
python-v4l2capture
New
Undecided
Unassigned

Bug Description

Compared to the other lib, capture frame rate is low on the same hardware.

--
simon@bourne:~/pyDataMatrixScanner$ ./streamgtk.py -p MJPG -x 640 -y 480 -g
stopped capture, frame rate is 9.02251679714
stopped capture, frame rate is 8.94467536006
stopped capture, frame rate is 9.17101152571
--
simon@bourne:~/python-v4l2capture/python-v4l2-capture$ ./stream_test.py
Capture size 640 480
starting capture
trying to stop...
stopped capture, frame rate is 0.747753137051
starting capture
trying to stop...
stopped capture, frame rate is 4.83288197441
starting capture
trying to stop...
stopped capture, frame rate is 4.8239900316
starting capture
trying to stop...
stopped capture, frame rate is 4.07253613909
Terminated...
--

Mungewell.

Revision history for this message
Fredrik Portström (portstrom) wrote :

Are you shure you create enough buffers? Call create_buffers with at least 4 as argument. Call read_and_queue instead of read to return the buffer to the driver quicker.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.