Bug 2990 - dolby digital flac files do not playback gapless
: dolby digital flac files do not playback gapless
Status: CLOSED WORKSFORME
Product: SB 2/3
Classification: Unclassified
Component: Audio
: 29
: PC Windows XP
: P2 minor with 2 votes (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-12 15:18 UTC by Chris Livesey
Modified: 2009-09-08 09:11 UTC (History)
7 users (show)

See Also:
Category: ---


Attachments
48Khz dolby digital flac file (2.71 MB, application/octet-stream)
2006-02-23 14:25 UTC, Chris Livesey
Details
48Khz dolby digital flac file track 2 (1.48 MB, application/octet-stream)
2006-02-23 14:34 UTC, Chris Livesey
Details
AC3 48.0 kHz Gapless Test Files (585.32 KB, application/zip)
2007-03-23 11:32 UTC, Spies Steven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Livesey 2006-02-12 15:18:54 UTC
I first noticed this with some audio that I've ripped from a DVD soundtrack and one or two other live recordings that I have. It's only a very small gap between tracks but it's there nonetheless. Gapless playback works fine with the 44.1Khz files on my squeezebox2 and the 48Khz files I�ve used to test with playback gapless in winamp on the PC.
Comment 1 Blackketter Dean 2006-02-21 14:31:04 UTC
Please try out firmware 35 in tonight's nightly and post your experience.  48k playback should be significantly better.  Please reopen if you the issue remains.

Note that there will be a gap when switching from 44.1 to 48.  Not much we can do about that.
Comment 2 Chris Livesey 2006-02-22 09:39:30 UTC
Hi - I've just tried firmware 35 and unfortunatley the gap remains in my setup. I've tried both types of 48khz files that I have:- 2 channel stereo flac and dolby digital flac.
I can submit a few samples if you need them.
Normall playback is absolutley fine and the gap is less than half a second but I get it on both types of 48khz flac files.
Comment 3 Chris Livesey 2006-02-23 14:25:10 UTC
Created attachment 1151 [details]
48Khz dolby digital flac file

Track 1
Comment 4 Chris Livesey 2006-02-23 14:34:28 UTC
Created attachment 1152 [details]
48Khz dolby digital flac file track 2
Comment 5 Chris Livesey 2006-02-23 14:39:14 UTC
I've uploaded 2 files - both from a live consert rip from a DVD.
They are dolby digital 5.1 flac files so thay will only playback of you hav the digital output connected to a DD amp/receiver.
I have got some normal 48khz stereo flac files but they are much larger (longer tracks).
Let me know if you want the stereo files too....
Comment 6 Blackketter Dean 2006-02-23 19:53:12 UTC
chris: these are not stereo PCM flac files, rather 5.1 encoded files?  For reference, what is doing the dolby digital decoding?  
Comment 7 Chris Livesey 2006-02-24 00:57:00 UTC
I have the squeezebox 2 hooked up to an external Sony Dolby Digital receiver/amp via the optical output. The files playback fine and the amp detects the DD 5.1 encoding and playsback in full surround sound.
Comment 8 Andrea 2006-02-24 13:53:23 UTC
I can confirm this happens with DTS flac files too. 5.1/24 bit/48KHz.
Decoding with an Onkyo DS-797, connected through Coax out.
Comment 9 Chris Livesey 2006-04-11 08:11:27 UTC
Hi,

I just wondered if there was any update on this - are the attachments suitable for testing etc?

Thanks in advance

Chris
Comment 10 Blackketter Dean 2006-04-21 20:12:35 UTC
Thanks, we'll take a look at this in the next major release.  Sorry for the delay.
Comment 11 Chris Owens 2006-05-01 12:09:01 UTC
This bug also occurs when just playing regular uncompressed audio files.  When switching between 44.1KHz and 48KHz data, various unpleasant noises including clicks, attenuated audio, and out-of-tune audio (I assume at a ratio of 44.1/48) can be heard.
Comment 12 Richard Titmuss 2006-06-01 08:46:34 UTC
This bug is related to bug 3303. I think this is fixed in firmware 52, but don't have a dolby digital amp to test with at the moment. This firmware is now in test.
Comment 13 Chris Livesey 2006-06-06 16:12:10 UTC
Hi,

Looks like bug 3303 is fixed in firmware 54 as I've tested with my non dolby digital 48khz files.
However the Dolby Digital encoded files still playback with the gap (Bug 2990) :-(
I'm off on holiday for a couple of weeks now so I won't be able to test for a while....

Thanks

Chris
Comment 14 Blackketter Dean 2006-06-06 16:53:56 UTC
chris to verify fixed.
Comment 15 Chris Owens 2006-06-07 16:56:14 UTC
Ordered a reciever to better test this in the future.
Comment 16 Chris Owens 2006-06-21 10:28:50 UTC
This is at least improved.  I want to do some more testing with my new reciever, though, so I'm moving this bug to a target of 6.5.

There's going to be a new firmware (55) probably tonight in the nightlies.  I encourage anyone who's willing to give it a test and add any new comments you may have.
Comment 17 Chris Livesey 2006-06-30 02:38:57 UTC
Hi,

I've tried firmware 55 and the problem is still there - can anyone else confirm?

Also Chris - do you have the test receiver now?

Cheers

Chris
Comment 18 Chris Owens 2006-06-30 12:15:23 UTC
I got my reciever earlier this week, but I've been snowed under with the 6.3 release.  I spent enough time on it to notice a few issues with it.  If anyone's thinking of getting an Onkyo TX-SR304, they should be aware that it will not play audio from a digital source out the tape monitor or the audio outputs for the "video" output.  :/

Anyway, yep I hear it.  It's a relatively small gap, probably less than 200msec, but certainly enough to annoy.

It's odd that regular flac files play gapless.

I'm guessing what's going on is 1 sample is getting altered.  This wouldn't cause a noticeable problem in straight audio, but an AC3 decoder would notice a problem, and mute the output for the duration of the invalid data (more than one sample, since ac3 is packetized).

Maybe it's something to do with a 48KHz sample rate, since that's the rate of AC3 files.

Nope, 48KHz audio flac files sound good too.  I'll have to make a digital recording and actually compare the values.

Hmm in my digital recording the values are grossly different than the source data.  I did this with 24-bit files not too long ago and they came out bit-perfect.  It looks like 16-bit audio is getting sample-rate-converted somewhere in this chain.  Could be the sound card drivers I updated not too long ago.

I'll work with it some more.
Comment 19 Chris Owens 2006-06-30 12:33:17 UTC
possibly a duplicate of bug 3620
Comment 20 Chris Owens 2006-06-30 12:34:48 UTC
Richard, do you have gear there to make recordings of the digital output and analyze them?  Or do I need to figure out what in my system has gone wrong so I can make a decent recording? :)
Comment 21 Richard Titmuss 2006-07-03 01:54:45 UTC
Chris, can you make a decent recording please :). I now have a digial receiver in my office so I can test against this bug, but don't have the kit to record the digital signal.
Comment 22 Chris Owens 2006-07-03 09:18:20 UTC
That's fine.  I think my little USB digital recording device is performing sample rate conversion on the incoming stream (and invalidating the integrity of the AC3 stream), so I'll hunt up some other device and see if I have the same problem.
Comment 23 Chris Owens 2006-09-08 11:06:54 UTC
I have a fancy new recording doodad to test with, but not much time before the 6.5 release.
Comment 24 Spies Steven 2007-03-23 11:29:37 UTC
Richard, I believe this bug can be closed now. All gapless AC3 and DTS files I have tried have performed flawlessly. However while investigating this bug I noticed that the files originally attached do not appear to be edited with a "frame accurate" editor and thus are not truly gapless. I will attach other files for reference.
Comment 25 Spies Steven 2007-03-23 11:32:30 UTC
Created attachment 1861 [details]
AC3 48.0 kHz Gapless Test Files
Comment 26 Chris Owens 2007-04-17 12:17:05 UTC
Please reopen if you are still experiencing this bug.

If you believe you are seeing this bug, please verify your flac files are created correctly.  If you affect a single bit of the data (which is in the proprietary dolby digital format), the data will no longer be recognized as properly formatted.
Comment 27 James Richardson 2008-05-15 12:58:35 UTC
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1

Please try that version, if you still see the error, then reopen this bug.

To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html