[FFmpeg-trac] #10097(undetermined:new): MediaCodec Encoder: Gibberish output produced on emulators (generally below < API 31)

FFmpeg trac at avcodec.org
Thu Dec 15 02:43:56 EET 2022


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

 Replying to [comment:5 quinkblack]:
 > The device is an emulator. I think there is no real hardware
 decoder/encoder on the emulator, only software implementation. FFmpeg
 mediacodec wrapper via JNI skip software decoders explicitly, so decoder
 doesn't work.
 >
 > You can try the NDK implementation, put an '-ndk_codec 1' before -i
 >
 > {{{
 > -ndk_codec 1 -c:v h264_mediacodec -i
 > }}}
 >
 > I guess it will work. It's only for test. There's no sense to use
 MediaCodec software decoder, since FFmpeg's software decoder do better,
 that's
 >
 >
 > {{{
 > ffmpeg -i test.mp4 -c:v h264_mediacodec out.mp4
 > }}}
 >
 >
 > Should work. There is no real mediacodec hardware encoder neither. The
 software implementition has YUV420P support, so -pix_fmt nv12 is
 unnecessary.
 >
 >

 Still getting the same Gibberish output with both options. Attached the
 log below
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10097#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list