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

FATAL EXCEPTION: VideoEncoder java.lang.IllegalStateException: writeSampleData returned an error #1275

Open
an-droida opened this issue Mar 11, 2024 · 1 comment

Comments

@an-droida
Copy link

Device / Android version: Pixel 7, API 34

Logs

FATAL EXCEPTION: VideoEncoder
java.lang.IllegalStateException: writeSampleData returned an error
at android.media.MediaMuxer.nativeWriteSampleData(Native Method)
at android.media.MediaMuxer.writeSampleData(MediaMuxer.java:723)
at com.otaliastudios.cameraview.video.encoding.MediaEncoderEngine$Controller.write(MediaEncoderEngine.java:362)
at com.otaliastudios.cameraview.video.encoding.MediaEncoder.onWriteOutput(MediaEncoder.java:502)
at com.otaliastudios.cameraview.video.encoding.VideoMediaEncoder.onWriteOutput(VideoMediaEncoder.java:126)
at com.otaliastudios.cameraview.video.encoding.MediaEncoder.drainOutput(MediaEncoder.java:472)
at com.otaliastudios.cameraview.video.encoding.TextureMediaEncoder.onFrame(TextureMediaEncoder.java:187)
at com.otaliastudios.cameraview.video.encoding.TextureMediaEncoder.onEvent(TextureMediaEncoder.java:146)
at com.otaliastudios.cameraview.video.encoding.MediaEncoder$3.run(MediaEncoder.java:244)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.os.HandlerThread.run(HandlerThread.java:82)

@mohammednawas8
Copy link

I am encountering this issue too

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

2 participants