aacplus frame alignment problems

 ̄綄美尐妖づ 提交于 2019-12-11 14:04:07

问题


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?


回答1:


Most likely you are cuting frames somewhere in the middle and that will most probably totaly confuse any decoder. It may be that some decoders will parse through your broken frame in order to find the next frame header, but I wouldn't bet on it, decoders are not that robust.

So, you need to parse a frame, which isn't that easy, you are in fact building a whole new decoder... I would take a look at FAAD, open source decoder, maybe that helps.

Also, best place to ask this kind of questions is www.hydrogenaudio.org/forums/.

Regs, Danijel Domazet




回答2:


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



来源:https://stackoverflow.com/questions/3063537/aacplus-frame-alignment-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!