scripts/optimize-vid
2022-12-26 14:20:37 +01:00

7 lines
241 B
Bash
Executable File

#!/bin/sh
File="$1"
FileOptimized="${File%.*}-optimized.mp4"
ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -c:v h264_cuvid -i "$File" -c:v h264_nvenc -preset:v p7 -tune:v hq -rc:v vbr -cq:v 29 -b:v 0 -profile:v high "$FileOptimized"