MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 178 forks source link

MediaCodec$CodecException: Error 0xfffffc0e #67

Open jaypalrana opened 4 years ago

jaypalrana commented 4 years ago

I am continuously getting the following exception in the Redmi 6 Pro device with Android version 9.

2020-09-24 13:01:41.548 7050-7634/com.tristate.smylee E/ACodec: [OMX.qcom.video.encoder.avc] failed to set input port definition parameters.
2020-09-24 13:01:41.548 7050-7634/com.tristate.smylee W/ExtendedACodec: Failed to get extension for extradata parameter
2020-09-24 13:01:41.548 7050-7634/com.tristate.smylee E/ACodec: [OMX.qcom.video.encoder.avc] configureCodec returning error -1010
2020-09-24 13:01:41.548 7050-7634/com.tristate.smylee E/ACodec: signalError(omxError 0x80001001, internalError -1010)
2020-09-24 13:01:41.548 7050-7633/com.tristate.smylee E/MediaCodec: Codec reported err 0xfffffc0e, actionCode 0, while in state 3
2020-09-24 13:01:41.550 7050-7050/com.tristate.smylee E/MediaCodec: configure failed with err 0xfffffc0e, resetting...
2020-09-24 13:01:41.558 7050-7634/com.tristate.smylee I/OMXClient: IOmx service obtained
2020-09-24 13:01:41.658 7050-7050/com.tristate.smylee W/System.err: android.media.MediaCodec$CodecException: Error 0xfffffc0e
2020-09-24 13:01:41.661 7050-7050/com.tristate.smylee W/System.err:     at android.media.MediaCodec.native_configure(Native Method)
2020-09-24 13:01:41.661 7050-7050/com.tristate.smylee W/System.err:     at android.media.MediaCodec.configure(MediaCodec.java:1960)
2020-09-24 13:01:41.661 7050-7050/com.tristate.smylee W/System.err:     at android.media.MediaCodec.configure(MediaCodec.java:1889)
2020-09-24 13:01:41.661 7050-7050/com.tristate.smylee W/System.err:     at com.daasuu.gpuv.camerarecorder.capture.MediaVideoEncoder.prepare(MediaVideoEncoder.java:128)
2020-09-24 13:01:41.661 7050-7050/com.tristate.smylee W/System.err:     at com.daasuu.gpuv.camerarecorder.capture.MediaMuxerCaptureWrapper.prepare(MediaMuxerCaptureWrapper.java:35)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at com.daasuu.gpuv.camerarecorder.GPUCameraRecorder$4.run(GPUCameraRecorder.java:273)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at android.os.Handler.handleCallback(Handler.java:873)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:99)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at android.os.Looper.loop(Looper.java:201)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6806)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
2020-09-24 13:01:41.662 7050-7050/com.tristate.smylee W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
2020-09-24 13:01:41.663 7050-7050/com.tristate.smylee I/CameraRecordListener: onRecordError kotlin.Unit
2020-09-24 13:01:41.663 7050-7050/com.tristate.smylee E/GPUCameraRecorder: android.media.MediaCodec$CodecException: Error 0xfffffc0e

The logs are getting when I call GPUCameraRecorder?.start(mOutputFilePath) method. I have another device Samsung M21 with Android OS version 10 and for that working fine.

BilalAsif25 commented 3 years ago

@jaypalrana Hi, Did you find any solution to this ?

tanveerbyn commented 3 years ago

hardwareAccelerated chnage/add this key in manifest

DoozyDoz commented 2 years ago

hardwareAccelerated chnage/add this key in manifest

Does not solve it

dondell commented 2 years ago

I still have the same issue here using this video. Any solution? https://drive.google.com/file/d/1CLL2RR9vQ_hrGCkg3xYGkv-mMm6qNb0m/view?usp=sharing

Grandpasoul commented 1 year ago

I have the same issue with a Motorola MotoG30

MediaCodecInfo: NoSupport [sizeAndRate.support, 1980x1080x30.0] [OMX.qcom.video.decoder.avc, video/avc] [caprip, moto g(30), motorola, 31]

Captura de pantalla 2022-12-27 a la(s) 12 56 40