Quantcast TMPGEnc Produces Errors on Audio VBR Conversion? - digitalFAQ.com Forums [Archives]
  #1  
11-05-2002, 12:33 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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??
__________________
j3llyG0053
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-06-2002, 08:16 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3  
11-06-2002, 09:25 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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.

-kwag
Reply With Quote
  #4  
11-06-2002, 10:35 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
11-06-2002, 10:39 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #6  
11-06-2002, 11:31 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Guys I'll give it a try in a few minutes but it sounds good!

__________________
j3llyG0053
Reply With Quote
  #7  
11-06-2002, 11:51 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts

Doesn't work...

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

Is it my MPEG2DEC.dll ??
__________________
j3llyG0053
Reply With Quote
  #8  
11-06-2002, 12:00 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #9  
11-06-2002, 12:14 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, now there's no problem loading the script anymore but...

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

__________________
j3llyG0053
Reply With Quote
  #10  
11-06-2002, 12:17 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #11  
11-06-2002, 12:25 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
I know it should be... it's not in sync... neither in WMP nor in VirtualDub...

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

what could it be?
__________________
j3llyG0053
Reply With Quote
  #12  
11-06-2002, 12:48 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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...
__________________
j3llyG0053
Reply With Quote
  #13  
11-06-2002, 12:57 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #14  
11-06-2002, 01:05 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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...
__________________
j3llyG0053
Reply With Quote
  #15  
11-06-2002, 01:09 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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?
__________________
j3llyG0053
Reply With Quote
  #16  
11-06-2002, 01:36 PM
Yoda Yoda is offline
Free Member
 
Join Date: Apr 2002
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
May the code force be with you
Reply With Quote
  #17  
11-06-2002, 04:09 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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...
__________________
j3llyG0053
Reply With Quote
  #18  
11-06-2002, 04:30 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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 ?
__________________
j3llyG0053
Reply With Quote
  #19  
11-06-2002, 05:02 PM
Yoda Yoda is offline
Free Member
 
Join Date: Apr 2002
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
May the code force be with you
Reply With Quote
  #20  
11-07-2002, 11:24 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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)

What is that again? well at least something changed... any ideas?
__________________
j3llyG0053
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD2SVCD: No Color Conversion in TMPGEnc produces unsupported files ragrost Video Encoding and Conversion 14 09-13-2004 07:40 AM
BBMpeg: errors muxing mp2 audio with m1v movie Clessy Video Encoding and Conversion 0 01-20-2004 10:33 PM
TMPGenc errors and Avisynth plugin errors? mbbrinker Video Encoding and Conversion 13 12-10-2003 05:03 AM
Audio Sync errors - In trouble again it seems Drisanna Video Encoding and Conversion 13 11-09-2003 05:22 AM
TMPGEnc: Kvcd audio sync problem on pal to ntsc conversion DawnOfTheDuke Video Encoding and Conversion 2 05-30-2003 04:43 PM

Thread Tools



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