Another really odd AviSynth/.avs woe.....

The old Video Software Help forum, left visible as an archive.

Another really odd AviSynth/.avs woe.....

Postby y2kwizard » Wed Aug 28, 2002 6:57 pm

Hey, all. Well, I've been messin' around with my .avs files and schtuff, and I've been trying to have the .avs point both to my .wav file and my .d2v file, and I think I've figured it out.

HOWEVER, I'm coming upon a vERY VERY odd problem. When I play my .avs file in Windows Media Player, everything seems fine. The audio and video play with perfect clarity and such. HOWEVER, over time the audio and video become out of sync.

And it's a really weird type of out of sync, too. Here's the deal. In the middle of my 3 minute .avs file, a clip of an interview is shown w/ the person being interviewed talking. If I go into Windows Media Player and skip right to that section, the audio will match the video for a second or so, but then the audio starts getting ahead of the video. And if I play the .avs all the way through, the audio and video are WAY out of sync by the time that the interview even starts. I've included my 4 lines of my .avs file here to see if anyone can see what stupid error I've made:

LoadPlugin("C:\DVDrip\MPEG2DEC.DLL")
audio=WAVsource("C:\DVDrip\ActualRip\navy.WAV")
video=MPEG2Source("C:\DVDrip\ActualRip\navy.d2v")
video=ConvertToRGB(video)
return AudioDub(video,audio)

Anyone know what's up with this? Is it just the media player or is it something totally different. I know that the AMV guys don't really care too much about the audio, but it's possible you may someday. Thanks a ton!!
User avatar
y2kwizard
 
Joined: 18 Aug 2002
Location: Memphis, TN

Postby AbsoluteDestiny » Wed Aug 28, 2002 7:00 pm

It's not out of sync, really. What is happening is that the dvd footage isnt getting decoded fast enough, but media player ignores this and just keeps on playing the audio at normal speed (kinda)

If you were to make an mpg using this file it would come out fine, its just that mpeg2dec stuff isnt that good for realtime playback.
User avatar
AbsoluteDestiny
 
Joined: 15 Aug 2001
Location: Oxford, UK

Postby klinky » Wed Aug 28, 2002 7:03 pm

I think you've come to the problem known as AVISynth files rarely play back in realtime :D . Unless you have a monther computer then you're going to have problemos! I would suggest you take your file into Vdub and see about exporting AVIs from it. If this is a DVD rip situation then you would probably just want to goto Vdub and have the Audio source set to "Wav File" and import it that way, having the AVISynth file just hold the video info.


Also I would probably remove the ConvertRGB line, since I don't think it's needed. I've played AVS files in Media Player without that line in there. Who knows maybe it's converting to RGB twice or something :?:

But truely I haven't had AVS file play back properly in Media Player.



~klinky
User avatar
klinky
 
Joined: 23 Jul 2001
Location: Cookie College...

Postby y2kwizard » Wed Aug 28, 2002 7:09 pm

Thanks a lot for your advice. I have used VDub to export an AVI without sound, so next I'll try it w/ sound to see how it works. Soulds like it'll work.

BOY THAT INVERSE TELECINING REALLY WORKS
User avatar
y2kwizard
 
Joined: 18 Aug 2002
Location: Memphis, TN

Postby mofisto » Thu Aug 29, 2002 10:54 am

The other thing you could do is if you have more then one vob file, create a single d2v file for each of the vobs, doing the same for the audio. Then use alignedsplice which should synch up the audio when using audio dub. Or if you are even more adept, you could use a trim or crop statements to define regions to break it up.

Of course the AVS scripter I am working one will be able to do all these thigns, the problem I am running into now is that my wrists get sore typing on this tiny little laptop keyboard, and to process all the avs commands it takes a crap load of typing.
- "People disappear all the time. Why don't they reappear? FEAR"
User avatar
mofisto
 
Joined: 01 May 2001
Location: Waverly, IA


Return to Video Software Help Archive

Who is online

Users browsing this forum: No registered users and 0 guests