View Issue Details

IDProjectCategoryView StatusLast Update
0005082MMW v4Playerpublic2009-05-09 18:02
Reporterpeke Assigned To 
PriorityimmediateSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Version3.1 
Fixed in Version3.1 
Summary0005082: Some FLAC files are not playable and audio is lost on conversion
Description1) I have mixed problems with MM playback on these two files:
http://www.acousence.de/downloads/Mahler6S3demo192k.flac (MM can't play this track)
http://www.acousence.de/downloads/Mahler6S3demo96k.flac (Sometimes it plays sometimes not especially if it is next track to above 192k one)

In case of doing track analyze Tracks 96k for example get playback clicks (best noted on high volume)

2) When FLAC File is converted last audio chunk gets corrupted and not converted
Additional InformationTicket: RGD-375383
TagsNo tags attached.
Fixed in build1222

Activities

peke

2008-12-23 14:26

developer   ~0015791

Can you confirm this issue?

rusty

2008-12-30 16:05

administrator   ~0015868

I found that:
http://www.acousence.de/downloads/Mahler6S3demo192k.flac : Plays fine in MM _until_ I analyzed the volume of that track. After analyzing the volume, the track no longer played using the DS plugin, though it still played with waveout.

http://www.acousence.de/downloads/Mahler6S3demo96k.flac : always played correctly.

Assigning to jiri to have a look at the 192khz file.

jiri

2008-12-30 17:45

administrator   ~0015874

Fixed in build 1206.

rusty

2008-12-31 04:43

administrator   ~0015910

Verified 1206.

peke

2009-01-16 14:16

developer   ~0016261

There is something wrong with FLAC decoder in MM as when Converting FLAC -> WAV Audio Data is not Completely decoded and WAV is missing audio data on the end of file.

I have Also Tested without f_Wave with same result of corrupted Audio Data

Steps to reproduce using Example ZIP from FTP:
Convert FLAC in zip within MediaMonkey and do HEX Compare with A1.WAV where it is clearly seen that Audio Data is Missing before TAG data LIST on end of file

Note: User also supplied BMP that shows data loss in Wave Editor and A1dec.wav that should be the same as newly converted file

jiri

2009-01-17 16:12

administrator   ~0016275

Assigning to Peke to further clarify what exactly doesn't work (i.e. is there really any problem in MM? It is FLAC encoder? Is it FLAC decoder?).

peke

2009-01-31 11:09

developer   ~0016479

There is definitely bug in FLAC Decoder and it is very hard to replicate.
Hopefully this will help to replicate the issue:

Tools to test:
- Latest MediaMonkey
- Latest Flac library http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12675
- FLAC Frontend http://members.home.nl/w.speek/download/FLAC_frontend.zip
- Example test files from http://www.acousence.de/Seiten/digital_cd_demo_en.html all formats are tested and replicable
- HEX Editor that can Compare two files

Steps to reproduce:
1. Create this Folder Stricture:
  - ?:\FLAC Bug
  - ?:\FLAC Bug\Org FLAC
  - ?:\FLAC Bug\MM Decoded
  - ?:\FLAC Bug\FLAC Frontend Decoded
  - ?:\FLAC Bug\MM FLAC Encoded
2. Download Example FLAC files to ?:\FLAC Bug\Org FLAC
3. Using FLAC Frontend Decode Example FLAC Files from ?:\FLAC Bug\Org FLAC to ?:\FLAC Bug\FLAC Frontend Decoded
4. Using MM Decode Example FLAC Files from ?:\FLAC Bug\Org FLAC to ?:\FLAC Bug\MM Decoded
5. NOW If you do HEX file Compare ?:\FLAC Bug\FLAC Frontend Decoded <-> ?:\FLAC Bug\MM Decoded it is easily seen that WAV files Decoded with MediaMonkey have Missing Audio Data at the end

I've done Additional test to exclude confirm if F_WAVE.dll (WAVE Format Plugin) have any related issues with missing Audio Data just to ensure and confirm what exact problem is. The thing I've done is that I deleted F_WAVE.dll from plugins Folder forcing MM not to use it and ensuring that no tag is written in WAV.

Now I repeated steps 4. and 5. which lead to same results that MM decoded FLAC file is missing Audio Data.

To test reverse process I've Encoded WAV files from ?:\FLAC Bug\FLAC Frontend Decoded with MediaMonkey and then Decoded them with FLAC Frontend No Audio Data is Lost, but If I Decode them with MM Audio Data is Lost.

So my final Conclusion is that FLAC Decoder do not Decode last Audio Chunk from FLAC File which results in corrupted Audio Data.

Note: We are talking about milliseconds of Audio Data which can be heard only on Studio, High End Audio and/or in some cases on very high volume. Additionally Enabling MM Crossfader even on 0.5 sec it will mask Data Loss.

jiri

2009-02-03 17:28

administrator   ~0016498

Fixed in build 1222.
 - Now there are all samples preserved, there really were some cut off in the end of FLAC file when decoded.
 - Note that this is completely different issue from the one originally reported here (24 bit FLAC files).

peke

2009-02-09 15:17

developer   ~0016596

Verified in 1222
By me and by User

Jiri,
I'll tie those two together for easier following due the fact both issues are discovered on same files, but you are right it was different issue.