J'ai un MacBook Pro avec un processeur Kaby Lake qui fonctionne sous macOS High Sierra (10.12). Est-il possible de configurer FFmpeg pour utiliser l'encodage matériel de HEVC avec toolbox, au lieu de libx265 ?
Réponses
Trop de publicités?Sur macOPS, il y a videotoolbox.
Consultez cette page pour connaître les options de l'encodeur :
ffmpeg -hide_banner -h encoder=hevc_videotoolbox
Sortie :
Supported pixel formats: videotoolbox_vld nv12 yuv420p
hevc_videotoolbox AVOptions:
-profile <int> E..V.... Profile (from 0 to 3) (default 0)
main E..V.... Main Profile
main10 E..V.... Main10 Profile
-allow_sw <boolean> E..V.... Allow software encoding (default false)
-realtime <boolean> E..V.... Hint that encoding should happen in real-time if not faster (e.g. capturing from camera). (default false)
-frames_before <boolean> E..V.... Other frames will come before the frames in this session. This helps smooth concatenation issues. (default false)
-frames_after <boolean> E..V.... Other frames will come after the frames in this session. This helps smooth concatenation issues. (default false)
Vous pouvez peut-être tester avec ça, si vous avez un Mac récent.
Plus d'informations sur videotoolbox : https://developer.apple.com/documentation/videotoolbox
Comme vous pouvez le constater, il exploite les encodeurs matériels disponibles sur macOS, offrant une API unifiée pour l'encodage vidéo à travers de multiples abstractions (QuickSync d'Intel sur les IGP Intel pris en charge, etc).
Obtenez une construction ici : https://evermeet.cx/ffmpeg/