Skip to content

Instantly share code, notes, and snippets.

@Gordin
Created October 11, 2020 18:29
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 Gordin/8fd156aa49dd59529f374dbe3ced45c1 to your computer and use it in GitHub Desktop.
Save Gordin/8fd156aa49dd59529f374dbe3ced45c1 to your computer and use it in GitHub Desktop.
Normalize audio and upscale to 4K in one go with ffmpeg-normalize, using NVENC Encoder in Powershell
$files = Get-ChildItem "E:\obs\convert\"
foreach ($file in $files) {
$name = $file.name
ffmpeg-normalize $file.fullName -o "E:\obs\converted\${name}_4k.mkv" -e='-vf scale=3840:2160 -c:v hevc_nvenc -rc constqp -qp 14 -rc-lookahead 8' -pr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment