digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   TMPGEnc: MPG/AVI to KVCD has video/audio sync problems (http://www.digitalfaq.com/archives/encode/6625-tmpgenc-mpg-avi.html)

radunn 11-10-2003 08:33 PM

TMPGEnc: MPG/AVI to KVCD has video/audio sync problems
 
Hello,

I am a new user of KVCD codec(s). I'm trying to encode mpg2 files with KVCD template s; kvcd-352x240-_NTSCFilm-Plus.mcf/KSVC-352x240-_NTSC_mcf. The original video is caputured VHS transferred to the hard drive.

The problem with both kvcd templates is that a video/audio sync gap of about 1 second is evident throughout the video; the video occuring faster. Could it be the TMPGEnc environmental settings I'm using are wrong? I've heard 2 different sources; one saying to use only ReadAVS.dll and another source saying the following settings are essential:
AVI VFW compatiblity reader 4
Directshow mulimedia . . . 3
CRI Sofde MPEG decoder 2
Cyberlink MPEG-2 decoder 2
Microsoft mpeg-1 decoder 2
wave file reader 2
tmpgenc project file reader 2.x 2
quicktime movie reader 0
avi2(OpenDML) file reader -1
bmp/ppm/tga/jpg file reader -2

I was told that the listed above are required for "every format" except for Xvid (another set of Env settings req.)

Video playback results of the KVCD on my dvd player (Philips 724) are acceptable; just the audio is not in sync. Any leads/suggestions as to steps/measures to eliminate this problem will be appreciated..

In advance, thanks

kwag 11-10-2003 08:44 PM

Hi radunn,

What program did you use to encode your audio :?:
Also, make sure you encoded your audio at 44.1Khz and not at 48Khz.
That could be the problem.

-kwag

radunn 11-10-2003 10:07 PM

The audio was not encoded. Checking the format in Virtualdub, it is 44khz stereo, 224Kbps Layer II.

kwag 11-10-2003 10:15 PM

I don't think I follow you :!:
You encoded a KVCD mpeg file. What did you use to encode the .MP2 audio :?:
Did you use tmpeg's internal audio encoder, or did you use an external audio encoder like HeadAC3he :?:

If you are encoding an MPEG-2 file, the best way is to create a .d2v project file with DVD2AVI, and encode the video stream only. Then, extract the audio with Vdub (using full processing mode), and mux it.
Or is this what you already did, where the audio was already encoded as .mp2 in your capture :?:

Edit: Ok, I re-read your last post. If the audio is indeed .mp2 in your MPEG-2 file, create your .d2v with DVD2AVI, and "Demux" your audio with DVD2AVI. This way, you should have the original .mp2 extracted and ready to be muxed with your new encoded video.

-kwag

radunn 11-10-2003 11:39 PM

Sorry; I'm encoding a MPEG2 file into a KVCD. The MPEG file audio is encoded as MPEG 1 Layer 2, 224kbps, 44100 - stereo. In other words, I'm going from *.mpg(svcd) to *.mpg(kvcd). Should the svcd/mpg be converted to *.avi first??

I am not not ripping the audio as a seperate file in Virtualdub before . I'm simply Frame Serving the MPG (virtualdub) to TMPGEnc.
P
erhaps u can structure "what it is I should do." I basically want CDRs/RWs of VHS tapes and a few webcam AVIs encoded with KVCD or SKVCD etc. Thanks for your support.

kwag 11-11-2003 12:06 AM

Quote:

Originally Posted by radunn
In other words, I'm going from *.mpg(svcd) to *.mpg(kvcd). Should the svcd/mpg be converted to *.avi first??

No :!:
Create a .d2v project from your MPEG-2 file, so you can use an AviSynth script to encode your video. Check the forum, and read the "Optimal Script" section.
Quote:


I am not not ripping the audio as a seperate file in Virtualdub before . I'm simply Frame Serving the MPG (virtualdub) to TMPGEnc.
That way, you won't gain compression and quality, because you are not encoding the "KVCD way" :D, which is to pre-process your source with filters, etc., as stated above.
Quote:

Perhaps u can structure "what it is I should do." I basically want CDRs/RWs of VHS tapes and a few webcam AVIs encoded with KVCD or SKVCD etc. Thanks for your support.
Read about AviSynth and the available pre-processing features it gives you. http://www.avisynth.org

-kwag

radunn 11-11-2003 03:51 AM

OK, I was under the impression that all I needed was Virtualdub and TMPGEnc to reencode via KVCD. Is AviSynth required? I will follow your advice and read up about it at the forum; as I'm determined to learn :!:

I am not not ripping the audio as a seperate file in Virtualdub before . I'm simply Frame Serving the MPG (virtualdub) to TMPGEnc.

[/quote]
That way, you won't gain compression and quality, because you are not encoding the "KVCD way" , which is to pre-process your source with filters, etc., as stated above.

Ok, so tell me; I've been doing it wrong? :evil

Dialhot 11-11-2003 06:39 AM

Note: I never did with MPEG2 but only with MPEG1 but I ALWAYS had synch problem when frameserving from vdub to Tmpgenc.

Remember that vdub is a tool desiged for AVI and the mpeg1/mpeg2 support was added after, because people complain about it.

DVD2AVI and avisynth is the better way.

radunn 11-11-2003 04:34 PM

Not that I'm lazy or anything (I'm not cuz I'll spend hrs doing ths simpliest of projects, until it is learned) but AviSynth looks very "techie"; are there downloadable scripts for etc.?
Quote:

Remember that vdub is a tool desiged for AVI and the mpeg1/mpeg2 support was added after, because people complain about it.
DVD2AVI and avisynth is the better way
DVD2AVI handles mpeg1/2? Again, thanks (work is ahead of me) :o

Dialhot 11-11-2003 04:48 PM

Avisynth is not so difficult. You can use it for doing amazing things, but you can use it also jut as a frameserver. Exactly as vdub in fact.

See there :

http://www.avisynth.org/index.php?page=YourFirstScript

kwag 11-12-2003 01:31 AM

Quote:

Originally Posted by radunn
are there downloadable scripts for etc.?

Yes. After you read on the link that dialhot gave you, check here:
http://www.kvcd.net/forum/viewtopic.php?t=3483

-kwag


All times are GMT -5. The time now is 09:21 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.