You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
639 B
Bash
9 lines
639 B
Bash
#!/bin/dash
|
|
#Untested
|
|
# Public domain, you probably couldn't even copyright a script this short
|
|
# update to use this command if on deb
|
|
#find ./ -type f \( -iname \*.mkv -o -iname \*.mp4 -o -iname \*.webm \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" -vf scale=650x480 -c:v libx265 -vtag hvc1 -c:a copy -crf 18 -preset veryslow "${i%.*}-x265.mp4" && rm -f "$i"' \;
|
|
|
|
# update to use this command if on rpm
|
|
find ./ -type f \( -iname \*.mkv -o -iname \*.mp4 -o -iname \*.webm -o -iname \*.avi \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" -vf scale=650x480 -c:v hevc -vtag hvc1 -c:a copy -crf 18 -preset veryslow "${i%.*}-x265.mp4" && rm -f "$i"' \;
|