added file formats

master
Leo Coogan 3 years ago
parent 8f2d1f81ff
commit 1cc33a4f35
No known key found for this signature in database
GPG Key ID: 3D7F617CDE5C9A9B

@ -1,4 +1,4 @@
#!/bin/dash
# Convert directories and subdirectories from other audio formats to opus
# Public domain, you probably couldn't even copyright a script this short
find ./ -type f \( -iname \*.flac -o -iname \*.mp3 -o -iname \*.ogg \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \;
find ./ -type f \( -iname \*.flac -o -iname \*.mp3 -o -iname \*.ogg -o -iname \*.m4a \) -exec sh -c 'i="{}"; ffmpeg -y -i "$i" "${i%.*}.opus" && rm -f "$i"' \;

@ -5,4 +5,4 @@
#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 \) -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"' \;
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"' \;

Loading…
Cancel
Save