1
0
Files
UnixTools/yt2mp3.sh
T

8 lines
239 B
Bash
Executable File

#!/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"