HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: chrizoo on 2012-06-15 12:43:42

Title: SBR detection/playback
Post by: chrizoo on 2012-06-15 12:43:42
Hi. I need to solve two - somewhat related - questions regarding detection and playback of AAC files with SBR:

(1) How can I verify whether an AAC file uses SBR and whether the SBR flag is set in the container ?

According to https://trac.bunkus.org/ticket/757 (https://trac.bunkus.org/ticket/757) the raw AAC audio stream does not communicate whether or not it has SBR, instead this info is stored as a flag in its container. I manually set/unset the SBR flag in (in this case) the Matroska container, but this did not change the MediaInfo output at all, so either un/setting the SBR flag did not work OR MediaInfo ignores the container's SBR flag and directly analyzes the raw AAC audio stream similarly to what the coder of MKVtoolnix claims his tool does:

Quote
mkvmerge detects whether or not the source contains SBR. In the case of raw AAC files this may be wrong because the container itself doesn't provide a hint. Therefore mkvmerge employs heuristics (it guesses).


In the first case how can I set/unset the SBR flag?
In the second case, what tool can tell me the container's SBR flag status ?


(2) How can I acertain whether or not the player takes account of and uses SBR ?

I wanted to create a file which claims to have SBR but actually doesn't OR a file which doesn't have SBR but erroneously claims to have it
-> in order to compare playback of such file to the source file (same raw audio content but with correct SBR flag). I don't have fine hearing, but I thought the difference must be so obvious, that I could hear it. Unfortunately I wasn't able to produce such a file, as can be seen in the link above.

Can someone help me create a scenario, where I can hear the wrong playback and compare it to how the playback should sound like (when correctly using SBR) ?

Many thanks
Title: SBR detection/playback
Post by: pdq on 2012-06-15 13:39:34
I wanted to create a file which claims to have SBR but actually doesn't OR a file which doesn't have SBR but erroneously claims to have it

Oops - you said the same thing twice, but we know what you meant to say.
Title: SBR detection/playback
Post by: chrizoo on 2012-06-15 13:56:46
thanks.
correction: "... create a file which erroneously claims not to have SBR but actually does OR a file which doesn't have SBR but claims otherwise"