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

seconds of video in Continuous Capture mode becomes double after keeping it on for a while. #108

Open
Gautam87 opened this issue Oct 24, 2019 · 3 comments

Comments

@Gautam87
Copy link

eg. It changes from 7 seconds to 14 after sometime.

@sambaDaemon
Copy link

In circularEncoderBuffer.java
line 275, is:
if (size > freeSpace) {

if you make it
if (size >= freeSpace) {
instead, does the problem go away?

What I think is happening, is that the head of the data ring buffer is able to overtake the tail, and the program doesn't detect when that's happened.
It only tries to prevent it, with the tests in the canAdd() function.

It's OK for the buffer time span to grow, because you can fit a lot more video time in the same amount of data buffer if the video is simple, eg. camera face-down on the desk, black screen. The number of seconds of video held, is variable with the bitrate.
Where it goes wrong, is if the oldest blocks in the metadata buffer start to point to video data that's already been overwritten due to buffer overlap. Then, saving a video will give bad results.

@strmchsr
Copy link

strmchsr commented Jun 7, 2021

I am facing the same issue , any update regarding this issue? @Gautam87 @sambaDaemon

@Michaelj-maker
Copy link

How's the issue with

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

No branches or pull requests

4 participants