directshowmpegaac+

aacplus frame alignment problems


I have an application that rips aac+ audio streams, cutting them at every regular interval (i.e. 10 minutes). Sometimes files are playable OK, but sometimes, Windows Media Player just closes when trying to build DirectShow graph.

I am using Orban aacplus plugin, and it works under directshow. When I play this file with winamp or vlc, that have it's own aacplus decoding engine, it works fine. However, I need it to work under directshow.

Anyway, problematic file is here:

http://www.videophill.com/files/00272-20100418100002.aac

I know that there is frame alignment error and I confirmed my theory by filling first 256 bytes with 0x00, tried to play it again, and it worked.

Is there any info on aacplus frames available on the web, so I can try to find the beginning of the frame manually and cut the rest off?


Solution

  • Best stuff I could find is here:

    http://www.wiki.multimedia.cx/index.php?title=ADTS

    http://www.hydrogenaudio.org/forums/lofiversion/index.php/t64890.html

    and I came from here:

    http://www.wiki.multimedia.cx/index.php?title=Understanding_AAC