diff --git a/yt2mp3.sh b/yt2mp3.sh new file mode 100755 index 0000000..f4dedfb --- /dev/null +++ b/yt2mp3.sh @@ -0,0 +1,7 @@ +#!/bin/sh +if [ "$#" = "0" ]; then + echo "Usage: $0 youtube-url output-filename" + exit 1 +fi + +youtube-dl "$1" -o - | avconv -i pipe:0 -f wav -vn - | lame -m j --replaygain-fast --vbr-new -V 2 -o --id3v2-only --resample 44.1 - "$2.mp3"