[FFmpeg-trac] #10671(avcodec:new): [Android] MediaCodec h264 decoder fails on 10-bit input ('This is a bug, please report it' in output)

FFmpeg trac at avcodec.org
Mon Dec 18 13:26:18 EET 2023


#10671: [Android] MediaCodec h264 decoder fails on 10-bit input ('This is a bug,
please report it' in output)
-------------------------------------+-----------------------------------
             Reporter:  bubbleguuum  |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------
Comment (by bubbleguuum):

 With -xerror, it silence some of the error output (the 'this is a bug,
 please report' paragraph), but the encoding proceeds (just encoding audio)
 instead of exiting early because of the inability to encode video.
 That's of course without your 2 patches posted on the mailing list, that I
 did not try and that may fix this issue:

 {{{
 69|sunfish:/data/local/tmp $ ./ffmpeg -xerror -hide_banner -hwaccel
 mediacodec -i /sdcard/Movies/\[Underwater]\ Another\ -\ sample\ H264\
 Hi10P\ 720p.avi  -f null -
 Input #0, avi, from '/sdcard/Movies/[Underwater] Another - sample H264
 Hi10P 720p.avi':
   Duration: 09:10:31.48, start: 0.000000, bitrate: 4 kb/s
   Stream #0:0: Video: h264 (High 10) (AVC1 / 0x31435641), yuv420p10le(tv,
 bt709, progressive), 1280x720, 1442 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn
   Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 44100 Hz,
 stereo, fltp, 128 kb/s
 [h264_mediacodec @ 0xb400007a36961150] Both surface and native_window are
 NULL
 [h264_mediacodec @ 0xb400007a36961150] Using surface 0x0
 [h264_mediacodec @ 0xb400007a36961150] No Java virtual machine has been
 registered
 [h264_mediacodec @ 0xb400007a36961150] Failed to getCodecNameByType
 [h264_mediacodec @ 0xb400007a36961150] Output crop parameters top=0
 bottom=719 left=0 right=1279, resulting dimensions width=1280 height=720
 [h264_mediacodec @ 0xb400007a36961150] MediaCodec started successfully:
 codec = c2.qti.avc.decoder, ret = 0
 [h264_mediacodec @ 0xb400007a36961150] No Java virtual machine has been
 registered
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (h264_mediacodec) -> wrapped_avframe (native))
   Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [h264_mediacodec @ 0xb400007a36961150] Input packet is missing PTS
     Last message repeated 1 times
 [h264_mediacodec @ 0xb400007a36961150] Failed to queue input buffer
 (status = -10000)
 [vist#0:0/h264 @ 0xb4000079f695e5b0] Error submitting packet to decoder:
 Generic error in an external library
 [vist#0:0/h264 @ 0xb4000079f695e5b0] Error processing packet in decoder:
 Generic error in an external library
 [vist#0:0/h264 @ 0xb4000079f695e5b0] Decoder thread returned error:
 Generic error in an external library
 [vost#0:0/wrapped_avframe @ 0xb400007a26961e30] No filtered frames for
 output stream, trying to initialize anyway.
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf60.16.100
   Stream #0:0: Video: wrapped_avframe, nv12(progressive), 1280x720,
 q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn
     Metadata:
       encoder         : Lavc60.31.102 wrapped_avframe
   Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
     Metadata:
       encoder         : Lavc60.31.102 pcm_s16le
 [vist#0:0/h264 @ 0xb4000079f695e5b0] Decode error rate 1 exceeds maximum
 0.666667x
 [out#0/null @ 0xb4000079d695beb0] video:0kB audio:15316kB subtitle:0kB
 other streams:0kB global headers:0kB muxing overhead: unknown
 frame=    0 fps=0.0 q=0.0 Lsize=N/A time=00:01:28.88 bitrate=N/A speed=
 100x
 Conversion failed!
 FORTIFY: pthread_mutex_lock called on a destroyed mutex
 (0xb4000079a69699b8)
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10671#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list