First of all, we must know if A/V is synchronized. Usually some stream (e.g. AC3) add a A/V delay.
Second, you must check that stream sampling rate. The sampling rate must be 44.1 kHz (careful to the stream's sampling rate; some DVD rip have 48 kHz, and need to be downsampled to 44.1 kHz).
You can downsample or synchronize, or convert if needed, the audio streams with the very good (and free!) HeadAC3he.
Quote:I have the audio and video i want to put them together in one file
Do you have a MPG of an AVI?
1) You have an AVI If you hava A/V in synch, the best one for AVIs is VirtuslDubMod. The audio should be (better) MP3 CBR . If the audio is MP3 VBR it will cause sync error if you trasfform AVI --> MPG and a warning will appear. If all is OK (or you simply want an AVI that will never be converted to MPG), simply open the movie, slick Stream___Stream List__Add and Add the MP3 stream I just speaked of.
Then set Video___Direct Stream Copy (so the video fill be the same) and do File__Save (F7).
2) You have an MPG You need to have the stream in MP2 44.1 kHz 224 kbps .
Simply open the MPG with TMPGenc, do File__MPEG Tools___Simple Multiplex. After that select the video and the sudio stream. Select the file output name than go!
If the A/V are NOT in sync you might add a delay with (the usual) HeadAC3he. But you need to find 'by ear' the delay. This can be seen only from the DVD ripping .TXT output.