Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Records 1 FPS less than specified #69

Open
waddlesplash opened this issue Nov 21, 2024 · 2 comments
Open

Records 1 FPS less than specified #69

waddlesplash opened this issue Nov 21, 2024 · 2 comments
Labels

Comments

@waddlesplash
Copy link

e.g. if the target frame rate is 24 FPS, then the output files wind up actually being 23 FPS.

I haven't checked if this is an encoding problem (i.e. it's recording 24 FPS but encoding as 23) or a capturing problem.

@jackburton79
Copy link
Owner

I noticed that too, and I always though it was because the system can't keep up. But now I al wondering if it's a rounding / conversion issue. I'll have a look as soon as possible.

@jackburton79
Copy link
Owner

There was, in fact, some rounding: it seems something along the encoding path drops the decimal part of the value in the video.field_rate field. I added a round() to the value I pass and made another change which should make the recording loop a bit faster.
The situation should be improved a bit. At least I get more or less consistently the same FPS I choose as target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants