Apple's afconvert creates m4a files with offset

Discussion in 'samples' started by fiction, May 18, 2020.

  1. fiction

    fiction Audiosexual

    Joined:
    Jun 21, 2011
    Messages:
    1,893
    Likes Received:
    688
    Hi,
    has anyone worked with the command line "afconvert" utility to compress WAV or AIFF to AAC/MPEG4 audio?
    I've been using OGG Vorbis mainly and never had any phase issues.
    The m4a audio files sound good, also confirmed by Hydrogenaudio's blind tests but...

    The files encoded with afconvert though have about 1100 samples silence at the beginning of the encoded file.
    Does that sound familiar to anyone?

    What's the fix?

    Thank you!
     
    • Interesting Interesting x 1
    • List
  2.  
  3. junh1024

    junh1024 Rock Star

    Joined:
    Jul 28, 2011
    Messages:
    1,395
    Likes Received:
    432
    vorbis has phase issues at (really) low bitrates

    try qAAC instead. Or maybe it's a problem with your AAC decoder.
     
    Last edited: May 18, 2020
  4. fiction

    fiction Audiosexual

    Joined:
    Jun 21, 2011
    Messages:
    1,893
    Likes Received:
    688
    I guess so. Shouldn't happen. I'll try a different version and if all fails, fall back to qaac.
    Maybe nobody cared because in 99.9% of the cases, people use it for songs, not samples.
     
  5. fiction

    fiction Audiosexual

    Joined:
    Jun 21, 2011
    Messages:
    1,893
    Likes Received:
    688
    Update, in case anyone runs into similar issues:
    In fact, every AAC encoder introduces an offset in the encoded audio file.
    It's called "priming" and the length of silence at the beginning depends on the encoder and the sample rate, for example.
    Encoders usually include information about the offset in the file header and it's up to the decoder or player to evaluate this information.
    I had opened my AAC-encoded files with an older version of Ocenaudio which does not evaluate this information and shows some silence at the beginning of the encoded file that's not present in the source WAV file.
    If you load the mp4 audio file in a program or app that's built correctly, it will skip that offset.
     
Loading...
Similar Threads - Apple's afconvert creates Forum Date
Apple's 2023 January Surprise Mac / Hackintosh Jan 17, 2023
Apple's Switch from Intel Computer Hardware May 16, 2019
Steinberg released Cubase for Apple's iWatch Software News Apr 30, 2015
Loading...