fdk-aac icon indicating copy to clipboard operation
fdk-aac copied to clipboard

About seek when decode

Open jiemojiemo opened this issue 5 years ago • 1 comments

Thanks for your great work. Does fdk-aac support the seek when decode? I try to implement seek operation but the result is really confused. Thank you.

jiemojiemo avatar Nov 25 '19 03:11 jiemojiemo

It should definitely be possible to decode packets from differing locations in a file using fdk-aac. To seek, you need to use the library you are using for reading files (e.g. m4a) properly. I'm not familiar with how to seek using the file reading helpers within fdk-aac itself. For something like ADTS, one has to scan forward until the next sync marker to be able to restart decoding after a seek.

mstorsjo avatar Nov 26 '19 11:11 mstorsjo