[FFmpeg-trac] #10097(ffmpeg:new): MediaCodec Encoder: Gibberish output produced on emulators (generally below < API 31)
FFmpeg
trac at avcodec.org
Thu Dec 8 00:13:00 EET 2022
#10097: MediaCodec Encoder: Gibberish output produced on emulators (generally below
< API 31)
-------------------------------------+-------------------------------------
Reporter: Ajay | Type: defect
Shrestha |
Status: new | Priority: normal
Component: ffmpeg | Version:
| unspecified
Keywords: mediacodec | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
What you were trying to accomplish?
I am trying to transcode an mp4 file using the mediacodec encoder support
recently added by Zhao Zhili here
(https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/0ff18a7d6d496f89d9e007ddd1cad7116baf5c7c)
The problem you encountered:
Currently, only on emulators with OS API levels less than API 31, The
output video is simply gibberish with a repetitive pattern of red, purple,
or random colors
The exact command line you were using:
-hwaccel mediacodec -hwaccel_output_format mediacodec -i
"/data/user/0/com.test.ffmpeg_kit_android_demo/cache/test_input.mp4" -c:v
h264_mediacodec -ndk_codec 1 -y
"/data/user/0/com.test.ffmpeg_kit_android_demo/cache/test_output.mp4"
-loglevel trace
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10097>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list