update
This commit is contained in:
13
2aac
Executable file
13
2aac
Executable 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"
|
||||
Reference in New Issue
Block a user