camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

Camera2Video glitching and green flickering in recorded video in Galaxy S6

Open buntupana opened this issue 4 years ago • 8 comments

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 avatar Jan 09 '21 11:01 buntupana

@owahltinez any idea why this is happening?

buntupana avatar Feb 03 '21 09:02 buntupana

Yes. I am experiencing this problem too.

HasimD avatar Feb 18 '21 10:02 HasimD

@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

buntupana avatar Feb 18 '21 10:02 buntupana

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.

HasimD avatar Feb 18 '21 11:02 HasimD

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.

nedols avatar Apr 06 '21 15:04 nedols

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 avatar Apr 19 '21 07:04 amazingvoice

@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 avatar Apr 19 '21 07:04 amazingvoice

@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

buntupana avatar Apr 19 '21 07:04 buntupana