Capturing video/audio streams to .MP3
- Telecaster
- Hack Fiend
- Posts: 52
- Joined: 17 Oct 2004 01:17
Capturing video/audio streams to .MP3
Does anyone know how to capture streaming videos or audio to an .MP3 file? There are a few songs/videos I listen to that I can't find in .MP3 form. One is .asx or something, and the other is a .wma file that is a live performance from a band I like.
First we find the "source" of the stream . . . you probably already have this.
...
21:25:23 (46.88 KB/s) - `hhher.ra' saved [48]
Now to find out the URL of the stream:
rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.ra
Cool. Now grab the stream to a file on disk. This step runs in realtime, so it will take half an hour to download a half-hour show:
(Time passes while mplayer writes a file named "stream.dump".)
Now convert the stream.dump file to pcm/wave:
(Time passes while mplayer writes a file named "audiodump.wav".)
Convert that wave file into mp3:
MPLAYER is the bomb.
Code: Select all
bash $ wget http://foo.bar.baz.com/flip/songs/hhher2324.ra ...
21:25:23 (46.88 KB/s) - `hhher.ra' saved [48]
Now to find out the URL of the stream:
Code: Select all
bash $ cat hhher.raCool. Now grab the stream to a file on disk. This step runs in realtime, so it will take half an hour to download a half-hour show:
Code: Select all
bash $ mplayer -dumpstream rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.raNow convert the stream.dump file to pcm/wave:
Code: Select all
bash $ mplayer -ao pcm stream.dumpConvert that wave file into mp3:
Code: Select all
bash $ lame --preset standard --tt "SongTitle" --ta "ArtistName" --tl "ALbumTitle" -ty "2004" --tn 1 audiodump.wav episode1.mp3MPLAYER is the bomb.
- Telecaster
- Hack Fiend
- Posts: 52
- Joined: 17 Oct 2004 01:17
- Telecaster
- Hack Fiend
- Posts: 52
- Joined: 17 Oct 2004 01:17
- Telecaster
- Hack Fiend
- Posts: 52
- Joined: 17 Oct 2004 01:17