Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SCAudioFillBuffer Multitracks




On Sep 21, 2006, at 1:42 AM, Siegfried Hand wrote:

Hi, i have a problem with SCAudioFillBuffer func when there is more than 1 audio track in a movie.

For exemple :

 

I have 1 audio track wiche is 5.1 h264 format, no probleme the ASBD have 6 tracks and no problems for decompressing with SCAudioFillBuffer.

But if i have two phisical tracks in the movie, like 1 track 5.1 + an other track 5.1, the ASBD give me 12 tracks (that’s ok), but SCAudioFillBuffer failed (-50) at the first call.

This is exactly the same if it’s 2 stereo or mono tracks.


Could you feed the same multitrack source movie into the scaudiocompress sample from the dts.apple.com website, and see if you still get a failure.  Are you using MovieAudioExtraction to get the audio from the movie?  If so, you'd only have 6 source channels, since like channel descriptions would get mixed together by MovieAudioExtraction into a summary L,R,C,LFE...etc.

-Brad Ford
QuickTime Engineering

 

I create the audio buffer list like this :

 

m_pAudioBufferList = (AudioBufferList*) calloc(1, offsetof(AudioBufferList, mBuffers[m_Asbd.mChannelsPerFrame]));

m_pAudioBufferList->mNumberBuffers = m_Asbd.mChannelsPerFrame;

 

for (bufNumber = 0; bufNumber < m_pAudioBufferList->mNumberBuffers; bufNumber++)

{

            m_pAudioBufferList->mBuffers[bufNumber].mNumberChannels    = 1;

            m_pAudioBufferList->mBuffers[bufNumber].mDataByteSize         = nFramesToExtract * m_Asbd.mBytesPerFrame;

            m_pAudioBufferList->mBuffers[bufNumber].mData                      = malloc(m_pAudioBufferList->mBuffers[bufNumber].mDataByteSize);

}

 

Hope  you can help

 

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >SCAudioFillBuffer Multitracks (From: "Siegfried Hand" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.