Bug 4391 - Softsqueeze cannot play certain FLAC files
: Softsqueeze cannot play certain FLAC files
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Softsqueeze
: 6.5.1
: PC Windows XP
: P2 normal with 1 vote (vote)
: ---
Assigned To: Alan Young
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-18 09:30 UTC by Nigel Birch
Modified: 2008-12-18 11:12 UTC (History)
0 users

See Also:
Category: ---


Attachments
Debug output from Softsqueeze v3.0.1 when configured to use Java MP3 Plugin (18.27 KB, text/plain)
2006-10-18 09:31 UTC, Nigel Birch
Details
Debug output from Softsqueeze v3.0.1 when configured to use JLayer (119.55 KB, text/plain)
2006-10-18 09:37 UTC, Nigel Birch
Details
Original problem FLAC (26.4 MB) (26.44 MB, application/octet-stream)
2006-10-18 09:50 UTC, Nigel Birch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nigel Birch 2006-10-18 09:30:38 UTC
This is with SlimServer v6.5.1 - 10386 - Windows XP - EN - cp1252; Perl v5.8.8
MSWin32-x86-multi-thread; MySQL v5.0.22-community-nt.

I have some FLAC files that won't play using Softsqueeze v3.0.1.  After pressing play, the Softsqueeze display show the track info and elapsed time, but no audio appears and the elapsed time stays at 00:00.  The Softsqueeze GUI tends to become unresponsive.

This doesn't affect all FLAC, only some.  I've tried JLayer/MP3 Plugin, and that doesn't make any difference.  They files play okay in Foobar2000 v0.9.4.1.

Strangely, forcing SlimServer to transcode to WAV or MP3 doesn't make any different.  The FLACs still don't play.

I've tried a few decoding/encoding steps to try and find the cause:

Original FLAC  - Does not play
Original FLAC > Remove comments with FB2K  - Does not play
Original FLAC > Convert to WAV with FB2K > Convert to FLAC with FLAC.EXE  - Plays OK
Original FLAC > Convert to WAV with FB2K > Convert to FLAC with FB2K  - Plays OK
Original FLAC > Convert to WAV with FB2K > Convert to FLAC with FB2K > Add comments with FB2K  - Does not play
Original FLAC > Convert to WAV with FB2K > Convert to FLAC with FB2K > Add different comments with FB2K  - Does not play
Original FLAC > Convert to WAV with FB2K > Convert to FLAC with FLAC.EXE > Add comments with FB2K  - Does not play
Original FLAC > Convert to WAV with FB2K > Convert to FLAC with FLAC.EXE & Add comments with METAFLAC  - Does not play

It just looks like any FLAC file made from the problem one won't play.

Thanks.
Comment 1 Nigel Birch 2006-10-18 09:31:48 UTC
Created attachment 1651 [details]
Debug output from Softsqueeze v3.0.1 when configured to use Java MP3 Plugin
Comment 2 Nigel Birch 2006-10-18 09:37:45 UTC
Created attachment 1652 [details]
Debug output from Softsqueeze v3.0.1 when configured to use JLayer
Comment 3 Nigel Birch 2006-10-18 09:50:51 UTC
Created attachment 1653 [details]
Original problem FLAC (26.4 MB)
Comment 4 Chris Owens 2006-10-25 15:52:07 UTC
Do your Squeezeboxes play this FLAC okay, Nigel?
Comment 5 Nigel Birch 2006-10-26 04:22:34 UTC
Yes, the SB2s I have play it fine.
Comment 6 Chris Owens 2006-10-27 16:16:00 UTC
Richard please let me know if there's anything additional I can or should do to help with this one.
Comment 7 Alan Young 2007-12-12 05:32:37 UTC
Looks like it works if we upgrade to jflac 1.2
Comment 8 KDF 2007-12-12 08:28:54 UTC
so, are we calling this fixed at change 15211 then?
Comment 9 Alan Young 2007-12-12 09:36:54 UTC
With change 14762 actually.
Comment 10 Alan Young 2007-12-12 09:39:19 UTC
Woops, wrong bug.  No I want to wait until I have an "official" SoftSqueeze build to test it with. That is likely to take a while, what with other priorities. Anyone prepared to hack up their own SoftSqueeze from change 15211 is welcome to test it too.
Comment 11 Alan Young 2008-01-18 00:08:40 UTC
Fixed with SQ 3.6
Comment 12 Nigel Birch 2008-01-18 01:31:36 UTC
That's great.  I'll test it once a Win32 build of v3.6 is available (on SourceForge?).
Comment 13 Nigel Birch 2008-01-29 04:30:33 UTC
I've re-opened this bug, but feel free to tell me to create a new one.

When playing the comment 3 FLAC with no volume adjustment, the file plays fine with Softsqueeze v3.6.  I do get a "0    AudioDecoder-0] WARN  javasound.verbose  - audioDecoder did not write (0) the same number of bytes as read (16384)" error - does that matter?

However, if I set the volume adjustment for the Softsqueeze player to "Smart gain" (my normal setting), the file doesn't play and a console error is displayed:

8    [AudioMixer-0] WARN  javasound  - audio mixer exception
java.lang.IllegalArgumentException: Requested value 17.360008 exceeds allowable
maximum value 6.0206.
        at javax.sound.sampled.FloatControl.setValue(Unknown Source)
        at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.setValue(Unknown Source)
        at org.titmuss.softsqueeze.audio.AudioMixer.setVolume(AudioMixer.java:198)
        at org.titmuss.softsqueeze.audio.AudioMixer.bufferEvent(AudioMixer.java:639)
        at org.titmuss.softsqueeze.audio.AudioBuffer.read(AudioBuffer.java:445)
        at org.titmuss.softsqueeze.audio.AudioMixer.playSamples(AudioMixer.java:488)
        at org.titmuss.softsqueeze.audio.AudioMixer.run(AudioMixer.java:421)
        at java.lang.Thread.run(Unknown Source)

The track does have large positive RG values (+20.32/+0.105469 for track/peak and + 17.36/+0.202728 for album/peak).

Is the +6.0206 dB gain a sanity limit to avoid clipping?  If so, should Softsqueeze just use the +6.0206 dB maximum gain when the gain is larger than this?

I wonder if this is at all related to bug 5119.  Bug 5119 talks about tracks with positive gain causing clipping, and the need to take the peak again to to account.  Would doing that help this problem?

Thanks.
Comment 14 Alan Young 2008-01-29 05:43:24 UTC
Yes, please file this as a separate bug, as this is quite a different issue.
Comment 15 Nigel Birch 2008-01-29 06:43:54 UTC
I've opened bug 6850 for comment 13.

Thanks for fixing the orginal problem.
Comment 16 Chris Owens 2008-03-07 09:03:35 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.