[FFmpeg-trac] #10642(avcodec:new): [hwaccel] AV1 hardware decoding for Apple M3

FFmpeg trac at avcodec.org
Fri Nov 10 23:45:09 EET 2023


#10642: [hwaccel] AV1 hardware decoding for Apple M3
-------------------------------------+-------------------------------------
             Reporter:  Nomis101     |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  hwaccel      |               Blocked By:
  videotoolbox av1                   |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by jeeb):

 Unfortunately Apple has not added an AV1 software decoder to VT, even
 though they ship dav1d as part of Safari for AVIF.

 Thus this (very hacky) code was written completely blind, and the only
 verification done was that the CFDataRef should contain what appears to be
 a valid av1C: https://github.com/jeeb/ffmpeg/commits/videotoolbox_av1

 Only builds as static due to the av1C generation not being properly shared
 between libraries (as I don't want to start that work until I at least
 know that things work on some level).

 Could be checked with:

 {{{
 ffmpeg -v verbose -hwaccel videotoolbox -i INPUT -map 0:v -f null -
 }}}

 On my 2015 Intel Macbook pro I just get
 {{{
 [av1 @ 0x7fbf6e00a1c0] avc1C: size: 17, first bytes: 81 08 4d 00
 [av1 @ 0x7fbf6e00a1c0] VideoToolbox decoder for this format not found.
 [av1 @ 0x7fbf6e00a1c0] Failed setup for format videotoolbox_vld: hwaccel
 initialisation returned error.
 [av1 @ 0x7fbf6e00a1c0] Your platform doesn't support hardware accelerated
 AV1 decoding.
 [av1 @ 0x7fbf6e00a1c0] Failed to get pixel format.
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10642#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list