post image

How to Capture Video or Music Streams and convert them to mp3's

Apr 20, 2006 Gethugothemes

You’ll need Mplayer and Lame of course to do this.
Here is my script:


########################################
#!/bin/bash
echo “Enter name of URL to capture”

read URL

mplayer -dumpstream -dumpfile song.dump $URL

mplayer -vc dummy -vo null -ao pcm song.dump

echo “Enter Song name you want to save stream as (i.e. Doowap.mp3)"

read songname

lame -m s -q 2 –vbr-new -V 1 -B 320 audiodump.wav $songname

rm audiodump.wav
rm song.dump
##################################################

Similar Posts

OpenBSD PF and OpenDNS

At home, I needed a way to prevent anything but OpenDNS from being used for DNS, and needed a rule that would do it in OpenBSD PF. Install and Configure First off, to setup an OpenDNS client on OpenBSD, install the ddclient package via pkg_add ddclient