CameraView icon indicating copy to clipboard operation
CameraView copied to clipboard

📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processi...

Results 131 CameraView issues
Sort by recently updated
recently updated
newest added

Please merge, this is a small try/catch that helps to prevent the apps using the library from crashing on devices using the old Camera1 API. Fix Runtime Exception on devices...

com.otaliastudios.opengl.core.Egloo.checkEglError (Egloo.kt:60) com.otaliastudios.opengl.core.EglNativeCore. (EglNativeCore.kt:78) com.otaliastudios.opengl.core.EglCore. (EglCore.kt:17) com.otaliastudios.cameraview.picture.SnapshotGlPictureRecorder.takeFrame (SnapshotGlPictureRecorder.java:184) com.otaliastudios.cameraview.picture.SnapshotGlPictureRecorder$2.run (SnapshotGlPictureRecorder.java:139) android.os.Handler.handleCallback (Handler.java:942)

### Problem to be addressed A clear and concise description of what the problem is. ### Describe the solution you'd like A clear and concise description of what you want...

[SurfaceTexture-19-21130-19] checkAndUpdateEglState: invalid current EGLContext updateAcquireFence: Did not find frame. FATAL EXCEPTION: VideoEncoder Process: cc.shantu.syxj, PID: 21130 java.lang.IllegalStateException: Unable to update texture contents (see logcat for details) at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)...

Here is the piece of code, isn't 1 a weird orientation angle? I will try to see if i can fix it and append the working solution to others pull...

``` Fatal Exception: java.lang.IllegalStateException: at android.media.MediaCodec.releaseOutputBuffer(MediaCodec.java) at android.media.MediaCodec.releaseOutputBufferInternal(MediaCodec.java:3651) at android.media.MediaCodec.releaseOutputBuffer(MediaCodec.java:3572) at com.otaliastudios.cameraview.video.encoding.MediaEncoder.drainOutput(MediaEncoder.java:474) at com.otaliastudios.cameraview.video.encoding.AudioMediaEncoder$AudioEncodingThread.encode(AudioMediaEncoder.java:428) at com.otaliastudios.cameraview.video.encoding.AudioMediaEncoder$AudioEncodingThread.run(AudioMediaEncoder.java:391) ``` Can we just try/catch and let the code continue or it should throw...

![img_v3_026n_880af8d5-957c-41cd-a3e8-0f9a34ba9efg](https://github.com/natario1/CameraView/assets/66354833/b52cd50f-0581-47fe-99aa-4f0e317e45f7) This exception appeared at random just in one device in production environment.

### How do I? Describe your problem here. Please, read the [docs](https://natario1.github.io/CameraView) and [FAQ page](https://natario1.github.io/CameraView/about/faq) first. Questions not strictly related to CameraView should be asked elsewhere. ### Version used CameraView...

is:question

### How do I? How to set the orientation of the preview screen? Also, how do I set the orientation so that the frame orientation in `FrameProcessor.process` is the same...

is:question

``` Fatal Exception: java.lang.NullPointerException: Attempt to write to field 'e9.b i9.e.d' on a null object reference at com.otaliastudios.cameraview.internal.GlTextureDrawer.setFilter(GlTextureDrawer.java:49) at com.otaliastudios.cameraview.picture.SnapshotGlPictureRecorder.onRendererFilterChanged(SnapshotGlPictureRecorder.java:122) at com.otaliastudios.cameraview.picture.SnapshotGlPictureRecorder$1.onRendererFilterChanged(SnapshotGlPictureRecorder.java:90) at com.otaliastudios.cameraview.preview.GlCameraPreview$2.run(GlCameraPreview.java:303) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) ``` It...