Skip to content

Instantly share code, notes, and snippets.

@unknownzerx
unknownzerx / mac-hevc-hw-encoder.md
Created August 23, 2019 15:16
Mac HEVC HW Encoder

Use this code snip to get all encoders: https://stackoverflow.com/a/38954520

On a 13" MacBook Pro 2019 (with T2)

2019-08-23 16:20:04.737 print-encoders[26396:2240602]   1752589105  com.apple.videotoolbox.videoencoder.hevc.ave HEVC Apple HEVC (AVE) Apple HEVC (AVE)
2019-08-23 16:20:04.737 print-encoders[26396:2240602]   1752589105  com.apple.videotoolbox.videoencoder.hevc.gva HEVC Apple HEVC (HW) Apple HEVC (HW)
2019-08-23 16:20:04.737 print-encoders[26396:2240602]   1752589105  com.apple.videotoolbox.videoencoder.hevc.vcp HEVC Apple HEVC (SW) Apple HEVC (SW)

(showing HEVC-related only)

#! /usr/bin/python3
# -*- coding: utf-8 -*-
import os
import sys
import filecmp
def print_usage():
print("Usage:")
// a tree
var t = {
left: {
left: {
left: null,
right: null
},
right: null
},
right: {