[FFmpeg-trac] #10143(undetermined:new): Very slow on Apple Silicon

FFmpeg trac at avcodec.org
Wed Jan 18 12:35:59 EET 2023


#10143: Very slow on Apple Silicon
-------------------------------------+-------------------------------------
             Reporter:  Gabriel      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  apple        |               Blocked By:
  silicon, slow performance          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 ffmpeg is much slower on M1 and M2 processors, than on Intel, same file,
 same ffmpeg version, all on Macbook's between 2018-2022.

 How to reproduce:
 {{{
 /opt/local/bin/ffmpeg -loglevel info -hide_banner -nostats -nostdin
 -strict -2 -probesize 50M -analyzeduration 100M -progress
 /tmp/convert_to_h265_progress.log -stats_period 10 -i Dragon_Women_-
 _Topmanagerinnen_in_der_Finanzwelt.avi -map 0 -map -0:v:1 -c:s copy
 -map_metadata 0 -map_metadata:s:v 0:s:v -dn -map_metadata:s:a 0:s:a -c:a
 aac_at -b:a 128k -filter:v crop=in_w-mod(in_w\,2):in_h-mod(in_h\,2)
 -codec:v libx265 -tag:v hvc1 -max_muxing_queue_size 1024 -vf
 format=yuv420p10le -preset faster -crf 25 -x265-params
 me=hex:qcomp=0.5:ref=4:psy-rd=2.0:psy-rdoq=1.0:rd=6:log-level=2
 -ignore_unknown -f mp4 Dragon_Women_-
 _Topmanagerinnen_in_der_Finanzwelt.h265.mp4_converting

 ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
 built with Apple clang version 14.0.0 (clang-1400.0.29.202)

 Same with
 ffmpeg version 5.1.2-tessus Copyright (c) 2000-2022 the FFmpeg developers

 }}}

 Test case: conversion from H264 to H265.

 You can download the test video, and the results of my benchmark here:
   https://owncloud.informatik.uni-bremen.de/index.php/s/McQB67Yynr4MCpN

 Results in a nutshell:

 MacbookPro 2019, 2.3 GHz 8-core Intel i9:
 Runtime: 38 min
 ffmpeg version:
 ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
 built with Apple clang version 12.0.0 (clang-1200.0.32.28)

 MacbookPro M1, 2021:
 Runtime: 130 min
 ffmpeg version 5.1.2-tessus Copyright (c) 2000-2022 the FFmpeg developers

 Macbook Air 2022, Apple M2:
 Runtime: 150 min
 ffmpeg version:
 ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
 built with Apple clang version 14.0.0 (clang-1400.0.29.202)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10143>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list