Capturing Streams To MP3

Apple's new iTunes 4 with "Music Sharing" won't let you save the stream to disk. Right? I mean, it can't be easy, can it? Yes it can. Stream a playlist, use a network scanning tool like tcpdump to determine the URL, and then grab that URL manually.

Look for something like this: preg_replace('/<\/?p( [^>]*)?>[ ]*/', ' ', preg_replace('/
[ ]*/', ' ', '

010.000.001.104:49825->010.000.001.132:03689 (224 bytes)TH_PUSH TH_ACK GET /databases/32/items/1104.mp3?session-id=20570 HTTP/1.1
'))

Then, use this: preg_replace('/<\/?p( [^>]*)?>[ ]*/', ' ', preg_replace('/
[ ]*/', ' ', '

curl http://10.0.1.132:03689/databases/32/items/1104.mp3?session- id=20570 > file.mp3
'))

Of course, this will only work with MP3 files, or presumably M4A files. The M4P files that you get from the new Apple Music Store will still want to be "authorized" to play. Still, it's almost too easy.

Article tags

Spread the word
Bookmark and Share
Profile image for phillip-winn

Article Author: Phillip Winn

Phillip Winn was the Chief Geek for Blogcritics, and a blogger since 1995. He may currently be found and followed as @pwinn on Twitter.

Visit Phillip Winn's author pagePhillip Winn's Blog

Read comments on this article, and add some feedback of your own

Article comments

  • 1 - Brian Flemming

    Apr 30, 2003 at 6:40 pm

    Phillip,

    The cool thing I read about at MacInTouch yesterday was that you can apparently listen to other people's iTunes libraries over the Internet.

    I didn't quite understand how it worked, but I can't imagine the music companies are happy about that capability, if it exists.

  • 2 - Phillip Winn

    May 01, 2003 at 1:50 pm

    Apparently the iTunes Music Sharing features normally skips .m4p files, only streaming the MP3s you already have. I guess that's something.

    It means I no longer have to run Quicktime Streaming Server. Well, once there is a Windows client I won't have to.

Add your comment, speak your mind

Personal attacks are NOT allowed.
Please read our comment policy.
Please preview your comment.

blogcritics lists for May 21, 2013

fresh articles Most recent articles site-wide

fresh comments Most recent comments site-wide

most comments Most comments in 24hrs

top writers Most prolific Blogcritics for April

top commenters Most prolific Commenters in 24 hrs