Created
October 11, 2021 16:54
-
-
Save vpetrigo/37f85d1b8877782e5da6fc1ef18ff143 to your computer and use it in GitHub Desktop.
FFmpeg G2M recording convert with Nvidia CUDA to MP4
This file contains hidden or 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
param( | |
[string]$in, | |
[string]$out | |
) | |
if ([string]::IsNullOrEmpty($in) -or [string]::IsNullOrEmpty($out)) { | |
write-host "Specify input and output filenames" | |
exit 1 | |
} | |
ffmpeg -loglevel quiet -stats -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i $in -map 0:2 -map 0:0 -c:v h264_nvenc -c:a aac $out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment