Hi everyone
I test AV sync at DM365
but there are mis sync problem.
I found that audio time stamp / video time stamp and system timestamp is all mismatch
test method is here
1. Audio time : sampling rate is 8Khz (ADC is tlv23ac), sample size 1024 (so 7.825 time capure at every 1sec)
a. I add audio time stamp to 11520 (90000 tick)
b. I get time by gettimeofday and convert to mili second
c. I caculate (a - b *90) as time goes
d. result is 400 mili differ at 1 day
(this time , just audio capture, not video capture, video display, audio encoding )
2. System time : I just use ntpclient
result is 2 sec differ at 1 day (not use RTC)
(this time , no audio/video capture, no encoding, not use RTC)
3. Video time : same method use (10 fps)
a. I add video time stamp to 9000 (90000 tick)
b. I get time by gettimeofday and convert to mili second
c. I caculate (a - b *90) as time goes
d. result is 4000 mili differ at 1 day
more strange is that difference is depend on system status (specialy DMA copy)
If dma copy is used (for video out) . difference is more(about 10 times) happend.
anyone help me ? or how to av sync ?