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)

Yoda 11-07-2002 11:38 AM

What does line 2 of the .avs file say?

Jellygoose 11-07-2002 01:15 PM

Quote:

Originally Posted by Yoda
What does line 2 of the .avs file say?

That's the EnsureVBRMP3Sync () line...

Yoda 11-07-2002 02:57 PM

Quote:

That's the EnsureVBRMP3Sync () line...
I don't use that function.

-Yoda

Jellygoose 11-07-2002 04:19 PM

Quote:

Originally Posted by Yoda
I don't use that function.

-Yoda

:P Me neither... kwag told me to use it because when i tried to encode DivX Movie with the VBR MP3 Audio the audio was like 4 seconds behind the video...

Guess I'll give it a shot without that line... thanks a lot for your help yoda...

BtW: I liked your fighting Action in Episode II... ;)

J-Wo 02-09-2003 01:17 PM

Arrgh! I'm still have problems with audio sync when converting an Xvid of Sweet Home Alabama with VBR MP3 audio. When I stumbled upon this thread about EnsureVBRMP3Sync I thought I found the solution, but it seems I'm having the same problems as Jellygoose! I've tried every combination possible, from loading the AVS into vdub and extracting the wav and the mux'ing vid+aud at the end, to letting Tmpgenc do all the muxing and encoding. Then I tried this:

Kwag:
Quote:

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.
But even when I load my avs directly into WMP v8 my audio is still earlier than the video! But the original avi file plays perfectly in sync. What is wrong with me?!?! :x :cry: Here is my current AVS file:

Code:

LoadPlugin("d:\program files\avisynth2\plugins\MPEG2DEC2.dll")
LoadPlugin("d:\program files\avisynth2\plugins\LegalClip.dll")
LoadPlugin("d:\program files\avisynth2\plugins\Blockbuster.dll")
LoadPlugin("d:\program files\avisynth2\plugins\FluxSmooth.dll")
LoadPlugin("d:\program files\avisynth2\plugins\Sampler.dll")
LoadPlugin("d:\program files\avisynth2\plugins\GripFit_Preview.dll")
LoadPlugin("d:\program files\avisynth2\plugins\decomblegacy.dll")
LoadPlugin("d:\program files\avisynth2\plugins\dustv5.dll")
LoadPlugin("d:\program files\avisynth2\plugins\temporalcleanerold.dll")
LoadPlugin("d:\program files\avisynth2\plugins\convolution3d.dll")

avisource("E:\Movies\Sweet.Home.Albama.DVDRip.XViD-ViTE\sha-xvid.avi")
EnsureVBRMP3Sync()
Trim( 0, 0 )
LegalClip()
#FieldDeinterlace()
GripCrop(528, 480, overscan=2)
GripSize()
SpaceDust()
TemporalCleaner()
#Blockbuster(method="noise", variance=.3, seed=1)
GripBorders()
LegalClip()

My last thought is perhaps I don't have the right codecs. I've tried removing all codecs and packs (e.g. nimo) and then installing only the ones I need. But I was having trouble finding a good MP3 audio codec. Does anyone have a link to one, and also the recommended Xvid codec? There seem to be so many... Thanks!

kwag 02-09-2003 01:41 PM

Quote:

Originally Posted by J-Wo

But even when I load my avs directly into WMP v8 my audio is still earlier than the video! But the original avi file plays perfectly in sync. What is wrong with me?!?! :x :cry:

Try a script like this and see if it plays out of sync in WMP. It shouldn't. 8O

Code:

LoadPlugin("d:\program files\avisynth2\plugins\MPEG2DEC2.dll")
avisource("E:\Movies\Sweet.Home.Albama.DVDRip.XViD-ViTE\sha-xvid.avi")
EnsureVBRMP3Sync()

Just to remove the possibilities of a filter interaction in your machine.

-kwag

J-Wo 02-10-2003 09:32 AM

Quote:

Try a script like this and see if it plays out of sync in WMP. It shouldn't. 8O
Well this is weird, it DIDN'T work! But fear not, I finally figured out what to do. I loaded the same template I posted earlier into Tmpgenc as video source, then for audio source I loaded the original AVI file. But the big thing I had to learn was I needed to turn on Directshow Multimedia File Reader in the VFAPI settings. The reason this took me forever (like we're talking weeks) to get to work is that there's a post here in these forums on how to optimize tmpgenc for KVCDs, and they say to have all VFAPI plugins turned off *except* ReadAVS.dll. 8O Maybe there should be a note somewhere about this!

Now here's my new question. I used SCMPX as an external audio encoder, and I was wondering if the result would be the same as encoding the audio seperately with Besweet or Headache. I kinda like letting Tmpgenc handle the audio because it certainly saves a lot of steps (e.g. extracting audio, encoding audio, muxing vid+aud) and HD space for temp files. It it just seems like the process is faster with SCMPX (I could be wrong though).

kwag 02-10-2003 10:17 AM

Quote:

Originally Posted by J-Wo

Now here's my new question. I used SCMPX as an external audio encoder, and using this I was able to preserve the origianl 48khz audio without downsampling, and my final MPEG sounds fine. However if I use Besweet or Headache, I always HAVE to downsample to 44khz, otherwise the final muxed video sounds low in pitch and out of sync. Any idea what's going on here???

Do you mean that the audio done with SCMPX at 48Khz does play correctly on your standalone, but the same audio at 48Khz done with HeadAC3he doesn't 8O :?:

-kwag

J-Wo 02-10-2003 10:25 AM

Quote:

Do you mean that the audio done with SCMPX at 48Khz does play correctly on your standalone, but the same audio at 48Khz done with HeadAC3he doesn't 8O :?:
Ack my apologies. The file plays fine on my computer but when I burned it and played it on my player the sound WAS low and out of sync. So I guess my player can't handle 48khz audio. I just edited my msg in the hopes that no one would reply so quickly, but guess I was wrong! :oops:

francks 02-11-2003 03:48 AM

I have the same exact problem with that same movie and the audio is like 3 s before the video. I had tried just about everyhing except the VFAPI settings. Which I did last night but I still get the sync problem. The funny part is that the orignal movie is 1:48:51 in lenght but the wav extracted by besweet is 1:48:48. Could that be the problem and why would that happen?


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