New issue
Advanced search Search tips

Issue 669545 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 76391
Owner:
Closed: Nov 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Use FLAC to encode HRTF database

Project Member Reported by rtoy@chromium.org, Nov 29 2016

Issue description

Chrome now appears to support FLAC-encoded audio.  We should consider using this to encode the HRTF database since FLAC is lossless so that the database would be unchanged from the current data.

This could shrink the database by 2, maybe?
 
The number of samples is a critical aspect of IR. So we'll have to investigate if there are any additional frames being added after the encoding. Decoding also might introduce some artifacts in terms of number of samples.


Comment 2 by rtoy@chromium.org, Nov 29 2016

Why would a lossless encoding introduce extra stuff?  That doesn't seem very lossless to me.

But we'll have to test to be sure, I guess.  I guess that also means a layout test to verify that the FLAC-encoded version matches the original WAV-encoded version exactly.
Adding few frames at the head and the tail for the sake of en/decoding is not losing something as far as you get the audible content correctly. That's the thing - we have to find out what 'lossless' actually means here.

Comment 4 by rtoy@chromium.org, Nov 29 2016

Owner: rtoy@chromium.org
Status: Started (was: Available)
For the record, I used avconv to convert the file to flac and then convert back to wav.  The resulting wav file is slightly longer, but the content is identical, according to octave.
So the additional frames after? or before? Also avconv might do something different from FFMPEG.

Comment 6 by rtoy@chromium.org, Nov 29 2016

The actual file on disk is slightly longer.  The actual audio data is exactly the same length. I did not look, but I think the WAV header is slightly longer.

Comment 7 by rtoy@chromium.org, Nov 29 2016

Ok. I stripped off the WAV header from each file and the result is that both files have exactly the same length and data.  avconv put in some additional header fields.

Comment 8 by rtoy@chromium.org, Nov 29 2016

Mergedinto: 76391
Status: Duplicate (was: Started)

Sign in to add a comment