[FFmpeg-trac] #9016(avcodec:new): Some videos cannot be hw decoded on apple silicon
FFmpeg
trac at avcodec.org
Tue Dec 1 01:45:13 EET 2020
#9016: Some videos cannot be hw decoded on apple silicon
------------------------------------+-----------------------------------
Reporter: pxia | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by pxia):
Same error on git head
{{{
ffmpeg -hwaccel videotoolbox -i SampleVideo_1280x720_1mb.mp4 -f null -
ffmpeg version git-2020-11-30-052b4c3 Copyright (c) 2000-2020 the FFmpeg
developers
built with Apple clang version 12.0.0 (clang-1200.0.32.27)
configuration: --prefix=/Users/xia/brew --enable-gpl --enable-nonfree
--enable-libass --enable-libvpx --enable-libx264 --enable-libx265
--enable-libfreetype --enable-gnutls --enable-hwaccel=h263_videotoolbox
--enable-hwaccel=h264_videotoolbox --enable-hwaccel=hevc_videotoolbox
--enable-hwaccel=mpeg1_videotoolbox --enable-hwaccel=mpeg2_videotoolbox
--enable-hwaccel=mpeg4_videotoolbox
libavutil 56. 61.100 / 56. 61.100
libavcodec 58.114.100 / 58.114.100
libavformat 58. 64.100 / 58. 64.100
libavdevice 58. 11.103 / 58. 11.103
libavfilter 7. 91.100 / 7. 91.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SampleVideo_1280x720_1mb.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01T00:00:00.000000Z
encoder : Lavf53.24.2
Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
(default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
fltp, 384 kb/s (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[h264 @ 0x13a843000] hardware accelerator failed to decode picture
[h264 @ 0x13a845e00] hardware accelerator failed to decode picture
}}}
I don't know if it is fixable in FFmpeg source, but QuickTime plays the
video fine and seems using hw acceleration.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9016#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list