Skip to content

Instantly share code, notes, and snippets.

@lukassup
Last active December 6, 2020 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukassup/b0eeab0db343159fc27abd117c4274cb to your computer and use it in GitHub Desktop.
Save lukassup/b0eeab0db343159fc27abd117c4274cb to your computer and use it in GitHub Desktop.
#!/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