Hi guys, I wanted to record video coming from network into avi file, and wrote some code. The file is created but it is unsynchronized (by almost 2 second) and it is annoying. I am using avimuxer. I also used buffer for the audio source hoping to reduce the time difference. The following is the source and destination codes (the command line version of my code). Is there anything that I should consider to avoid this problem. Please help me. If you think that I should use other file formats and video muxer, please advice me.