Hello, I searched for an answer, but found nothing. So I'm asking both support and the community. I have a DM644x ARM with DSP chip. I have been using the encoder with simply writting the output to an AAC for a while now and this works fine. What I now need to do is Mux this audio with the video. I'm using FFMPEG to do the MP4 file creation for me. I believe I have FFMPEG setup correctly. Now as for our encoding function that calls the AUDENC_process function, I am sending it 4096 bytes of raw data (1024 * 2 channels * 2 bytes per sample) and getting back about 400 bytes of data. FFMPEG wants more encoded bytes per packet than 400. Attempts to fix this... 1) Loop twice on the encode function to fill the input buffer to FFMPEG. This seems to work as for accepting the data and putting it into the file. But when I go to play it back, there is no sound. I'm thinking the encoded data is two packets and thus FFMPEG thinks it is one big one and when we go to play it back, it is a mess with hidden embedded packets. 2) Set the input buffers to the encoder to 2 and fill those with raw data to be encoded as one bigger packet output packets from the DSP. This is what I really want to make work. But when I do, I get a -2 error code on the AUDENC_process call. So here is a big question...can the TI AAC encoder use multiple input buffers to give me one bigger output buffer? On page 39 of the AAC_LC_Encoder_DM644x_UserGuide.pdf, it states "Number of input buffer required is 1". Does this mean that at least one or only one? 3) Give more raw data to the encoder (from 4096 to 8192) . This doesn't change the output size. The size stays around 400 bytes (350 - 450). Attempt 2 is programmatically cooler, but attempt 3 would get me there too. Can someone help me out with 2 or 3 so that I can get a one output from the DSP of over the ~400 bytes that I now get? Thanks for your help in advance. Cheers, Pete
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
