corrupted frames when capturing with uvccapture

Bug #936830 reported by Raffaella Traniello
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Stopmotion
In Progress
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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