I'm trying to use mediaCodec for creating mp4 video from openGl ES surface. I have an eglSurface, and the source surface of that eglSurface is MediaCodec input surface.
I can have different sizes for eglSurface, and when one size (width or height) too big: for example width = 5000 and height = 512, MediaCodec crashed.
this is a crash log
android.media.MediaCodec$CodecException: Error 0xfffffc0e
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:588)
....
On some devices (Galaxy s7 edge) it doesn't crashes but after generation videoView doesn't play the video.
For small sizes(for example with screen size) it work correct on all devices