Skip to content

Instantly share code, notes, and snippets.

@jsfag
Created August 28, 2022 10:26
Show Gist options
  • Save jsfag/2dacce1eb3825f11c0eae3d5793186c1 to your computer and use it in GitHub Desktop.
Save jsfag/2dacce1eb3825f11c0eae3d5793186c1 to your computer and use it in GitHub Desktop.
FFMPEG re-encodes in.mp4 with GPU acceleration [AMDGPU, SCALE].
ffmpeg.exe -i .\in.mp4 -threads 16 -usage ultralowlatency -c:v:0 hevc_amf -level 1 -quality quality -b:v 2M -vf scale=1280x720 -bufsize 2000M -maxrate 6M -c:a aac -b:a 128k out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment