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

FFmpeg trac at avcodec.org
Mon Dec 12 21:05:12 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:3 quinkblack]:
 > I don't know about FFmpeg-Kit, especially why encoder has yuv420p pixel
 format while `-hwaccel_output_format mediacodec`.
 >
 > Firstly, try if pix_fmt nv12 works: `-c:v h264_mediacodec -ndk_codec 1
 -pix_fmt nv12`.
 >
 > Secondly, try if `-c:v h264_mediacodec -i test.mp4 -c:v h264_mediacodec
 -ndk_codec 1 -pix_fmt nv12` works, which means decoding to buffer and feed
 it to encoder, rather than decoding to surface.
 >
 > I have some pending patches, but unlikely related to this ticket.
 >
 > http://ffmpeg.org/pipermail/ffmpeg-devel/2022-December/304671.html
 > patch 2 3/7 has been replaced by patch v3 3/7.
 > http://ffmpeg.org/pipermail/ffmpeg-devel/2022-December/304717.html



 1.I tried with `-pxfmt nv12`, and got the same gibberish result
 2.Got the error `Error while opening decoder for input stream` when trying
 to decoding to buffer

 I have attached the console log for both of them
 (`console_output_nv12.log` and `console_output_decoding_to_buffer.log`)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10097#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list