I have an .aac file that I would like to decode to a wav file.
This is what MediInfo shows:
Audio
ID: 2
Format: AAC
Format/Info: Advanced Audio Codec
Format profile: HE-AAC / LC
Codec ID: A_AAC
Duration: 44mn 50s
Channel(s): 2 channels
Channel positions: Front: L R
Sampling rate: 88.2 KHz / 44.1 KHz
Compression mode: Lossy
Default: Yes
Forced: No
I noticed the 2 different sampling rates and it's HE-AAC.
How can I decode this to a wav file?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 14 of 14
Thread
-
-
I noticed the 2 different sampling rates and it's HE-AAC.
1st one is the sample rate the decoder should output
2nd one it the sample rate the content is saved at
btw. where does the 88.2 KHz come from? Seems rather uncommon.users currently on my ignore list: deadrats, Stears555 -
-
foobar2000 should be able to decode it and output a .WAV file. Simple and powerful GUI.
-
@ElHeggunte: You are right, totally forgot about DVD-Audio discs.
users currently on my ignore list: deadrats, Stears555 -
The audio file is one I downloaded, can't say where...
the two different sampling rates are a feature of HE-AAC
1st one is the sample rate the decoder should output
2nd one it the sample rate the content is saved at
The 1st one (88.2 KHz) being what's saved
The 2nd one (44.1 KHz) being what's played back
Anyway, when decoding with FFmpeg like this...
Code:ffmpeg -i filename.aac filename.wav
-
Shouldn't it be the other way around?
-> that's one of the main reasons why he-aac can produce decent output on such low bitrates. (you might want to read up on what he-aac is)
Will it preserve the higher audio quality?
But yes, ffmpeg should produce 88.2kHz output. (assuming ffmpeg supports 88.2kHz output)users currently on my ignore list: deadrats, Stears555 -
OK, I misunderstood.
When using this:
Code:ffmpeg -i filename.aac filename.wav
Format: PCM
Format settings, Endianness: Little
Codec ID: 1
Duration: 44mn 50s
Bit rate mode: Constant
Bit rate: 1 411.2 Kbps
Channel(s): 2 channels
Sampling rate: 44.1 KHz
Bit depth: 16 bits
Stream size: 453 MiB (100%)
I know it's lossy, but I only want to get the best possible quality (all things considered)
When I try to use this:
Code:eac3to input.aac output.wav
Code:AAC, 2.0 channels, 44.1kHz Decoding with DirectShow (Nero Audio Decoder 2)... Getting "Nero Audio Decoder 2" instance failed. Aborted at file position 262144.
-
This is what MediaInfo now shows
Code:Format: PCM Format settings, Endianness: Little Codec ID: 1 Duration: 44mn 50s Bit rate mode: Constant Bit rate: 1 411.2 Kbps Channel(s): 2 channels Sampling rate: 44.1 KHz Bit depth: 16 bits Stream size: 453 MiB (100%)
(you could still tell ffmpeg that you want 88.2kHz output,.. https://www.ffmpeg.org/ffmpeg-all.html#Audio-Options)
No clue, don't use eac3to, but some other user probably can help you with that.users currently on my ignore list: deadrats, Stears555 -
aacDECdrop? It says it's FAAD2-based AAC/MP4 drag'n'drop frontend.
Thoughts? -
I don't think it's quite like that. The audio is sampled at the original rate (88.2k in this case) but the high frequencies are removed. HE-AAC uses spectral band replication which "fakes" the high frequency stuff on playback by creating some sort of guide track to do it, at half the original rate. That'd be the 44.1k part here.
It's supposed to be backwards compatible so a player supporting only LC-AAC can still decode it, ignoring the SBR part, so it'll sound a bit dull as the high frequencies aren't included.
Anyway..... any AAC decoder should be able to decode it properly. To make sure I'm not full of crap I made a similar HE-AAC stream and converted it.
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : 40
Duration : 4mn 49s
Bit rate mode : Variable
Bit rate : 64.4 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 88.2 KHz / 44.1 KHz
Frame rate : 43.066 fps (1024 spf)
I tried to duplicate the problem but no matter what I did I ended up with a 88.2kHz wave file. I converted with ffmpeg and foobar2000 and I also extracted the raw AAC and converted that too, thinking maybe that's the problem, but it was still fine.
A couple of suggestions...... Add -report to the ffmpeg command line and see if the log file it produces sheds any light on the subject. Like this:
ffmpeg -report -i test.aac test.wav
And maybe try putting the raw aac into a container before converting it in case it's not being identified correctly. You can open it with MKVToolNixGUI, select the AAC stream, and under the audio and subtitles tab, change the AAC SBR dropdown box to "yes", then save that as an MKA. Try converting the MKA to a wave file to see if that makes a difference. And check the MKA with MediaInfo to see if it's still reporting the same sample rates.
PS I wouldn't hold my breath trying to get the Nero decoder to decode it. I haven't tried decoding but the Nero encoder won't encode 88.2kHz audio as HE-AAC, only LC-AAC.Last edited by hello_hello; 23rd Jul 2016 at 09:19.
-
When using this:
Code:ffmpeg -report -i "H:\__Audio\S00E00_-_Home.aac" "H:\__Audio\S00E00_-_Home.wav"
Format: PCM
Format settings, Endianness: Little
Codec ID: 1
Duration: 44mn 50s
Bit rate mode: Constant
Bit rate: 1 411.2 Kbps
Channel(s): 2 channels
Sampling rate: 44.1 KHz
Bit depth: 16 bits
Stream size: 453 MiB (100%)
When muxed into .mka container using this:
Code:ffmpeg -report -i "H:\__Audio\S00E00_-_Home.mka" "H:\__Audio\S00E00_-_Home.wav"
Format: PCM
Format settings, Endianness: Little
Format settings, Sign: Signed
Codec ID: 00001000-0000-0100-8000-00AA00389B71
Duration: 44mn 50s
Bit rate mode: Constant
Bit rate: 2 822 Kbps
Channel(s): 2 channels
Channel positions: Front: L R
Sampling rate: 88.2 KHz
Bit depth: 16 bits
Stream size: 905 MiB (100%)
Also, when I play the original file with Kodi connected to my receiver with HDMI, the receiver shows 88.2 kHz. Kodi's OSD also shows 88200 Hz. So, I'm assuming that the decoder in Kodi is decoding the full HE-AAC audio.
Similar Threads
-
Handbrake without FDK-AAC, new FFMPEG AAC encoder viable alternative?
By jaggy in forum Video ConversionReplies: 15Last Post: 27th Apr 2017, 10:31 -
Batch Script Normalize AAC & Convert to Wav
By MrBiggles in forum AudioReplies: 5Last Post: 30th Aug 2015, 11:11 -
Whats the difference between AAC (avcodec) and AAC Passthru in Handbrake?
By Nazomon in forum Newbie / General discussionsReplies: 1Last Post: 13th Dec 2014, 16:49 -
Ripping the H.264 AAC version of a video from youtube
By ROBO731 in forum Video Streaming DownloadingReplies: 10Last Post: 17th Jul 2013, 20:30 -
Which audio setting should I selected in XMedia? AAC or AAC (Faac)
By Greg2041 in forum AudioReplies: 3Last Post: 1st May 2013, 07:17