adding some tweaks to env

This commit is contained in:
Chris Cochrun 2023-07-12 11:32:32 -05:00
parent fe1e6c695b
commit 0f7392671c
5 changed files with 11 additions and 5 deletions

View file

@ -1,6 +1,6 @@
#!/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
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device /dev/dri/renderD128 -i "${filename}" -vf 'format=nv12,hwupload' -c:v hevc_vaapi -c:a aac -crf 22 "${filename%.*}".mp4
rm $filename
done