dotfiles/Utils/youtube2mp3
2014-02-04 17:44:19 +01:00

14 lines
428 B
Bash
Executable file

#!/bin/bash
youtube-dl -o '%(title)s.%(ext)s' --extract-audio --audio-format=mp3 "$1"
#x=~/.youtube-dl-$RANDOM-$RANDOM.flv
#youtube-dl --output=$x --format=18 "$1"
#ffmpeg -i $x -f ogg -acodec copy -ac 2 -ab 128k -vn -y "$2"
#ffmpeg -threads 4 -i $x -f mp3 -vn -acodec copy "$2"
#ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2"
#avconv -i $x -vn -ac 2 "$2"
#ffmpeg -i $x -acodec libmp3lame "$2" -threads 4
#rm $x