Last active
December 6, 2020 01:13
-
-
Save lukassup/b0eeab0db343159fc27abd117c4274cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
# H.265 (HEVC) codec using NVidia hardware accelleration | |
# | |
#ffmpeg \ | |
# -y \ | |
# -vsync 0 \ | |
# -hwaccel cuda -hwaccel_output_format cuda \ | |
# -c:v hevc_cuvid \ | |
# -i "$1" \ | |
# -an \ | |
# -sn \ | |
# -dn \ | |
# -vf 'framestep=30,fps=30,setpts=N/30/TB' \ | |
# -c:v hevc_nvenc \ | |
# "$2" | |
## | |
# H.264 codec using NVidia hardware accelleration | |
# | |
ffmpeg \ | |
-y \ | |
-vsync 0 -hwaccel cuvid \ | |
-c:v h264_cuvid \ | |
-i "$1" \ | |
-an \ | |
-sn \ | |
-dn \ | |
-vf 'framestep=30,fps=30,setpts=N/30/TB' \ | |
-c:v h264_nvenc \ | |
"$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment