Core AAC encoder and sampling rate issue #448
Replies: 3 comments 2 replies
-
Hi Alan, you already reported this in an email. Didn't you get my response? I can reproduce the issue here using the Core Audio Codec files from iTunes 12.1. This appears to be caused by a memory leak in the High Efficiency profile encoder on Apple's side, so unfortunately there is nothing I can do about it. The memory leak causes the codec to use more and more memory during encoding and at some point it will exceed either the amount of available RAM or the 32 bit limit of 2 GB per process and crash the application. When using a newer version of the Core Audio Codec, the issue goes away, but unfortunately that's no option on XP, as there is no newer version for it. Using the Sample Rate Converter in fre:ac to change to a different sample rate before feeding the samples to the encoder should be a viable work-around. Alternatively, you could use the Low Complexity profile instead of the High Efficiency one. For bit rates above 64 kbps total (so 32 kbps per channel for Stereo), the Low Complexity profile is recommended for best quality anyway. As another alternative, you should be able to use the FDK-AAC encoder instead of the Core Audio one. |
Beta Was this translation helpful? Give feedback.
-
Thanks, your email went to spam and I have found it now. I use a low bitrate for most audiobooks, which are single channel, one narrator, no music. The profile I use is 24kbps per channel. (Would like to have a single channel option.) |
Beta Was this translation helpful? Give feedback.
-
I do that, but the resulting M4B is still stereo, according to MediaInfo. Info for the M4B file discussed above:
But I also see here that the sampling rate is reported as 16.0 KHz , when as above it was converted to 22.05. So maybe the media info isn't accurate? I guess AAC uses something like joint stereo in MP3, so there may not be much overhead with that and actual mono when both channels are identical. |
Beta Was this translation helpful? Give feedback.
-
I often make Audiobook M4B files from sets of MP3 files.
I use the Core AAC encoder, from Windows iTunes 12.1.
Recently I found one set of MP3 files that every time I tried this, freac would proceed until it had processed about 2 hours of files, then abort. Most books are over 8 hours.
It wasn't a bad file. If I put them in a different order, it would crash on a different files, but at about the same total duration.
If I converted to MP3s at a different bitrate, that had no problem.
I have made a few dozen audiobook M4Bs now, and never had this issue.
I checked the media info and eventually noticed that the MP3s had a sampling rate of 16kHz, which is unusual. But plays fine everywhere.
So in the freac config I added I added the Sample Rate Converter and set it to change the rate to 22.05 kHz.
Now the creation of the M4B completes. Perhaps a bit slower, but not a problem.
I then changed the sample rate setting to 16kHz. I loaded a set of MP3s that had previously converted to M4B and now it also crashed after processing a couple of hours.
So apparently Core, at least the version I have, has a problem with 16kHz sampling.
Though it can convert short 16kHz sets, it crashes on longer ones.
Beta Was this translation helpful? Give feedback.
All reactions