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

Camera2Video glitching and green flickering in recorded video in Galaxy S6 #348

Open
buntupana opened this issue Jan 9, 2021 · 8 comments

Comments

@buntupana
Copy link

buntupana commented Jan 9, 2021

In Samsung Galaxy S6 the video result has a green flickering and glitching effect. I think it's probably related somehow with SurfaceView, I've tried and old implementation using TextureView and it does not have this issue.

giphy

@buntupana
Copy link
Author

@owahltinez any idea why this is happening?

@HasimD
Copy link

HasimD commented Feb 18, 2021

Yes. I am experiencing this problem too.

@buntupana
Copy link
Author

@HasimD the only solution I found is change my implementation to use TextureView instead SurfaceView...just if it's useful for you. It's a bit of shame that Google doesn't provide a good examples and don't even attend the tickets created

@HasimD
Copy link

HasimD commented Feb 18, 2021

I agree with you, i'm very surprised. The offical sample doesn't seem like professional. Also if I click to the capture button, the app crashes. I need to press it for a while. They said it is not an error and they will change it. Weird.

@nedols
Copy link

nedols commented Apr 6, 2021

I agree with you, i'm very surprised. The offical sample doesn't seem like professional. Also if I click to the capture button, the app crashes. I need to press it for a while. They said it is not an error and they will change it. Weird.

Looking at the code this is the correct behaviour.
To start recording you need to tap&hold the capture button. When you release the capture button the application stop to recording video.

@amazingvoice
Copy link

I'm experiencing the same problem on my Galaxy s7 and Pixel 3. This is the only offical video recording demo using Camera2, which is embarrassing...

@amazingvoice
Copy link

@buntupana I just happened to find that an animation causes the white flash. Search for the variable animationTask in CameraFragment.kt. Comment that out will solve the problem.

@buntupana
Copy link
Author

@amazingvoice I'm not complaining about the white flickering, it's the green flickering and the glitching when the video is recorded what this ticket is about

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