Author Topic: Shoutcast Player For Recording Broadcasts?  (Read 2282 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Shoutcast Player For Recording Broadcasts?
« on: October 21, 2005, 02:34:31 am »
Hello,

I have set up the Shoutcast Player as described in the thread
https://www.oesf.org/forums/index.php?showt...00&hl=shoutcast

Many thanks for that! It works like a charm, and I have found many gems in the "World" category. Have listened to some of them yesterday and had an idea:

Wouldn't it be nice to have a feature for recording, so you can record a few hours of the stream when at home with WLAN access, and then play it back when on the road without broadband?

Shoutcast Player uses mplayer for playback, and AFAIK mplayer can dump audio streams to files. So it should theoretically be possible.

Does Shoutcast use mp3 format? If so, it would probably be better to dump the raw stream to an mp3 file rather than dump the decoded PCM to a WAV file (or to re-encode it on the fly, which would problably be too much for the Zaurus anyway).

Any thoughts about this?

Since the Shoutcast Player applicatoin is a script, it should be easy to add a feature to the GUI (for anyone knowing the Ruby language well). but what has to be be behind the GUI?

Thanks

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Shoutcast Player For Recording Broadcasts?
« Reply #1 on: October 21, 2005, 02:46:40 am »
Have googled a bit now and found

http://grimthing.com/archives/2004/05/20/r...o-with-mplayer/

This describes how to dump streamed media to files with mplayer, and there comes the section "The stream I want to record is already in the format I want" which describes the -dumpstream optoin of mplayer so a Shoutcast mp3 stream can directly be written to an mp3 file. Great!

Now, is there anyone willing to implement such an additional feature for Shoutcast player?

And, I have not found any information about if it is possible to -dumpstream and listen to the stream at the same time, which would be preferable in order to control the recording content-dependently.

Can two mplayer instances run in parallel, one dumping and one decoding?

I'd look it up in the mplayer documentation, but the documentation links on mplayerhq.hu are not usable for me at the moment. Not sure if it si a server problem or a problem of the firewall I'm behind.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Shoutcast Player For Recording Broadcasts?
« Reply #2 on: November 10, 2005, 06:49:28 pm »
Quote
Can two mplayer instances run in parallel, one dumping and one decoding?

could you get mplayer to dump stream to stdout, use "tee" to write it to a file as well as feed a copy of the stream to another running mplayer


something like "mplayer -dumpstream http://x/y | tee mystream | mplayer -"

purely guessing at the command-line syntax
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Shoutcast Player For Recording Broadcasts?
« Reply #3 on: November 10, 2005, 08:41:03 pm »
might be doable in vlc... I'll have alook
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

ThirtyOne

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Shoutcast Player For Recording Broadcasts?
« Reply #4 on: November 11, 2005, 09:02:28 am »
You can do a dumpstream with one instance of mplayer and start up another instance to read it at the same time.  I do it all the time on my linux box though I have not tried it on the zaurus.

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Shoutcast Player For Recording Broadcasts?
« Reply #5 on: November 15, 2005, 06:25:34 am »
Quote
You can do a dumpstream with one instance of mplayer and start up another instance to read it at the same time.  I do it all the time on my linux box though I have not tried it on the zaurus.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103293\"][{POST_SNAPBACK}][/a][/div]

Thanks for the idea - just read your post after I have implemented the very same thing. Have a look at my new thread in this forum :-)
It works nicely, but of course it needs twice the network bandwidth, so it certainly has its downsides.

Will have a look into the tee idea, this would be more elegant I think (if it works).

thanks

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0