2013-10-27 21:07:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-02-04 16:44:19 +00:00
|
|
|
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"
|
2013-10-27 21:07:20 +00:00
|
|
|
#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"
|
2014-02-04 16:44:19 +00:00
|
|
|
#ffmpeg -i $x -acodec libmp3lame "$2" -threads 4
|
|
|
|
#rm $x
|