Last active
August 11, 2024 06:54
-
-
Save guerrerocarlos/6152daea5c2e9dfea30466ce4fb71b30 to your computer and use it in GitHub Desktop.
Use Apple Metal M1 M2 acceleration with ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i PXL4.mp4 -c:v h264_videotoolbox -q:v 65 -c:a copy output_q65.mp4 |
another option:
hevc_videotoolbox
ffmpeg -hide_banner -h encoder=hevc_videotoolbox
Get opus from webm:
ffmpeg -i Jam.webm -vn -acodec copy Jam.opus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On intel:
ffmpeg -i PXL.4.mp4 -c:v h264_videotoolbox -b:v 30295k -c:a copy output_30Mbps.mp4