This commit is contained in:
rozbrian
2026-01-10 20:46:22 +09:00
commit 304cbcc554
66 changed files with 1291 additions and 0 deletions

13
2aac Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
TMPFILE=$(mktemp)
LOGFILE="/tmp/2aac.log"
if [ "$(is_cuda)" == "ok!" ]; then
echo "======== CUDA ========"
time ffmpeg -y -hwaccel cuda -i "$1" -f mp4 -vcodec copy -acodec aac -ar 44100 -ab 128k -ac 2 $TMPFILE
else
echo "======== VAPPI ========"
time ffmpeg -y -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -i "$1" -f mp4 -vcodec copy -acodec aac -ar 44100 -ab 128k -ac 2 $TMPFILE
fi
backup_and_replace "$1" "$TMPFILE" "$LOGFILE"