-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
investigate why some encoding test cases are failing #67
Comments
From #66 (comment): The fq tool by @wader has been invaluable to investigate the cause of diffs between input (decoding) and output (encoding) FLAC files. To investigate a mismatch between input FLAC files and corresponding FLAC files produced by encode, do as follows.
binary diff (using vbindiff) between input and output FLAC filesfq analysis of input FILE (source of truth)fq d -d flac testdata/59996.flac fq analysis of output FILE (produce by
|
From #66 (comment): --input (orig): testdata/59996.flac
++output (encode): /tmp/got.flac
residual: (0b-0000000000000000011111100101101) -16173
residual: (0b-0000000000000000011101101010011) -15187
residual: (0b00000000000000000111101011001001) 31433
-residual: (0b-0000000000000000001110111110011) -7667
+residual: (0b-0000000000000000001110111110010) -7666
-residual: (0b00000000000000000110001000010010) 25106
+residual: (0b00000000000000000110001000010001) 25105
-residual: (0b00000000000000000010001110110100) 9140
+residual: (0b00000000000000000010001110110101) 9141
-residual: (0b-0000000000000000110000000101110) -24622
+residual: (0b-0000000000000000110000000110000) -24624
-residual: (0b00000000000000000001000011000000) 4288
+residual: (0b00000000000000000001000011000010) 4290
-residual: (0b00000000000000000110101101001001) 27465
+residual: (0b00000000000000000110101101000110) 27462
-residual: (0b-0000000000000000111100011100001) -30945
+residual: (0b-0000000000000000111100011011110) -30942
-residual: (0b00000000000000000111111110100011) 32675
+residual: (0b00000000000000000111111110100000) 32672
-residual: (0b-0000000000000000101000111001011) -20939
+residual: (0b-0000000000000000101000111001001) -20937
-residual: (0b-0000000000000000011011001011101) -13917
+residual: (0b-0000000000000000011011001011110) -13918
residual: (0b00000000000000001000100101110011) 35187
residual: (0b-0000000000000001101011111001001) -55241 There seem to be a small diff in the residual between the original input FLAC file and the encoded output FLAC file. Still not sure why. Anyone who may have an idea? : ) |
Fixed by 70d4ace. |
The #66 PR adds support for LPC encoding of audio samples (and thus resolving #35).
While many test cases pass for round-trip decoding/encoding of FLAC files, producing bit-by-bit identical input and output files, there are still a lot of test cases that produce different output files (during encoding) for a given input file.
This issue tracks the investigation of why these test cases are failing, and also calls for help from the community to join us in the investigation.
Cheerful regards,
Henry & Robin
The text was updated successfully, but these errors were encountered: