Skip to content

Instantly share code, notes, and snippets.

@hmahadik
Created February 27, 2024 23:41
Show Gist options
  • Save hmahadik/5fcefd01ca0dba70e5b5f9e74da2a75a to your computer and use it in GitHub Desktop.
Save hmahadik/5fcefd01ca0dba70e5b5f9e74da2a75a to your computer and use it in GitHub Desktop.
ffmpeg fast resize using GPU
docker run -it --rm --gpus all --privileged -v /home/machinevision:/src --workdir=/src nightseas/ffmpeg bash
ffmpeg -hwaccel cuvid -c:v hevc_cuvid -resize 1280x720 -i Dropbox/Mvi\ 0071.mp4 -c:v hevc_nvenc -b:v 5M mvi_0071_720p.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment