view bin/yt2mp3.sh @ 82:a7857000e206

oops!
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 30 Jun 2010 09:45:03 -0700
parents db859ed2585c
children 4f49c0caa801
line wrap: on
line source

#!/bin/bash

YOUTUBEDL=/home/jhammel/music/youtube-dl

URL=$1
TITLE=$($YOUTUBEDL --get-title $URL)
EXT=mp4
$YOUTUBEDL -b -i -r 50k $URL -o "%(title)s.${EXT}" 
rm -f audiodump.wav
mplayer -vc null -vo null -ao pcm "$TITLE.$EXT"
lame -q 2 audiodump.wav "$TITLE.mp3"
#rm "$TITLE.$EXT"