Log in

View Full Version : AV sync problems with DVR-MS frameserved using AviSynth


ilovejedd
3rd August 2006, 20:48
I recently bought an ATI HDTV Wonder and I just installed it yesterday. I was testing it and used WatchHDTV v1.9 to watch and capture an over the air HDTV broadcast. It was saved as a .dvr-ms file which I converted to a standard MPEG2 file using DVR2MPG v1.2.

I then ran the MPEG2 file on DGMPGDec v1.47:
dgindex.exe -IF=[test.mpg] -IA=6 -FO=0 -YR=1 -TN=1 -OM=3 -DRC=2 -DSD=0 -OF=[test] -EXIT

test.avs:
video = MPEG2source("test.d2v").separatefields().selecteven().PointResize(960,540)
audio = WavSource("test T01 3_2ch 384Kbps 48KHz.wav").AmplifydB(5,5)
AudioDub(video,audio)

When I try to play test.avs using Media Player Classic or Windows Media Player 6.4, the video is noticeably lagging. Initially, I was using LanczosResize(960,540) so I switched to BilinearResize and eventually PointResize to lessen CPU load. The original .dvr-ms file and converted MPEG2 file both play with no A/V sync problems on Windows Media Player 10. I was watching the clip during broadcast while recording and I didn't notice any problems either. The clip has not been edited, no scenes have been cut, etc. Any help would be greatly appreciated. Thank you!

All the HDTV capture and conversion utilities I used were downloaded from here (http://watchhdtv.net/download.aspx). I'm using AviSynth 2.56.

Clip details:
1920x1080i 29.97fps
AC3/2ch 384 kbps 48KHz

PC specs:
AMD Sempron 3200 1.8GHz
2x512MB PC3200 DDR400 SDRAM
NVIDIA Geforce 6200TC 128MB (http://www.newegg.com/product/product.asp?item=N82E16814121214)

Pookie
3rd August 2006, 22:29
Does you video clip have commercials in it? The different audio bit rate of commercials can mess up the sync quite a bit. If you do have commercials, cut them out with Mpeg2Cut2 - nice little app. Easy to find via Googling. You can also run the audio through AC3Fix before you convert it to WAV, which can help with sync errors.

Finally, consider encoding/transcoding only the video with AviSynth and using an external (Besweet, etc) app for audio processing. Then mux the two parts back together with VirtualDub or similar app.

ilovejedd
3rd August 2006, 23:27
No commercials. It's just a 6-minute clip I captured more to test the HDTV recording functions, etc. As of the moment, I'm not trying to convert it to AVI/MKV/OGM just yet. I'm just trying to preview partially processed files. I'll probably do some more captures and then do test conversions on the weekend.

Thanks for the pointers!