#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 Arkelic):

 I was able to set up this branch on my M3 MacBook pro and here is the
 output when using
 
[https://github.com/SPBTV/video_av1_samples/blob/master/spbtv_sample_bipbop_av1_960x540_25fps.mp4/
 this sample] file:


 {{{
 ffmpeg -v verbose -hwaccel videotoolbox -i
 /Users/arkelic/Downloads/spbtv_sample_bipbop_av1_960x540_25fps.mp4  -map
 0:v -f null -
 ffmpeg version N-112731-g8d79cdeccb Copyright (c) 2000-2023 the FFmpeg
 developers
   built with Apple clang version 15.0.0 (clang-1500.1.0.2.2)
   configuration:
   libavutil      58. 32.100 / 58. 32.100
   libavcodec     60. 33.100 / 60. 33.100
   libavformat    60. 17.100 / 60. 17.100
   libavdevice    60.  4.100 / 60.  4.100
   libavfilter     9. 13.100 /  9. 13.100
   libswscale      7.  6.100 /  7.  6.100
   libswresample   4. 13.100 /  4. 13.100
 Selecting decoder 'av1' because of requested hwaccel method videotoolbox
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 '/Users/arkelic/Downloads/spbtv_sample_bipbop_av1_960x540_25fps.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: avc1isommp42avc1
     creation_time   : 2018-10-05T14:40:45.000000Z
   Duration: 00:00:15.04, start: 0.000000, bitrate: 130 kb/s
   Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz,
 mono, fltp, 8 kb/s (default)
     Metadata:
       handler_name    : snd
       vendor_id       : [0][0][0][0]
   Stream #0:1[0x2](und): Video: av1 (Main), 1 reference frame (av01 /
 0x31307661), yuv420p(tv), 960x540, 116 kb/s, 25 fps, 25 tbr, 90k tbn
 (default)
     Metadata:
       handler_name    : vid
       vendor_id       : [0][0][0][0]
 [out#0/null @ 0x6000038506c0] Adding streams from explicit maps...
 [vost#0:0/wrapped_avframe @ 0x12e605db0] Created video stream from input
 stream 0:1
 Stream mapping:
   Stream #0:1 -> #0:0 (av1 (native) -> wrapped_avframe (native))
 Press [q] to stop, [?] for help
 [av1 @ 0x12e609fb0] avc1C: size: 17, first bytes: 81 04 0c 00
 [av1 @ 0x12e609fb0] vt decoder cb: output image buffer is null: -12911
 [av1 @ 0x12e609fb0] HW accel end frame fail.
 [vist#0:1/av1 @ 0x12e609e60] Error submitting packet to decoder: Unknown
 error occurred
 [av1 @ 0x12e609fb0] VideoToolbox decoder needs reconfig, restarting..
 [av1 @ 0x12e609fb0] avc1C: size: 17, first bytes: 81 04 0c 00
 [av1 @ 0x12e609fb0] vt decoder cb: output image buffer is null: -12911
 [av1 @ 0x12e609fb0] HW accel end frame fail.
 [vist#0:1/av1 @ 0x12e609e60] Error submitting packet to decoder: Unknown
 error occurred
 [1]    64153 segmentation fault  ffmpeg -v verbose -hwaccel videotoolbox
 -i  -map 0:v -f null -
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10642#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to