Skip to content

Instantly share code, notes, and snippets.

@jsfag
Created August 29, 2022 04:45
Show Gist options
  • Save jsfag/b5a8fb4d94a168901e0db64bff532e10 to your computer and use it in GitHub Desktop.
Save jsfag/b5a8fb4d94a168901e0db64bff532e10 to your computer and use it in GitHub Desktop.
FFMPEG re-encodes in.mp4 with GPU acceleration [CUDA, SCALE].
ffmpeg -hwaccel cuda -i .\in.mp4 -c:v h264_nvenc -preset fast -b:v 4M -maxrate 6M -vf scale=-1:720 out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment