diff --git a/scripts/server_bin/rencode.sh b/scripts/server_bin/rencode.sh new file mode 100755 index 0000000..4e42828 --- /dev/null +++ b/scripts/server_bin/rencode.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for i in `fdfind video.mp4`; do + snap run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "$i" -c:a copy -c:v h264_nvenc "${i}_shrink.mp4" +done