I try to save a video with audio and save it as an uncompressed avi file. The graph is as you can see in the picture. The problem is that the sound recording is ~500ms behind the video. It doesn't matter which sources I have. What can I do to have video and audio in sync?
Asked
Active
Viewed 777 times
0
-
You can try to play with AVI Mux filter's properties, namely the IConfigInterleaving::put_Interleaving. You can test it first in graph builder through the AVI Mux property page, to see if it makes any difference. – VuVirt Mar 02 '17 at 21:59
1 Answers
0
Default audio capture buffer is pretty large and is about 500 ms in length. You start getting the data once the buffer is filled and hence the lag. Large buffers might be okay for some scenarios and are not good for other. You can use IAMBufferNegotiation
interface to adjust the buffering.
See related (you will see 500 ms lag is a typical complaint):