Created
September 21, 2022 21:24
-
-
Save nathan-cruz77/15cfcf8e2c4a1f4e7f38714c33876e7c to your computer and use it in GitHub Desktop.
FFMpeg transcoding with Nvidia acceleration
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
INPUT=input.mp4 | |
OUTPUT=output.mp4 | |
ffmpeg \ | |
-hwaccel cuda \ | |
-hwaccel_output_format cuda \ | |
-i $INPUT \ | |
-vf 'hwdownload,format=nv12,hwupload' \ | |
-c:a copy \ | |
-c:v h264_nvenc \ | |
$OUTPUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment