PDA

View Full Version : SLIMP3: transcoding doesn't work



Oscar Marsh
2004-05-08, 13:39
I'm using Mac nightly build 2004-05-08.

I've installed oggdec and lame in /sw/bin and restarted the server.
Navigating via browse music folder to an Ogg Vorbis file, and pressing
play, the SLIMP3 simply stops or skips to the next track. No lame or
oggdec process starts.

Similarly, I've tried playing an AIFF file with the same result. No
mov123 is seen running at any time.

I've tried all of the following as detailed in the FAQ:

>On the Mac, you can place executable programs in your
Library/SlimDevices/bin folder, or in the system path.

Can anyone help me? Is there a change I need to make to convert.conf?
It's currently unchanged.

Oscar Marsh
--
Play Fair, Apple: http://kandalaya.org/playfair.txt
jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)

kdf
2004-05-08, 13:58
Is the ogg mp3 option enabled in your server settings, additional, file types?

If the binaries arent being found, the checkbox will turn off. If you try to
check it then press change, it will tell you if there is any error.

If those enable fine, then try turning on d_source and looking at the log.

-kdf


Quoting Oscar Marsh <jigsaw250 (AT) yahoo (DOT) co.uk>:

> I'm using Mac nightly build 2004-05-08.
>
> I've installed oggdec and lame in /sw/bin and restarted the server.
> Navigating via browse music folder to an Ogg Vorbis file, and pressing
> play, the SLIMP3 simply stops or skips to the next track. No lame or
> oggdec process starts.
>
> Similarly, I've tried playing an AIFF file with the same result. No
> mov123 is seen running at any time.
>
> I've tried all of the following as detailed in the FAQ:
>
> >On the Mac, you can place executable programs in your
> Library/SlimDevices/bin folder, or in the system path.
>
> Can anyone help me? Is there a change I need to make to convert.conf?
> It's currently unchanged.
>
> Oscar Marsh
> --
> Play Fair, Apple: http://kandalaya.org/playfair.txt
> jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)
>
>

Oscar Marsh
2004-05-08, 15:57
On 8 May 2004, at 21:58, kdf wrote:

> Is the ogg mp3 option enabled in your server settings, additional,
> file types?
>
> If the binaries arent being found, the checkbox will turn off. If you
> try to
> check it then press change, it will tell you if there is any error.

I hadn't turned those on. I turned the right options on in there and
AIFF worked but OGG continued to fail.

> If those enable fine, then try turning on d_source and looking at the
> log.

I did so, and here is what I got:

http://jigsaw250.dyndns.org/20040508-slimserverlog.txt

Here's the Ogg Vorbis file I'm trying to play, which shouldn't be the
problem as I just encoded it cleanly with oggenc, so please only
download it if you suspect it's at fault:

http://jigsaw250.dyndns.org/Guy%20Fawkes%20Night%202003.ogg

Oscar Marsh
--
Play Fair, Apple: http://kandalaya.org/playfair.txt
jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)

kdf
2004-05-08, 16:22
ah, think I know what it might be. The ppl that make oggdec did something
rather stupid. V1.0 required -R1 in the command line, but v1.0.1 now requires
-R without the 1. Slimserver expects v1.0.1 and it in included in
Bin/MSWin32-x86-multi-thread.

Alternatively, can can simply add the 1 in the convert.conf and restart the server.
-kdf


Quoting Oscar Marsh <jigsaw250 (AT) yahoo (DOT) co.uk>:

> On 8 May 2004, at 21:58, kdf wrote:
>
> > Is the ogg mp3 option enabled in your server settings, additional,
> > file types?
> >
> > If the binaries arent being found, the checkbox will turn off. If you
> > try to
> > check it then press change, it will tell you if there is any error.
>
> I hadn't turned those on. I turned the right options on in there and
> AIFF worked but OGG continued to fail.
>
> > If those enable fine, then try turning on d_source and looking at the
> > log.
>
> I did so, and here is what I got:
>
> http://jigsaw250.dyndns.org/20040508-slimserverlog.txt
>
> Here's the Ogg Vorbis file I'm trying to play, which shouldn't be the
> problem as I just encoded it cleanly with oggenc, so please only
> download it if you suspect it's at fault:
>
> http://jigsaw250.dyndns.org/Guy%20Fawkes%20Night%202003.ogg
>
> Oscar Marsh
> --
> Play Fair, Apple: http://kandalaya.org/playfair.txt
> jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)
>
>

Oscar Marsh
2004-05-08, 18:47
On 9 May 2004, at 00:22, kdf wrote:

> ah, think I know what it might be. The ppl that make oggdec did
> something
> rather stupid. V1.0 required -R1 in the command line, but v1.0.1 now
> requires
> -R without the 1. Slimserver expects v1.0.1 and it in included in
> Bin/MSWin32-x86-multi-thread.
>
> Alternatively, can can simply add the 1 in the convert.conf and
> restart the server.

Right, it is indeed oggdec version 1.0, so I added 1 to the options in
convert.conf, restarted SlimServer and now the Ogg file plays, but it's
bursts of white noise rather than a nice field recording of fireworks
:\

By the way, the oggdec available in Bin/MSWin32-x86-multi-thread isn't
going to work on a Mac, is it? I did try it but I'm sure it's not
compatible.

Oscar Marsh
--
Play Fair, Apple: http://kandalaya.org/playfair.txt
jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)

kdf
2004-05-08, 19:12
Quoting Oscar Marsh <jigsaw250 (AT) yahoo (DOT) co.uk>:

> On 9 May 2004, at 00:22, kdf wrote:
>
> > ah, think I know what it might be. The ppl that make oggdec did
> > something
> > rather stupid. V1.0 required -R1 in the command line, but v1.0.1 now
> > requires
> > -R without the 1. Slimserver expects v1.0.1 and it in included in
> > Bin/MSWin32-x86-multi-thread.
> >
> > Alternatively, can can simply add the 1 in the convert.conf and
> > restart the server.
>
> Right, it is indeed oggdec version 1.0, so I added 1 to the options in
> convert.conf, restarted SlimServer and now the Ogg file plays, but it's
> bursts of white noise rather than a nice field recording of fireworks
> :\
>
> By the way, the oggdec available in Bin/MSWin32-x86-multi-thread isn't
> going to work on a Mac, is it? I did try it but I'm sure it's not
> compatible.

sorry, gave you the wrong OS. There will be a copy in Bin/darwin.

try adding a -x as part of the lame command:

[oggdec] -Q -o - -R 1 $FILE$ | [lame] -x --resample 44100 --silent -b $BITRATE$
-r - -

or possibly remove the $-x$. The server is checking endiannes and using -x or
not depending on what it finds. it might be wrong. the white noise stuff is
typical of wrong endian.

-kdf

Oscar Marsh
2004-05-09, 05:42
> try adding a -x as part of the lame command:
>
> [oggdec] -Q -o - -R 1 $FILE$ | [lame] -x --resample 44100 --silent -b
> $BITRATE$
> -r - -
>
> or possibly remove the $-x$. The server is checking endiannes and
> using -x or
> not depending on what it finds. it might be wrong. the white noise
> stuff is
> typical of wrong endian.

Thanks for your help Kevin

I changed the line to the one you specified and the white noise went
away. Now, however, I fear I'll have to upgrade my SlimServer machine,
as ogg transcoding seems to require more of the computer's resources
than I have available most of the time.

On the server Mac (a 600Mhz G3 iBook with 640 MB RAM), I run the
Nicotine Soulseek client under pygtk and X11, and until I quit that ,
playback of OGG transcoded to MP3 is stuttery to the point of being
unlistenable :\ Perhaps it's time to switch to Squeezebox.

Oscar Marsh
--
Play Fair, Apple: http://kandalaya.org/playfair.txt
jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)

Oscar Marsh
2004-05-09, 07:51
On 9 May 2004, at 03:12, kdf wrote:

>> By the way, the oggdec available in Bin/MSWin32-x86-multi-thread isn't
>> going to work on a Mac, is it? I did try it but I'm sure it's not
>> compatible.
>
> sorry, gave you the wrong OS. There will be a copy in Bin/darwin.

It's not there.

http://www.slimdevices.com/downloads/nightly/latest/SlimServer_v2004
-05-09/Bin/darwin/

Just mDNSResponder and mov123...

I've just been using oggdec 1.0 installed via Fink. Would 1.0.1 improve
the CPU usage? I doubt it myself as it appears to be the lame process
that's using up to 80% of the CPU.

Oscar Marsh
--
Play Fair, Apple: http://kandalaya.org/playfair.txt
jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)

kdf
2004-05-09, 12:48
Quoting Oscar Marsh <jigsaw250 (AT) yahoo (DOT) co.uk>:

> On 9 May 2004, at 03:12, kdf wrote:
>
> >> By the way, the oggdec available in Bin/MSWin32-x86-multi-thread isn't
> >> going to work on a Mac, is it? I did try it but I'm sure it's not
> >> compatible.
> >
> > sorry, gave you the wrong OS. There will be a copy in Bin/darwin.
>
> It's not there.
>
> http://www.slimdevices.com/downloads/nightly/latest/SlimServer_v2004
> -05-09/Bin/darwin/
>
> Just mDNSResponder and mov123...
>
correct, you are. I guess I should have looked. If anyone does find/compile an
osx binary for oggdec 1.0.1 it should probably be given the chance to end up there.

> I've just been using oggdec 1.0 installed via Fink. Would 1.0.1 improve
> the CPU usage? I doubt it myself as it appears to be the lame process
> that's using up to 80% of the CPU.
ouch.
if you aren't already using itunes-lame, that might help. I've heard it is
better optimised for osx.

-kdf

Oscar Marsh
2004-05-09, 15:11
On 9 May 2004, at 8:48 pm, kdf wrote:

> if you aren't already using itunes-lame, that might help. I've heard
> it is
> better optimised for osx.

I grabbed the latest iTunes-LAME, which contains lame 3.95.1. I fink
remove'd lame 3.93, copied 3.95.1 into my /usr/local/bin and it takes
up less of the CPU, but it's still swamped by python2.3. SLIMP3's
decoder keeps stalling to wait for more of the file to be encoded. This
goes away, and Oggs play back fine, if I quit everything and allow perl
and lame to have all the CPU.

Of course, the Mac I'm running SlimServer on happens to be a shared
computer which not only holds the music library but is often used to
play it via iTunes. Plus we run Soulseek on it, and I like to have that
running 24/7. At the moment I'm just going to blame python2.3/pygtk for
hogging the resources and cross my fingers for some kind of native,
Objective C-based, CPU-friendly client for my favourite P2P app ;)

Oscar Marsh
--
Play Fair, Apple: http://kandalaya.org/playfair.txt
jabber: ojmarsh (AT) jabber (DOT) anywise.com (not an email address)