dotfiles/scripts/transcode-video.sh

7 lines
183 B
Bash
Executable file

#!/bin/sh
for filename in *.mov; do
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "${filename}" -c:v hevc_nvenc -c:a aac -crf 22 "${filename%.*}".mp4
rm $filename
done