Skip to content
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

M4A/AAC playback makes some weird sounds #4

Open
vladkorotnev opened this issue Nov 9, 2013 · 16 comments
Open

M4A/AAC playback makes some weird sounds #4

vladkorotnev opened this issue Nov 9, 2013 · 16 comments

Comments

@vladkorotnev
Copy link

The m4a decoder makes a lot of high-frequency crackle and bleeping on some files.

Test case: http://vladkorotnev.me/webtunes/player.php?list=74&track=1
Listen to tracks 1 and 2.
Expected behavior: acceptable quality playback.
Resulting behavior: music along with bleeps and cracks around 10kHz and almost missing high frequencies.
The same files sound awesome in QuickTime 7.

The tracks can be downloaded (play a track and then click the right "down arrow" key in the player control display) and played in QuickTime to prove that it's not the files being low-quality.

Great JS plugin otherwise though, enjoyed building with it, thanks Audiocogs!

@devongovett
Copy link
Member

Interesting. I think I hear it, but is there a specific timecode in one of those songs that you year it the most at?

@vladkorotnev
Copy link
Author

Not quite timecodes but still.
Track 1:
00:32~00:35 [slight chirp]
~0:37 [even slighter]

It's 1 AM here so can't turn music on for a long time but I have added track 3 which is a copy of this video: http://www.youtube.com/watch?v=ZK0TvORCnA0 in m4a format.
Compare them, and at about 0:54 just before the main riff comes in you hear these chirps too.

@devongovett
Copy link
Member

OK I'll take a look. Thanks for reporting, and by the way, awesome app!

@vladkorotnev
Copy link
Author

Hehe, thanks, made a small video about it recently. http://www.youtube.com/watch?v=8XF-FwMMBEM
It would be nothing without your code though! Thanks a lot

@devongovett
Copy link
Member

You should add a link to it to https://github.com/audiocogs/aurora.js/wiki/Known-Uses :)

@devongovett
Copy link
Member

After fef4ab2 it sounds a little better, less pops I think, but I still hear some really high pitched overtones sometimes. Still looking.

@vladkorotnev
Copy link
Author

Uh, now i need to figure out how to compile it and test it ^^''''

@mahadevan-k
Copy link

We've been experiencing the same issues on our platform too. I've tried forcing a resampling etc. nothing works.

We use VBR encoding via faac, and if the quality level is anything less than 100, the noise gets worse, at around 70-80 it starts getting impossible to listen to the audio.

Whoever fixes this is god lol

@justinddunlap
Copy link

I also hear high-pitched static, in my case with ADTS-encoded AAC. I can provide sample files if needed.

@mahadevan-k
Copy link

ADTS encoded AAC at our end too. Is this an ADTS specific issue?

@devongovett
Copy link
Member

Sample files would be very useful, thanks.

@justinddunlap
Copy link

Here's an example: http://1drv.ms/1OrjGDf

@devongovett
Copy link
Member

The reason it sounds weird in this case is that the file is encoded as an HE-v2 AAC file, which is not currently supported by AAC.js. The SBR (spectral band replication) data is being ignored currently, which accounts for the high pitched overtones you hear. See #1 for the open issue about HE-AAC support, and read more about it on Wikipedia.

@mahadevan-k
Copy link

Is there are similar problem with VBR as well?

On Sun, Apr 19, 2015 at 7:42 AM, Devon Govett notifications@github.com
wrote:

The reason it sounds weird in this case is that the file is encoded as an
HE-v2 AAC file, which is not currently supported by AAC.js. The SBR (spectral
band replication http://en.wikipedia.org/wiki/Spectral_band_replication)
data is being ignored currently, which accounts for the high pitched
overtones you hear. See #1 #1
for the open issue about HE-AAC support, and read more about it on
Wikipedia
http://en.wikipedia.org/wiki/High-Efficiency_Advanced_Audio_Coding.


Reply to this email directly or view it on GitHub
#4 (comment).

@devongovett
Copy link
Member

@bitonator do you have a sample file?

@devongovett
Copy link
Member

FYI work on SBR happening here: #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants