Skip to content

Instantly share code, notes, and snippets.

@beli-sk
Created September 26, 2025 08:51
Show Gist options
  • Select an option

  • Save beli-sk/b0459ef6d770230c8c251fce0f573665 to your computer and use it in GitHub Desktop.

Select an option

Save beli-sk/b0459ef6d770230c8c251fce0f573665 to your computer and use it in GitHub Desktop.
Intel GPU accelerated video encoding with FFMPEG
# AV1
ffmpeg -i infile.mkv -c:v libaom-av1 -crf 25 -movflags +faststart -g 300 -an outfile.mp4
# HEVC
ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i infile.mkv -vf hwupload=extra_hw_frames=64,format=qsv -c:v hevc_qsv -preset veryslow -global_quality 25 -g 300 -movflags +faststart outfile.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment