PDA

View Full Version : slimserver thinks m4a AAC files have zero length size



2004-08-01, 09:48
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of
> Andrew W. Donoho
> Sent: 01 August 2004 15:30
> To: Slim Devices Discussion
> Subject: [slim] slimserver thinks m4a AAC files have zero
> length size
>
> Torgeir,
>
> As the guy who got faad2 running on Linux for SlimServer, I
> can probably help you. I have been following your travails
> but have no clear idea what your problem is?
>
> I recommend that you follow my instructions, which are in the
> maillist archive, March 2nd, 2004, below (I have edited it to
> incorporate my current configuration):

Andrew,

Thanks for sticking your head above the parapet on this issue.

I am experiencing the same problem as Torgeir in getting .m4a files to play
with slimserver running under linux.

Here's my setup:

Fedora Core 2
slimserver - latest version checked out from CVS (as of 2004-08-01).
faad2 - installed from faad2-2.0-0.lvn.1.2.rpm (binary in /usr/bin)
lame - installed from lame-3.96-0.lvn.1.2.rpm (binary in /usr/bin)

I've created slimserver-convert.conf and it contains the following lines:

mov wav squeezebox *
[faad] -f 2 -w $FILE$

mov mp3 squeezebox *
[faad] -f 2 -w $FILE$ | [lame] -s 44.1 --resample 44100 --silent -q
9 -b $BITRATE$ -r -x - -

I then restarted slimserver and went to the "file types" tab in server
settings and checked/unchecked the following settings:

Apple AAC, Lossless or Movie File AIFF mov123
Apple AAC, Lossless or Movie File MP3 mov123/lame
x Apple AAC, Lossless or Movie File MP3 faad/lame
x Apple AAC, Lossless or Movie File WAV faad

I turned on debugging for source and source_v then tried to play a file in
aac format (with extension .m4a).

Here's the trace in the log:

2004-08-01 17:23:20.0553 Backtrace:

frame 0: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 559)
frame 1: Slim::Player::Source::jumpto
(/usr/local/slimserver//Slim/Control/Co
mmand.pm line 539)
frame 2: Slim::Control::Command::execute
(/usr/local/slimserver//Slim/Web/HTT
P.pm line 556)
frame 3: Slim::Web::HTTP::processURL
(/usr/local/slimserver//Slim/Web/HTTP.pm
line 436)
frame 4: Slim::Web::HTTP::processHTTP
(/usr/local/slimserver//Slim/Networking
/Select.pm line 116)
frame 5: Slim::Networking::Select::select
(/usr/local/slimserver/slimserver.p
l line 423)
frame 6: main::idle (/usr/local/slimserver/slimserver.pl line 366)
frame 7: main::main (/usr/local/slimserver/slimserver.pl line 825)

2004-08-01 17:23:20.0558 00:04:20:05:37:50: Switching to mode stop from stop
2004-08-01 17:23:20.0561 Already in playmode stop : ignoring mode change
2004-08-01 17:23:20 22004-08-01 17:23:20.0569 Backtrace:

frame 0: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 584)
frame 1: Slim::Player::Source::jumpto
(/usr/local/slimserver//Slim/Control/Co
mmand.pm line 539)
frame 2: Slim::Control::Command::execute
(/usr/local/slimserver//Slim/Web/HTT
P.pm line 556)
frame 3: Slim::Web::HTTP::processURL
(/usr/local/slimserver//Slim/Web/HTTP.pm
line 436)
frame 4: Slim::Web::HTTP::processHTTP
(/usr/local/slimserver//Slim/Networking
/Select.pm line 116)
frame 5: Slim::Networking::Select::select
(/usr/local/slimserver/slimserver.p
l line 423)
frame 6: main::idle (/usr/local/slimserver/slimserver.pl line 366)
frame 7: main::main (/usr/local/slimserver/slimserver.pl line 825)

2004-08-01 17:23:20.0573 00:04:20:05:37:50: Switching to mode play from stop
2004-08-01 17:23:20.0584 openSong on:
file:///home/slimserver/music/Tom's%20MP3s
/F09/11%20Slow%20Train%20To%20Dawn%20_12_.m4a
Use of uninitialized value in concatenation (.) or string at
/usr/local/slimserv
er//Slim/Player/Source.pm line 871.
2004-08-01 17:23:20.0602 openSong: getting duration , size 6287994, endian
and
offset 0 for
file:///home/slimserver/music/Tom's%20MP3s/F09/11%20Slow%20Train%2
0To%20Dawn%20_12_.m4a
2004-08-01 17:23:20.0605 openSong: not bothering opening file with zero size
or
duration
2004-08-01 17:23:20.0659 Couldn't open song. Stopping.
2004-08-01 17:23:20.0662 opening next song...
2004-08-01 17:23:20.0667 the next song is number 9, was 8
2004-08-01 17:23:20.0684 undermax = 1, type = mov, squeezebox =
00:04:20:05:37:5
0, lame = /usr/bin/lame
2004-08-01 17:23:20.0688 checking formats for:
mov-aif-squeezebox-00:04:20:05:37
:50
2004-08-01 17:23:20.0690 Checking to see if
mov-aif-squeezebox-00:04:20:05:37:50
is enabled
2004-08-01 17:23:20.0692 enabled
2004-08-01 17:23:20.0693 checking formats for: mov-aif-*-00:04:20:05:37:50
2004-08-01 17:23:20.0697 Checking to see if mov-aif-*-00:04:20:05:37:50 is
enabl
ed
2004-08-01 17:23:20.0700 enabled
2004-08-01 17:23:20.0702 checking formats for: mov-aif-squeezebox-*
2004-08-01 17:23:20.0703 Checking to see if mov-aif-squeezebox-* is enabled
2004-08-01 17:23:20.0705 enabled
2004-08-01 17:23:20.0707 checking formats for: mov-aif-*-*
2004-08-01 17:23:20.0709 Checking to see if mov-aif-*-* is enabled
2004-08-01 17:23:20.0711 enabled
2004-08-01 17:23:20.0712 Found command: [mov123] $FILE$
2004-08-01 17:23:20.0727 drat, missing binary mov123
2004-08-01 17:23:20.0731 checking formats for:
mov-wav-squeezebox-00:04:20:05:37
:50
2004-08-01 17:23:20.0733 Checking to see if
mov-wav-squeezebox-00:04:20:05:37:50
is enabled
2004-08-01 17:23:20.0735 enabled
2004-08-01 17:23:20.0737 checking formats for: mov-wav-*-00:04:20:05:37:50
2004-08-01 17:23:20.0739 Checking to see if mov-wav-*-00:04:20:05:37:50 is
enabl
ed
2004-08-01 17:23:20.0741 enabled
2004-08-01 17:23:20.0742 checking formats for: mov-wav-squeezebox-*
2004-08-01 17:23:20.0744 Checking to see if mov-wav-squeezebox-* is enabled
2004-08-01 17:23:20.0745 enabled
2004-08-01 17:23:20.0747 Found command: [faad] -f 2 -w $FILE$
2004-08-01 17:23:20.0759 Matched Format: wav Type: mov Command: [faad] -f 2
-w $
FILE$
Use of uninitialized value in concatenation (.) or string at
/usr/local/slimserv
er//Slim/Player/Source.pm line 658.
2004-08-01 17:23:20.0765 opening next song (old format: , new: wav) current
play
mode: stop
2004-08-01 17:23:20.0774 openSong on:
file:///home/slimserver/music/Tom's%20MP3s
/F02/02%20Out%20Of%20The%20Blue%20_Into%20Th.m4a
Use of uninitialized value in concatenation (.) or string at
/usr/local/slimserv
er//Slim/Player/Source.pm line 871.
2004-08-01 17:23:20.0792 openSong: getting duration , size 5010361, endian
and
offset 0 for
file:///home/slimserver/music/Tom's%20MP3s/F02/02%20Out%20Of%20The
%20Blue%20_Into%20Th.m4a
2004-08-01 17:23:20.0795 openSong: not bothering opening file with zero size
or
duration
2004-08-01 17:23:20.0852 the next song is number 10, was 9
2004-08-01 17:23:20.0880 undermax = 1, type = mov, squeezebox =
00:04:20:05:37:5
0, lame = /usr/bin/lame
2004-08-01 17:23:20.0884 checking formats for:
mov-aif-squeezebox-00:04:20:05:37
:50
2004-08-01 17:23:20.0886 Checking to see if
mov-aif-squeezebox-00:04:20:05:37:50
is enabled
2004-08-01 17:23:20.0888 enabled
2004-08-01 17:23:20.0891 checking formats for: mov-aif-*-00:04:20:05:37:50
2004-08-01 17:23:20.0893 Checking to see if mov-aif-*-00:04:20:05:37:50 is
enabl
ed
2004-08-01 17:23:20.0895 enabled
2004-08-01 17:23:20.0897 checking formats for: mov-aif-squeezebox-*
2004-08-01 17:23:20.0899 Checking to see if mov-aif-squeezebox-* is enabled
2004-08-01 17:23:20.0901 enabled
2004-08-01 17:23:20.0903 checking formats for: mov-aif-*-*
2004-08-01 17:23:20.0905 Checking to see if mov-aif-*-* is enabled
2004-08-01 17:23:20.0907 enabled
2004-08-01 17:23:20.0908 Found command: [mov123] $FILE$
2004-08-01 17:23:20.0924 drat, missing binary mov123
2004-08-01 17:23:20.0928 checking formats for:
mov-wav-squeezebox-00:04:20:05:37
:50
2004-08-01 17:23:20.0930 Checking to see if
mov-wav-squeezebox-00:04:20:05:37:50
is enabled
2004-08-01 17:23:20.0932 enabled
2004-08-01 17:23:20.0934 checking formats for: mov-wav-*-00:04:20:05:37:50
2004-08-01 17:23:20.0936 Checking to see if mov-wav-*-00:04:20:05:37:50 is
enabl
ed
2004-08-01 17:23:20.0938 enabled
2004-08-01 17:23:20.0940 checking formats for: mov-wav-squeezebox-*
2004-08-01 17:23:20.0942 Checking to see if mov-wav-squeezebox-* is enabled
2004-08-01 17:23:20.0943 enabled
2004-08-01 17:23:20.0945 Found command: [faad] -f 2 -w $FILE$
2004-08-01 17:23:20.0955 Matched Format: wav Type: mov Command: [faad] -f 2
-w $
FILE$
Use of uninitialized value in concatenation (.) or string at
/usr/local/slimserv
er//Slim/Player/Source.pm line 658.
2004-08-01 17:23:20.0961 opening next song (old format: , new: wav) current
play
mode: stop
2004-08-01 17:23:20.0971 openSong on:
file:///home/slimserver/music/Tom's%20MP3s
/F12/05%20Sweet%20Bird%20Of%20Truth.m4a
Use of uninitialized value in concatenation (.) or string at
/usr/local/slimserv
er//Slim/Player/Source.pm line 871.
2004-08-01 17:23:20.0989 openSong: getting duration , size 4878113, endian
and
offset 0 for
file:///home/slimserver/music/Tom's%20MP3s/F12/05%20Sweet%20Bird%2
0Of%20Truth.m4a
2004-08-01 17:23:20.0992 openSong: not bothering opening file with zero size
or
duration
2004-08-01 17:23:20.1052 Backtrace:

frame 0: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 626)
frame 1: Slim::Player::Source::openNext
(/usr/local/slimserver//Slim/Player/S
ource.pm line 284)
frame 2: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 584)
frame 3: Slim::Player::Source::jumpto
(/usr/local/slimserver//Slim/Control/Co
mmand.pm line 539)
frame 4: Slim::Control::Command::execute
(/usr/local/slimserver//Slim/Web/HTT
P.pm line 556)
frame 5: Slim::Web::HTTP::processURL
(/usr/local/slimserver//Slim/Web/HTTP.pm
line 436)
frame 6: Slim::Web::HTTP::processHTTP
(/usr/local/slimserver//Slim/Networking
/Select.pm line 116)
frame 7: Slim::Networking::Select::select
(/usr/local/slimserver/slimserver.p
l line 423)
frame 8: main::idle (/usr/local/slimserver/slimserver.pl line 366)
frame 9: main::main (/usr/local/slimserver/slimserver.pl line 825)

2004-08-01 17:23:20.1057 00:04:20:05:37:50: Switching to mode stop from stop
2004-08-01 17:23:20.1061 Already in playmode stop : ignoring mode change
2004-08-01 17:23:20.1067 00:04:20:05:37:50 New play mode: stop
2004-08-01 17:23:20.1073 Stopping and clearing out old chunks for client
00:04:2
0:05:37:50
2004-08-01 17:23:20.1087 00:04:20:05:37:50: Current playmode: stop


Now, it seems from this that it's trying to play the file using mov123 so I
edited convert.conf and commented out the following line:

## you can comment this out if you want to use LAME to transcode AAC/MOV
files to MP3.
#mov aif * *
# [mov123] $FILE$

Now when I try to play a .m4a file here's the log I get:

2004-08-01 17:47:18.0050 Backtrace:

frame 0: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 559)
frame 1: Slim::Player::Source::jumpto
(/usr/local/slimserver//Slim/Control/Co
mmand.pm line 539)
frame 2: Slim::Control::Command::execute
(/usr/local/slimserver//Slim/Web/HTT
P.pm line 556)
frame 3: Slim::Web::HTTP::processURL
(/usr/local/slimserver//Slim/Web/HTTP.pm
line 436)
frame 4: Slim::Web::HTTP::processHTTP
(/usr/local/slimserver//Slim/Networking
/Select.pm line 116)
frame 5: Slim::Networking::Select::select
(/usr/local/slimserver/slimserver.p
l line 423)
frame 6: main::idle (/usr/local/slimserver/slimserver.pl line 366)
frame 7: main::main (/usr/local/slimserver/slimserver.pl line 825)

2004-08-01 17:47:18.0053 00:04:20:05:37:50: Switching to mode stop from stop
2004-08-01 17:47:18.0054 Already in playmode stop : ignoring mode change
2004-08-01 17:47:18 22004-08-01 17:47:18.0060 Backtrace:

frame 0: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 584)
frame 1: Slim::Player::Source::jumpto
(/usr/local/slimserver//Slim/Control/Co
mmand.pm line 539)
frame 2: Slim::Control::Command::execute
(/usr/local/slimserver//Slim/Web/HTT
P.pm line 556)
frame 3: Slim::Web::HTTP::processURL
(/usr/local/slimserver//Slim/Web/HTTP.pm
line 436)
frame 4: Slim::Web::HTTP::processHTTP
(/usr/local/slimserver//Slim/Networking
/Select.pm line 116)
frame 5: Slim::Networking::Select::select
(/usr/local/slimserver/slimserver.p
l line 423)
frame 6: main::idle (/usr/local/slimserver/slimserver.pl line 366)
frame 7: main::main (/usr/local/slimserver/slimserver.pl line 825)

2004-08-01 17:47:18.0062 00:04:20:05:37:50: Switching to mode play from stop
2004-08-01 17:47:18.0071 openSong on:
file:///home/slimserver/music/Tom's%20MP3s
/F45/03%20Heartland.m4a
Use of uninitialized value in concatenation (.) or string at
/usr/local/slimserv
er//Slim/Player/Source.pm line 871.
2004-08-01 17:47:18.0087 openSong: getting duration , size 4940143, endian
and
offset 0 for
file:///home/slimserver/music/Tom's%20MP3s/F45/03%20Heartland.m4a
2004-08-01 17:47:18.0089 openSong: not bothering opening file with zero size
or
duration
2004-08-01 17:47:18.0141 Couldn't open song. Stopping.
2004-08-01 17:47:18.0143 opening next song...
2004-08-01 17:47:18.0151 Backtrace:

frame 0: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 626)
frame 1: Slim::Player::Source::openNext
(/usr/local/slimserver//Slim/Player/S
ource.pm line 284)
frame 2: Slim::Player::Source::playmode
(/usr/local/slimserver//Slim/Player/S
ource.pm line 584)
frame 3: Slim::Player::Source::jumpto
(/usr/local/slimserver//Slim/Control/Co
mmand.pm line 539)
frame 4: Slim::Control::Command::execute
(/usr/local/slimserver//Slim/Web/HTT
P.pm line 556)
frame 5: Slim::Web::HTTP::processURL
(/usr/local/slimserver//Slim/Web/HTTP.pm
line 436)
frame 6: Slim::Web::HTTP::processHTTP
(/usr/local/slimserver//Slim/Networking
/Select.pm line 116)
frame 7: Slim::Networking::Select::select
(/usr/local/slimserver/slimserver.p
l line 423)
frame 8: main::idle (/usr/local/slimserver/slimserver.pl line 366)
frame 9: main::main (/usr/local/slimserver/slimserver.pl line 825)

2004-08-01 17:47:18.0153 00:04:20:05:37:50: Switching to mode playout-stop
from
stop
2004-08-01 17:47:18.0155 00:04:20:05:37:50 New play mode: playout-stop
2004-08-01 17:47:18.0160 00:04:20:05:37:50: Current playmode: playout-stop
2004-08-01 17:47:18.0163 00:04:20:05:37:50 New play mode: stop
2004-08-01 17:47:18.0169 Stopping and clearing out old chunks for client
00:04:2
0:05:37:50
2004-08-01 17:47:18.0181 00:04:20:05:37:50: Current playmode: stop


Any ideas how to fix this?

R.

--
http://robinbowes.com