Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

capturing streaming audio in linux

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Dec-27-05 06:52 PM
Original message
capturing streaming audio in linux
anyone have any magic spells for this?
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
RoyGBiv Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Dec-27-05 08:35 PM
Response to Original message
1. Do you have MPlayer?

You can start it from the CLI with certain options, and it will capture the stream and save it to a filename you specify.

The trick is finding out the actual URL to the audio stream, i.e. not the URL for the webpage where it is, but the path to the actual stream. A lot of sites try to hide these. But, you'd have to find out the same thing regardless of the platform.

Anyway, once you know where the stream is, you can direct MPlayer to start it and redirect the output to a file. There are a couple ways to go about it.

The directions here: http://www.elsewhere.org/journal/archives/2004/09/25/howto-capture-streaming-audio-for-later/ are simple to follow and work if you're not too worried about efficiency.



Printer Friendly | Permalink | Reply | Top
 
qnr Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Dec-27-05 09:17 PM
Response to Original message
2. That pretty much covers the basic way.. but -dumpfile is useful if you
want to capture more than one and you want to keep track of them. That would be: -dumpfile filename which outputs the filename instead of stream.dump
Printer Friendly | Permalink | Reply | Top
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Dec-28-05 12:07 AM
Response to Reply #2
3. That seemed to work better than the way on the web
page, but it blows up and exits...

this seems to be the germane error line...

86 audio & 200 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.


Printer Friendly | Permalink | Reply | Top
 
qnr Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Dec-28-05 12:10 AM
Response to Reply #3
4. Yeah, you should set yourself up to use the real-time clock, it's used
for timing.
Printer Friendly | Permalink | Reply | Top
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Dec-28-05 12:39 AM
Response to Reply #4
5. I wondered why. I saw a rtc flag setting
I will try that.
Printer Friendly | Permalink | Reply | Top
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jan-29-06 02:09 AM
Response to Original message
6. I do this sometimes to record Mike Malloy
Edited on Sun Jan-29-06 02:10 AM by Syrinx
mplayer -ao pcm -aofile /home/me/malloy.wav -vc null -vo null
http://play.rbn.com/?url=airam/airam/live/live.rm&proto=rtsp

(That should be all one line.)

The resulting WAV file is huge.  I really should pipe it
through lame in real-time.
Printer Friendly | Permalink | Reply | Top
 
WannaJumpMyScooter Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-30-06 05:42 PM
Response to Reply #6
7. so, let me embarass myself here...
you would type that line and then what?

|./lame


or something like that?
Printer Friendly | Permalink | Reply | Top
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Jan-31-06 05:27 AM
Response to Reply #7
8. yes, I think that's right
Pipe it through.  lame's probably not in your home directory,
but I'm not sure if that's a point or not.

You may have to supply some parameters, I'm not sure.

I'm never sure how to do something on a computer until I try
it a few times.  :D
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:46 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC