Open filnik opened 2 months ago
ffmpeg CLI does not support h264_mediacodec or any mediacodec encoder/decoder.
Do you have any reference ffmpeg CLI not supporting h264_mediacodec?
Here is an excerpt from ffmpeg -codecs
from a Nokia 7.2
DEV.L. h261
DEV.L. h263 (decoders: h263 h263_v4l2m2m ) (encoders: h263 h263_v4l2m2m )
D.V.L. h263i
DEV.L. h263p
DEV.LS h264 (decoders: h264 h264_v4l2m2m h264_mediacodec ) (encoders: h264_mediacodec h264_v4l2m2m )
DEVIL. hap
DEVIL. hdr
DEV.L. hevc (decoders: hevc hevc_v4l2m2m hevc_mediacodec ) (encoders: hevc_mediacodec hevc_v4l2m2m libkvazaar )
D.V.L. hnm4video
I suggest checking the logcat
logs. MediaCodec logs are printed to logcat
.
I've tried to compile by hand the ffmpeg-kit adding the mediacodec. The build should be successful since I'm able to use
libopenh264
correctly.However, if I set the codec to
h264_mediacodec
I got a generic error :and I cannot find a way to make it work. The command I'm using is the following:
Any idea to solve the issue would be really appreaciated! Thank you :)