Skip to content

Writing frames too fast #29

Description

Hey, I was looking at the code source for your Screen Capture example, and I noticed a comment that said you were making sure not to write frames to the mp4 file too quickly because you'd overload the buffer. I think what actually breaks the system is when you try to write a frame using a timestamp that a frame has already been written to. So if the selected file frame rate is too low it could easily round off the timestamps in two new frame events so that they refer to the same frame. I've worked around this problem by using 240fps as my frame rate when opening the output file, a much higher frame rate than I'd expect any webcam to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions