camera-samples
camera-samples copied to clipboard
Camera2Video glitching and green flickering in recorded video in Galaxy S6
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.
@owahltinez any idea why this is happening?
Yes. I am experiencing this problem too.
@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
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.
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.
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...
@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.
@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