From 1cc33a4f35067824f8c7087aa348ed6f977b419c Mon Sep 17 00:00:00 2001 From: Leo Coogan Date: Wed, 19 Apr 2023 19:04:24 -0400 Subject: [PATCH] added file formats --- bin/ffconv-a | 2 +- bin/ffconv-av | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ffconv-a b/bin/ffconv-a index d8d0af3..4acdce9 100755 --- a/bin/ffconv-a +++ b/bin/ffconv-a @@ -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"' \; diff --git a/bin/ffconv-av b/bin/ffconv-av index e0b6efd..e508d83 100755 --- a/bin/ffconv-av +++ b/bin/ffconv-av @@ -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"' \;