Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2006 13:51:50 -0600
From:      Mark Kane <mark@mkproductions.org>
To:        Olivier Regnier <oregnier@ixsys.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mpg123 with shoutcast radio
Message-ID:  <20061213135150.335c8af1@localhost>
In-Reply-To: <457FE1D4.6050007@ixsys.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Dec 13, 2006, at 12:19:48 +0100, Olivier Regnier wrote:
> Hello,
> 
> mpg123 is a relatively simple program but doesn't work with .pls file.
> 
> I used this command:
> 
> % mpg123 -@
> "http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=5761&file=filename.pls"
> 
> but i have this message:
> 
> > HTTP request failed: 404 Not Found
> 
> My pf firewall and proxy are disabled but anytime, i have the same
> thing. Estrange no ?
> 
> Can you help me please ?

Hi.

mpg123 doesn't support pls files by itself. I have attached a real
simple script that can help make this easier. Just chmod +x it, and
then do:

./mpg123_pls.sh "http://your.url.com/file.pls"

It would probably be good to make a shell alias to the script for easier
usage.

-Mark

-- 
Internet Radio:
Party107 (Trance/Electronic) - http://www.party107.com
Rock 101.9 The Edge (Rock) - http://www.rock1019.net

IRC:
MIXXnet IRC Network - irc.mixxnet.net (Nick: MIXX941)

[-- Attachment #2 --]
#!/bin/sh

env fetch -q -o - $1 | grep -e 'File1' | head -n 1 | cut -f 2 -d = | xargs mpg123
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061213135150.335c8af1>