| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hi, list I'm capturing video/audio using SGDataProc. To determine time difference between audio and video channels i use this code: err = SGGetTimeBase(seqGrab, &sgTimeBase); ... err = SGGetChannelTimeBase(audioChannel, &soundTimeBase); ... TimeRecord vid, aud; GetTimeBaseTime (sgTimeBase, 10000, &vid); GetTimeBaseTime (soundTimeBase, 10000, &aud); timeShift = (double)WideToSInt64(aud.value)/(double)aud.scale - (double)WideToSInt64(vid.value)/(double)vid.scale; In most cases it gives me correct result and I synchronize my movie using SGDataProc TimeValue. But sometimes it seems that I get wrong value. And audio track shifts on 3-5 frames. Can anyone give me suggestions how can I obtain the real delta between TimeValues coming with SGDataProc with video and audio samples? Thanks in advance! |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.