corrupted frames when capturing with uvccapture

Bug #936830 reported by Raffaella Traniello on 2012-02-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Stopmotion
High
Unassigned

Bug Description

PROBLEM:
When grabbing with uvccapture from webcam, occasionally (especially at high framerate) the live preview is flickering. Some grabbed frames are grey in full or in part. The saved images are corrupted.

CAUSE:
uvccapture overwrites the file in-place. Since Stopmotion reads the capture file asynchronously, it will sometimes read a partially overwritten file, hence the partially gray image.

SOLUTION:
uvccapture should rather write to a temporary file first, then rename it, so the capture file instantly changes from one image to the next.

uvccapture patch by Herman Robak coming soon.

Changed in lsm:
status: New → In Progress
importance: Undecided → High
tags: added: capture uvccapture
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers