comparison bin/yt2mp3.sh @ 83:4f49c0caa801

modification for new youtube-dl
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 26 Jul 2010 19:12:47 -0700
parents db859ed2585c
children
comparison
equal deleted inserted replaced
82:a7857000e206 83:4f49c0caa801
3 YOUTUBEDL=/home/jhammel/music/youtube-dl 3 YOUTUBEDL=/home/jhammel/music/youtube-dl
4 4
5 URL=$1 5 URL=$1
6 TITLE=$($YOUTUBEDL --get-title $URL) 6 TITLE=$($YOUTUBEDL --get-title $URL)
7 EXT=mp4 7 EXT=mp4
8 $YOUTUBEDL -b -i -r 50k $URL -o "%(title)s.${EXT}" 8 $YOUTUBEDL -i -r 50k $URL -o "%(title)s.${EXT}"
9 rm -f audiodump.wav 9 rm -f audiodump.wav
10 mplayer -vc null -vo null -ao pcm "$TITLE.$EXT" 10 mplayer -vo null -ao pcm "$TITLE.$EXT"
11 lame -q 2 audiodump.wav "$TITLE.mp3" 11 lame -q 2 audiodump.wav "$TITLE.mp3"
12 #rm "$TITLE.$EXT" 12 #rm "$TITLE.$EXT"