Re: script or c prog to record live audio?

2013-05-06 Thread Gary Kline
On Mon, May 06, 2013 at 11:40:06PM -0400, rpratt wrote:
> On Mon, 6 May 2013 16:19:02 -0700
> Gary Kline  wrote:
> > I've been meaning to ask one of the Nix lists if there is a script that
> > will record something from kuow.org
> 
> To play audio stream:
> 
> mplayer -playlist 'http://shoutcast.kuow.org:8002/listen.pls'
> 
> To dump the audio stream to file:
> 
> mplayer -dumpstream -dumpfile foo.mp3 -playlist '... URL ...'
> 
> No need to reinvent wheels.  See man page for more description and many other
> options.
> 
> Enjoy,
> Randy

right on the money; about  reinventing wheels; I can cron the 
dumpstream  {=news= to me!} and play back whenever!  

{i wasnt kidding when I said I was getting Old.  my bed is singing
siren songs.}

tx muchly,

gary


> ___
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[email protected]"

-- 
 Gary Kline  [email protected]  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"


Re: script or c prog to record live audio?

2013-05-06 Thread Gary Kline
On Mon, May 06, 2013 at 07:24:29PM -0500, Joshua Isom wrote:
> On 5/6/2013 6:19 PM, Gary Kline wrote:
> >
> >guys,
> >
> >I've been meaning to ask one of the Nix lists if there is a script that
> >will record something from kuow.org while I watch one of my favorite tv
> >broadcasts.  most  of the time, nothing is on tv, but  this one radio
> >broadcast, "AR" co-insides with "NOVA" at 21:00.
> >
> >anybody know?
> >
> >
> >
> 
> The hackish way I've done before is use wireshark do dump the
> network stream.  In reality, I think you might be able to get by
> with fetch.  I just tried and fetch closes the connection before
> buffering, using telnet does the transmit.  The trick is mp3 streams
> are just inefficient mp3's.  Maybe wget would work.  You can add a
> cron job to start it and another to kill it.


I'm checking fetch out now; I know a bit about  wireshark and have
used wget frequently.  but, nutshell, this might be  a serious
hack!  still, since it's only for me, no problem.  

thanks for the datapoints! 

> ___
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[email protected]"

-- 
 Gary Kline  [email protected]  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"


Re: script or c prog to record live audio?

2013-05-06 Thread rpratt
On Mon, 6 May 2013 16:19:02 -0700
Gary Kline  wrote:
> I've been meaning to ask one of the Nix lists if there is a script that
> will record something from kuow.org

To play audio stream:

mplayer -playlist 'http://shoutcast.kuow.org:8002/listen.pls'

To dump the audio stream to file:

mplayer -dumpstream -dumpfile foo.mp3 -playlist '... URL ...'

No need to reinvent wheels.  See man page for more description and many other
options.

Enjoy,
Randy
___
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"


Re: script or c prog to record live audio?

2013-05-06 Thread Joshua Isom

On 5/6/2013 6:19 PM, Gary Kline wrote:


guys,

I've been meaning to ask one of the Nix lists if there is a script that
will record something from kuow.org while I watch one of my favorite tv
broadcasts.  most  of the time, nothing is on tv, but  this one radio
broadcast, "AR" co-insides with "NOVA" at 21:00.

anybody know?





The hackish way I've done before is use wireshark do dump the network 
stream.  In reality, I think you might be able to get by with fetch.  I 
just tried and fetch closes the connection before buffering, using 
telnet does the transmit.  The trick is mp3 streams are just inefficient 
mp3's.  Maybe wget would work.  You can add a cron job to start it and 
another to kill it.

___
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"