From acc745ebab52131d620329c09f8101b73072846b Mon Sep 17 00:00:00 2001 From: Leo Coogan Date: Fri, 16 Dec 2022 13:37:14 -0500 Subject: [PATCH] Added another script --- bin/ffconv-a | 4 ++++ bin/yt-dl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/ffconv-a diff --git a/bin/ffconv-a b/bin/ffconv-a new file mode 100755 index 0000000..d8d0af3 --- /dev/null +++ b/bin/ffconv-a @@ -0,0 +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"' \; diff --git a/bin/yt-dl b/bin/yt-dl index 12d892a..81277fa 100755 --- a/bin/yt-dl +++ b/bin/yt-dl @@ -2,4 +2,4 @@ #yt-dl - youtube-dl "magic" download echo Playlist URL: read url -youtube-dl "$url" --yes-playlist --audio-format flac -x --audio-quality 0 --add-metadata -o "%(title)s.%(ext)s" +youtube-dl "$url" --yes-playlist --audio-format opus -x --audio-quality 0 --add-metadata -o "%(playlist_index)s %(title)s.%(ext)s"