Skip to content

Instantly share code, notes, and snippets.

@guerrerocarlos
Last active March 29, 2024 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guerrerocarlos/6152daea5c2e9dfea30466ce4fb71b30 to your computer and use it in GitHub Desktop.
Save guerrerocarlos/6152daea5c2e9dfea30466ce4fb71b30 to your computer and use it in GitHub Desktop.
Use Apple Metal M1 M2 acceleration with ffmpeg
ffmpeg -i PXL4.mp4 -c:v h264_videotoolbox -q:v 65 -c:a copy output_q65.mp4
@guerrerocarlos
Copy link
Author

On intel:

ffmpeg -i PXL.4.mp4 -c:v h264_videotoolbox -b:v 30295k -c:a copy output_30Mbps.mp4

@guerrerocarlos
Copy link
Author

another option:
hevc_videotoolbox

@guerrerocarlos
Copy link
Author

ffmpeg -hide_banner -h encoder=hevc_videotoolbox

@guerrerocarlos
Copy link
Author

guerrerocarlos commented Mar 29, 2024

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