[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:20:00 EET 2022


#10097: MediaCodec Encoder: Gibberish output produced on emulators (generally below
< API 31)
---------------------------------------+----------------------------------
             Reporter:  Ajay Shrestha  |                    Owner:  (none)
                 Type:  defect         |                   Status:  new
             Priority:  normal         |                Component:  ffmpeg
              Version:  unspecified    |               Resolution:
             Keywords:  mediacodec     |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  0              |
---------------------------------------+----------------------------------
Description changed by Ajay Shrestha:

Old description:

> 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

New description:

 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

 Note: This is built and run using FFMPEG-Kit

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10097#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list