Skip to content

Instantly share code, notes, and snippets.

@ichisadashioko
Created January 12, 2020 23:44
Show Gist options
  • Save ichisadashioko/217bdad3b7298aa05a63b107d8cf7f96 to your computer and use it in GitHub Desktop.
Save ichisadashioko/217bdad3b7298aa05a63b107d8cf7f96 to your computer and use it in GitHub Desktop.
ffmpeg -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -i input -vf scale_npp=-1:720 -c:v h264_nvenc -preset slow output.mkv
ffmpeg -hwaccel_device 0 -hwaccel cuvid -i 00.mp4 00.mp3
ffmpeg -hwaccel_device 1 -hwaccel cuvid -i 00.mp4 00.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment