comparison bin/yt2mp3.sh @ 0:f3ab51c79813

adding configuration from https://svn.openplans.org/svn/config_jhammel/
author k0s <k0scist@gmail.com>
date Thu, 15 Oct 2009 11:41:26 -0400 (2009-10-15)
parents
children db859ed2585c
comparison
equal deleted inserted replaced
-1:000000000000 0:f3ab51c79813
1 #!/bin/bash
2
3 YOUTUBEDL=/home/jhammel/music/youtube-dl
4
5 URL=$1
6 TITLE=$($YOUTUBEDL --get-title $URL)
7 $YOUTUBEDL -b -i -r 50k $URL -o "%(title)s.%(ext)s"
8 EXT=mp4
9 rm -f audiodump.wav
10 mplayer -vc null -vo null -ao pcm "$TITLE.$EXT"
11 lame -q 2 audiodump.wav "$TITLE.mp3"
12 rm "$TITLE.$EXT"