Bug 4311 - White noise playing 48/24 FLACs decoded by server
: White noise playing 48/24 FLACs decoded by server
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.5.0
: PC Windows XP
: P4 minor with 1 vote (vote)
: Future
Assigned To: Alan Young
:
Depends on: 9997 10000
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-06 00:57 UTC by Adrian Hall
Modified: 2009-06-11 11:46 UTC (History)
6 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Hall 2006-10-06 00:57:54 UTC
Possibly related to bug #4026

Firmware 64, SS 6.5

48/24 WAVs play fine, 48/24 FLACs play fine streaming as FLAC using internal decoder, 48/24 FLACs decoded on server and streamed as WAV are played as white noise.
Comment 1 Chris Owens 2006-10-16 14:15:29 UTC
I couldn't seem to reproduce this, Adrian.  Have you had a chance to see if this still happens in the nightly builds since bug 4026 was fixed?
Comment 2 Adrian Hall 2006-10-16 14:51:07 UTC
I haven't tried any nightly builds - I'm just on the last official release which should be post bug 4026.

If SB internally decodes the FLACs o.k. that suggests (to me) the firmware is fine, it's just where the server decodes which would seem to be either how SS is 'communicating' with FLAC.exe or the stream from FLAC.exe is somehow being changed.  

I could upload one of the files (~6MB) I've been trying to play.  The same files play fine in Winamp with FLAC plugin.
Comment 3 Chris Owens 2006-10-25 14:05:03 UTC
Sure, I'll take a file upload if you would.  Anything to help me try to repro!
Comment 4 Adrian Hall 2006-10-28 05:17:00 UTC
http://www.zen93281.zen.co.uk/files/03%20-%20Stupid%20Dream.flac

Ripped from a DVD-A (video_ts folder) using DVD Audio Extractor - source was 2 channel 48/24 so no conversion performed.

Tried FLAC creation using FLAC Frontend and DBPowerAmp - same results with each.  Also tried various compression levels, this file was created with DBPowerAmp(FLAC 1.1.2a) and compression 8.

In all cases the SB itself will play but the server decoding sends white noise.  I have also had white noise streaming a non-PCM WAV, is it possible in decoding a 48/24 FLAC the server is straming non-PCM?
Comment 5 Chris Owens 2006-11-03 14:11:03 UTC
Okay, I can reproduce it on the file you uploaded, even in the current 7.0 build.  On my "File Types" page, I unchecked all the flac options except for the last one (FLAC WAV flac), went to browse music folder, and clicked 'play' on the file.

As an additional experiment, I tried decoding the file with flac.exe from the command line, and was (strangely) able to play the resulting output (.wav) with no problem.

Dan please let me know if there is more I can do to test this for you.
Comment 6 Blackketter Dean 2007-12-29 07:20:59 UTC
will look at this post-7.0
Comment 7 Themis 2008-10-03 13:37:30 UTC
This bug combined to bug #4774 results in a impossibility of transcoding FLAC to WAV on the server at all, even when you store 24/48 files on another format (WMA, for instance).
Is there any previsional date on  fixing this ?
Comment 8 James Richardson 2008-10-20 08:42:04 UTC
Steven, can you have a look at reproducing this with 7.3?
Comment 9 Spies Steven 2008-11-13 12:57:07 UTC
Unfortunately this issue is still present in 7.3.

Alan, would you have time to take a look at this before the release of 7.3?
Comment 10 Alan Young 2008-11-14 01:16:14 UTC
The problem is that the system assumes that all WAV generated by transcoders will be 44100/16/2/little-endian. I do not see a straightforward way to fix this and also am not sure that there is much point. Under what circumstances would one want to stream WAV in preference to FLAC?

The flac program used for this transcoding does not have the capability to resample (rate) or change sample-size. Switching to sox would be an option, but this would require an updated version of sox, with flac support (bug 9997). If you have your own version of sox with the necessary support then you could do this. Another option would be to have the firmware decode the WAV header and use the parameters from it (bug 10000), but I cannot see that being high priority.
Comment 11 Spies Steven 2009-01-05 12:47:27 UTC
*** Bug 10518 has been marked as a duplicate of this bug. ***
Comment 12 Alan Young 2009-06-09 02:13:06 UTC
I really cannot see the actual problem here. Repeating the question from comment #10, under what circumstances would one want to stream WAV in preference to FLAC?
Comment 13 Dan Evans 2009-06-11 09:57:28 UTC
Alan-- if I understand you're question right, the answer is: if a user wishes to listen to pure WAV rather than transcoding to FLAC we need to provide that solution.  That is not an uncommon request from some power users who believe their WAV files are of superior quality.  Whether they are right or wrong is beside the point-- our hardware and software promise native playback of WAV files.  Forcing a conversion to FLAC will be an unacceptable change to those users.
Comment 14 Alan Young 2009-06-11 11:46:45 UTC
That is not my understanding of the original question.

"48/24 WAVs play fine, 48/24 FLACs play fine streaming as FLAC using internal decoder, 48/24 FLACs decoded on server and streamed as WAV are played as white noise."

That is, the problem only occurs if server-side decoding of the FLAC is used. Streaming a WAV file works fine. Streaming a FLAC file works fine.