8 lines
268 B
Bash
Executable File
8 lines
268 B
Bash
Executable File
#!/bin/sh
|
|
if [ "$#" = "0" ]; then
|
|
echo "Usage: $0 youtube-url output-filename"
|
|
exit 1
|
|
fi
|
|
|
|
youtube-dl --ignore-config -f bestaudio "$1" -o - | ffmpeg -i pipe:0 -f wav -vn - | lame -m j --replaygain-fast --vbr-new -V 2 -o --id3v2-only --resample 44.1 - "$2.mp3"
|