digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   TMPGEnc produces errors on Audio VBR Conversion? (http://www.digitalfaq.com/archives/encode/1499-tmpgenc-produces-errors.html)

Jellygoose 11-05-2002 12:33 PM

TMPGEnc produces errors on Audio VBR Conversion?
 
Alright here's my problem... don't know if anyone can help me with this...

I have several pre-encoded DivX Avi DVD-Rips, which I encoded with a VBR MP3 audio... So far...
Now I wanna re-encode them as a VCD, but TMPGEnc is giving me a hard time... no problem with the video but :

1. TMPGEnc produces errors whenever i try to open the AVI file for the
audio source...

After that I decompressed the audio with Virtual Dub and saved it as a Wav File.

2. TMPGEnc opens the wave file, but audio starts for example 4 seconds too early. so Video is not in sync with the audio...


I know it has something to do with the Variable Bitrate for audio, but shouldn't it be in sync after i decompressed it??

Boulder 11-06-2002 08:16 AM

If you are using Avisynth v2.06, try the function "EnsureVBRMP3Sync()". It has worked well on my encodes.

This is how I've done my encodes:

I put the line EnsureVBRMP3Sync() right after the line where the AVI file is loaded. Then open the avs script in VirtualDub, select 'full processing mode' for the audio and save as WAV.

Then I edit the script and disable audio by editing the AVISource line so that it says AVISource("c:\temp\capture.avi", false).

Then I load the script in TMPGEnc, put the WAV as audio and it works fine. I usually encode the audio with BeSweet and mux the files afterwards, but it will work like this as well.

kwag 11-06-2002 09:25 AM

Hi Boulder,

You can also do this:

AviSource("c:\WhereEverYourAviPathIs\movie.avi")
EnsureVBRMP3Sync()
Trim( 0, 0 )

The Trim( 0, 0 ) is a dummy trim, which ensures sync on the complete avi. Now there's no need to extract the audio with Vdub. Just open TMPEG and open this .avs as video and audio source and process with all your favorite filters added. :wink:

-kwag

Boulder 11-06-2002 10:35 AM

Hi Kwag,

that's true. The main reason why I've extracted the audio in VDub is that I'll be able to encode it via BeSweet and get the volume normalized. Your script will be at least easier to use :wink:

kwag 11-06-2002 10:39 AM

Hey Boulder,

You can use SCMPX as an external audio encoder in TMPEG. The results will be the same ( or better ) than if you had encoded the audio with BeSweet. Grab it here: http://www.din.or.jp/~ch3/scmpx_e.html ;)

-kwag

Jellygoose 11-06-2002 11:31 AM

Thanks Guys I'll give it a try in a few minutes but it sounds good!

;)

Jellygoose 11-06-2002 11:51 AM

:?
Doesn't work...

TMPGEnc doesn't load the avs script anymore :
"Script Error : There is no function named "EnsureVBRMP3Sync"

Is it my MPEG2DEC.dll ??

kwag 11-06-2002 12:00 PM

Quote:

Originally Posted by Jellygoose
:?
Doesn't work...

TMPGEnc doesn't load the avs script anymore :
"Script Error : There is no function named "EnsureVBRMP3Sync"

Is it my MPEG2DEC.dll ??

You must get AviSynth 2.0.6. Get it here: http://sourceforge.net/projects/avisynth2

-kwag

Jellygoose 11-06-2002 12:14 PM

Ok, now there's no problem loading the script anymore but...

audio still starts too early... makes me go crazy...

:oops:

kwag 11-06-2002 12:17 PM

If you're encoding to MPEG-1, remember to playback on WMP. Not on WinDVD or PowerDVD. For MPEG-2 then you can use WinDVD. WinDVD doesn't like MPEG-1 VBR. Try loading your .avs directly with WMP. It should play and the audio and video should be in sync.

-kwag

Jellygoose 11-06-2002 12:25 PM

I know it should be... :cry: it's not in sync... neither in WMP nor in VirtualDub...

I'm sure i spelled it right (triple-checked...)

what could it be?

Jellygoose 11-06-2002 12:48 PM

well... could it be my DivX Codecs maybe??
I installed the Nimo Codec Pack, and not the DivX Bundle from divx.com ...

When i started VirtualDub first it told me that i was using hacked drivers and that this might lead to errors...

muaddib 11-06-2002 12:57 PM

Could be that your audio needs a bigger initial delay.
Try to extract the WAV as told, and use headac3he to encode to mp2, but before you start, add the delay manually in the "delay box" right under "source file". I never had to do that, so I don't know if there is an easier way to find the right delay, besides trial and error.

Jellygoose 11-06-2002 01:05 PM

I tried that before but that didn't fix the problem because later the audio got out of sync again... there must be some other solution to it, because i got 2 dvd rips with VBR audio and the "EnsureVBRMP3Sync" function didn't change anything in either of them...
the audio of the DivX file is perfectly in sync by the way...

Jellygoose 11-06-2002 01:09 PM

I just got an idea, might be stupid though...
couldn't i just "record" the audio of the avi file somehow? is there a problem that just records the sounds you play on your computer and puts it into a PCM Wav file?

Yoda 11-06-2002 01:36 PM

I use to have that same problem. I had to uninstall everything and start over to get the audio to sync. Seems to be a problem with the avi codecs. Try uninstalling codecs and software then install DVD2SVCD. This will load all the codecs. Try encoding to see if the audio is in sync then if it is, install the divx codecs. There may also be a priority issue with TMPGenc. Look at the environment settings and move the huffyuv codec to a higher priority.

-Yoda

Jellygoose 11-06-2002 04:09 PM

Hi Yoda...

I don't think it's the Environmental Setting... I don't even have the huffyuv codec, plus the problem with audio out of sync is also in Virtual Dub...
I'll try a couple of things with the codecs and see if one of them works... i downloaded the DivX Bundle, and the standard Media Player Codecs...

Jellygoose 11-06-2002 04:30 PM

I dpn't really understand how you got rid of the problem yoda... what do you mean uninstall "everything"? and what did you install after that? just DVD2SVCD ?

Yoda 11-06-2002 05:02 PM

Uninstall Divx and any other codecs you can. Install DVD2SVCD. This will give you all the files you need and will install the needed codecs. Then try the program. It has a check to either rip DVD or use AVI for the input. Read the forum here in KVCD.net on DVD2SVCD. Once you have a successful encoded movie then install Divx for whatever you need it for. This should tell you if Divx is interferring with your encodes.

-Yoda

Jellygoose 11-07-2002 11:24 AM

Hi Yoda!

Thanks for helping me with this but... I took the steps you suggested, and indeed something changed... Now again TMPGEnc and WMP give me the error:

"ACM failed to suggest a compatible PCM format"
(C:\Movies\Movie.avs, line 2)

8O What is that again? well at least something changed... any ideas?


All times are GMT -5. The time now is 03:09 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.