comparison bin/yt2mp3.sh @ 77:db859ed2585c

more sanity in this script for debugging
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 27 May 2010 22:10:34 -0700
parents f3ab51c79813
children 4f49c0caa801
comparison
equal deleted inserted replaced
73:cec1db293c18 77:db859ed2585c
2 2
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 $YOUTUBEDL -b -i -r 50k $URL -o "%(title)s.%(ext)s"
8 EXT=mp4 7 EXT=mp4
8 $YOUTUBEDL -b -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 -vc null -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"