PDA

View Full Version : Bitrate Options in Slim server



Roy Owen
2005-01-21, 07:49
I would like to add an additional bitrate limit to the options
availble to Slimserver. I'd like to be able to limit the bitrate to
32kbps, to keep the trafic down on our network at work (only T1 for
about 120 people + incoming traffic to our web servers).

Is it even possible to make Lame go that low, if so how do I hack the
perl modules, not a perl programmer?

Thanks
--
Do meddle in the affairs of Dragons,
for you are crunchy and good with Tabasco.

kdf
2005-01-21, 10:54
Quoting Roy Owen <yddraig (AT) gmail (DOT) com>:

> I would like to add an additional bitrate limit to the options
> availble to Slimserver. I'd like to be able to limit the bitrate to
> 32kbps, to keep the trafic down on our network at work (only T1 for
> about 120 people + incoming traffic to our web servers).
>
> Is it even possible to make Lame go that low, if so how do I hack the
> perl modules, not a perl programmer?

if you are connecting using streaming players, such as winamp, you can avoid the
need to modify code by using the following url:
http://slimserverIP:9000/stream.mp3?bitrate=32

This will connect and set the bitrate limit for that stream. Silence is still
hardcoded at 320kbps, but once playback begins, the tracks are recoded to
32kbps

-kdf

Roy Owen
2005-01-21, 11:06
What about SoftSqueeze?


On Fri, 21 Jan 2005 09:54:16 -0800, kdf <slim-mail (AT) deane-freeman (DOT) com> wrote:
> Quoting Roy Owen <yddraig (AT) gmail (DOT) com>:
>
> > I would like to add an additional bitrate limit to the options
> > availble to Slimserver. I'd like to be able to limit the bitrate to
> > 32kbps, to keep the trafic down on our network at work (only T1 for
> > about 120 people + incoming traffic to our web servers).
> >
> > Is it even possible to make Lame go that low, if so how do I hack the
> > perl modules, not a perl programmer?
>
> if you are connecting using streaming players, such as winamp, you can avoid the
> need to modify code by using the following url:
> http://slimserverIP:9000/stream.mp3?bitrate=32
>
> This will connect and set the bitrate limit for that stream. Silence is still
> hardcoded at 320kbps, but once playback begins, the tracks are recoded to
> 32kbps
>
> -kdf
>

kdf
2005-01-21, 11:15
Quoting Roy Owen <yddraig (AT) gmail (DOT) com>:

> What about SoftSqueeze?

you could try tricking it by using the url I gave you previously and entering it
as the radio url from the help->internet radio form. I'm not sure what
slimserver dose if you loop back onto itself :)

Alternatively, if you are running on a system that has a perl environment, then
you can edit Slim/Web/Setup. Somewhere near line 918 you will find:

'maxBitrate' => {
'validate' => \&validateInList
,'validateArgs' => [0, 64, 96, 128, 160, 192, 256, 320]

You can alter the list of numbers to add the bitrate you want. I believe LAME
supports 56, 48, 40, 32. 0 is reserved to indicate 'no limit'.

Then when you restart the server, your player settings will have the new
options. Be aware that if you are running Windows, you will need to download
the tar.gz installations, also download and install ActivePerl from
activestate.com. You can then run slimserver.pl instead of slim.exe.

-kdf

Roy Owen
2005-01-21, 11:26
Thanks. I'll give that a try this evening.


On Fri, 21 Jan 2005 10:15:38 -0800, kdf <slim-mail (AT) deane-freeman (DOT) com> wrote:
> Quoting Roy Owen <yddraig (AT) gmail (DOT) com>:
>
> > What about SoftSqueeze?
>
> you could try tricking it by using the url I gave you previously and entering it
> as the radio url from the help->internet radio form. I'm not sure what
> slimserver dose if you loop back onto itself :)
>
> Alternatively, if you are running on a system that has a perl environment, then
> you can edit Slim/Web/Setup. Somewhere near line 918 you will find:
>
> 'maxBitrate' => {
> 'validate' => \&validateInList
> ,'validateArgs' => [0, 64, 96, 128, 160, 192, 256, 320]
>
> You can alter the list of numbers to add the bitrate you want. I believe LAME
> supports 56, 48, 40, 32. 0 is reserved to indicate 'no limit'.
>
> Then when you restart the server, your player settings will have the new
> options. Be aware that if you are running Windows, you will need to download
> the tar.gz installations, also download and install ActivePerl from
> activestate.com. You can then run slimserver.pl instead of slim.exe.
>
> -kdf
>
>