Mac HEVC Main10 Hardware Encoding

tunesify

macrumors newbie
Original poster
Jan 12, 2020
1
0
Are there any Macs that support 10-bit (Main10 Profile) HEVC (H.265) encoding with hardware acceleration in the VideoToolbox framework? Someone created an Open Source command-line tool that lists all the supported profiles: https://github.com/8birds/VTEncoderInfo
Even on a 16" MBP with a Radeon Pro 5500M it can only do HEVC_Main10_AutoLevel in software (SW), not hardware (HW or AVE) which is limited to HEVC_Main_AutoLevel. Would anyone with another device be willing to see what they can do? Maybe the iMac Pro or Mac Pro would be possible candidates?

Alternatively, if you have FFmpeg installed you could run:
Code:
ffmpeg -i [input_file] -c:v hevc_videotoolbox -profile:v main10 -tag:v hvc1 \
    -b:v 10000k -an -sn [output_filename].mp4
When I do that I see:
[hevc_videotoolbox @ 0x7f93d7801600] Error: cannot create compression session: -12908
[hevc_videotoolbox @ 0x7f93d7801600] Try -allow_sw 1. The hardware encoder may be busy, or not supported.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


Adding -allow_sw 1 does allow it to use the software HEVC encoder but it's brutally slow.

Thanks!
 
Last edited: