10 lines
348 B
Bash
Executable file
10 lines
348 B
Bash
Executable file
#!/bin/bash
|
|
|
|
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
|