PDA

View Full Version : openSong with duration 0



Andreas Huster
2005-02-25, 22:59
I'm trying to play a .wav file from slimserver running on RedHat 9 to
Windows Media player on another computer. This fails with the following
entry in the log:

2005-02-25 21:54:39.2391 openSong on:
file:///home/huster/music/Mozart/test.wav
2005-02-25 21:54:39.2407 Got /home/huster/music/Mozart/test.wav from file
url file:///home/huster/music/Mozart/test.wav
2005-02-25 21:54:39.2422 extracted: /home/huster/music/Mozart/test.wav from
file:///home/huster/music/Mozart/test.wav
2005-02-25 21:54:39.2445 openSong: getting duration 0, size 0, endian and
offset for file:///home/huster/music/Mozart/test.wav
2005-02-25 21:54:39.2454 openSong: not bothering opening file with zero
size or duration

If I first convert the file to test.mp3, the slimserver will play it
without a hitch.

I noticed that in the Song Info screen on the web interface, the slimserver
already knows that the .mp3 file has a valid duration and the .wav file has
duration 0.

So, is this a problem with my .wav file or is it a problem with my slim
server? How can I debug this?

Thanks.

--Andreas

kdf
2005-02-25, 23:16
Quoting Andreas Huster <huster (AT) gmail (DOT) com>:

> I'm trying to play a .wav file from slimserver running on RedHat 9 to
> Windows Media player on another computer. This fails with the following
> entry in the log:
>
> 2005-02-25 21:54:39.2391 openSong on:
> file:///home/huster/music/Mozart/test.wav
> 2005-02-25 21:54:39.2407 Got /home/huster/music/Mozart/test.wav from file
> url file:///home/huster/music/Mozart/test.wav
> 2005-02-25 21:54:39.2422 extracted: /home/huster/music/Mozart/test.wav from
> file:///home/huster/music/Mozart/test.wav
> 2005-02-25 21:54:39.2445 openSong: getting duration 0, size 0, endian and
> offset for file:///home/huster/music/Mozart/test.wav
> 2005-02-25 21:54:39.2454 openSong: not bothering opening file with zero
> size or duration
>
> If I first convert the file to test.mp3, the slimserver will play it
> without a hitch.
>
> I noticed that in the Song Info screen on the web interface, the slimserver
> already knows that the .mp3 file has a valid duration and the .wav file has
> duration 0.
>
> So, is this a problem with my .wav file or is it a problem with my slim
> server? How can I debug this?

Do you have other WAV files that work? What version of the server are you
using? if you are using the 6.0 alpha, and importing your data from itunes,
musicmagic or moodlogic, a duration of zero is a possible problem. updating to
a nightly build should solve that particular issue.

-kdf

Andreas Huster
2005-02-26, 23:18
> Do you have other WAV files that work? What version of the server are you
> using? if you are using the 6.0 alpha, and importing your data from
> itunes, musicmagic or moodlogic, a duration of zero is a possible
> problem. updating to a nightly build should solve that particular issue.
>
> -kdf

Thanks! It looks like the WAV file wasn't good. Converting the WAV file
to MP3 added the missing duration information. Converting it back to WAV
retained it and I was able to play that file. So as you suggested, it was
a problem with the WAV file and I'll have to find a better way to rip my
CDs.

--Andreas