Horrible Lag time in Preview Window

Locked
Sharvie
Joined: Mon May 21, 2007 9:11 pm
Org Profile

Horrible Lag time in Preview Window

Post by Sharvie » Wed Oct 10, 2007 8:03 pm

I’m using the vob > d2v > avs > vfapi method to get my clips into Vegas v6.

They load into Vegas wonderfully. Everything works super fast, scrubbing, cutting, moving. The only place I seem to have problems is with normal, simple transitions. Though I’m going to assume anything more complicated will only make the lag time worse.

My preview window is set to “Preview (auto)” though I’ve tried all the settings and haven’t noticed a noticeable change.

I’ve looked at several threads that suggest the Dynamic RAM preview as a solution and that’s been a bust as well. It either lags even worse then regular viewing or depending on how many times I’ve tried it, will speed through the first section only to come to a complete stop on the second section of the transition for a few seconds before starting again.

I’ve gone into the options and tried to up the Dynamic RAM preview max. I’ve gone up as high as it will let me and it’s still giving me fits.

My system is:
Windows XP Pro
Pentium ® 4 CPU 3.40 GHz
3.40 GHZ, 2.00 GB of RAM
Using USB2 to get from External Seagate 750 GB Hard Drive

My code is:

Code: Select all

MPEG2Source("J:\Video Projects\Animal I Have Become\AIHB.d2v", cpu=6)
Crop(8,0,-8,-0)
LanczosResize(640,480) 
ConvertToRGB32()
I’ve also tried with a cropped and not cropped script to see if maybe even just adding that to the script bogged it down. It didn’t make a change.

I’ve also tried turning off my anti-virus. No change.

I’ve read here that using actual lossless codecs like Huffy and Lagarith have less lag time than the vfapi/Avisynth way. Unfortunately I want to have access to all my DVDs at once rather than make buttloads of huge file size but tiny content clips. Because I can load as many vob(s) into DGIndex as I want, my goal was to have one avs script and therefore one vfapi file per video project.

If I have to switch to Huffy or Lagarith that sourcing/clipping method won’t work.

I’ve also tried the “bait and switch” technique and it works, but I’m really hesitant to use it. For one thing, since I’m using fake avi(s), the “low quality” clip is huge in comparison to my “high quality” vfapi fakes. There is just something seriously wrong with that! *lol*

Also, it took me a long time to get the vfapi/Avisynth system to work and for me to understand it, so I’d really like to use it. However, if it came down to it I’d prefer the B&S style to using Huffy or Lagarith. It works better with my clipping/sourcing style. However my concern with that is one 43 minute clip came out to 2.3 GB in size. If I start combining several episodes and/or seasons into one avs script, as I intended, these mjpegs are going to be off the charts! Which I imagine will present their own problems. I'd have to adjust, much like the note on the guide suggests of splitting up and using a few avs scripts instead of one.

One of my main reasons for using the avs/vfapi method was to keep the amount of rendering and extra huge files down. I intended to keep the vobs as the largest and only video content filled files. With B&S and/or Huffy and Lagarith this isn’t possible.

Another interesting tid-bit. When I used the PIC Mjepg 3 Codec it worked wonderfully with transitions. However, again the Dynamic Ram preview was wacky. It zoomed through the first part of the selected section and, as if the cursor needed time to catch up to the too speedy player, the player sat in a frame (the last of the selected section) until the cursor moved to it. Again, I adjusted the amount in the options to little effect.

What I’m hoping is that I just have something set wrong. Something that’s telling the Dynamic RAM preview to not work correctly. It seems to work for so many people and I have no clue why it’s not working for me. I have the RAM, I turned off everything I could think of. I’m at a loss. I would love to keep using the avs/vfapi method…as it took me forever to figure it out!

Any help would be appreciated!

User avatar
BasharOfTheAges
Just zis guy, you know?
Joined: Tue Sep 14, 2004 11:32 pm
Status: Breathing
Location: Merrimack, NH
Org Profile

Post by BasharOfTheAges » Wed Oct 10, 2007 9:14 pm

How much video are we talking in that one script? Once it gets up there in size you're going to start to have a lot of problems.

You do realize that you're asking the script to essentially dereference as many pointers as you have cuts on the time line simultaneously across a huge file and get all that data to you through a USB connection at proper speeds, right? That is asking a bit much for USB.
Anime Boston Fan Creations Coordinator (2019-2023)
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |

Sharvie
Joined: Mon May 21, 2007 9:11 pm
Org Profile

Post by Sharvie » Wed Oct 10, 2007 10:22 pm

Well the original file was 1.81 GB worth of vob(s).

Wanting to see if either a) moving the source to the C drive would help or b) lowering how much data I was trying to reference would make a difference, I copied one vob file sized 249 MB and created a duplicate on the c drive and on both the c and external created another d2v > avs> vfapi file.

Code: Select all

MPEG2Source("C:\Vid Tests\VTS_03_CHAPTER_01_1.d2v", cpu=6)
ConvertToRGB32()
This much smaller file still had the same problem on both the external and the C drive.

Wanting to test all the variables I took out the cpu=6 and while the dynamic RAM preview was still completely wonky, sometimes going unbelievably slow to super speedy, the real time preview was actually a lot better, though still not good enough that I wouldn't bang my head on my desk.

Any clue what's going on?

Also thanks for the help!

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Wed Oct 10, 2007 10:51 pm

What happens if you use <b>SetMemoryMax()</b> to increase the amount of RAM your script can use? For such a huge script (I assume you're only using the one) and given that you have 2 GB of RAM, you can probably give it 64 MB (or maybe even more) safely.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Sharvie
Joined: Mon May 21, 2007 9:11 pm
Org Profile

Post by Sharvie » Thu Oct 11, 2007 12:24 am

I remember looking up this several months ago and because I downloaded the amvapp I had the default set in a folder.

From the guide:
In the amvapp there is a file in the avisynth filters folder called setmemorymax.avsi and in it is one line which reads:

SetMemoryMax(64)
However since you mentioned it I went looking and I can't find it now! My computer crashed awhile ago and my husband rebuilt it with the new amvapp download. I guess this isn't in the new one. How do I create it or download it so that I won't need to add this to all my scripts?

Because I did some tests and 64 seemed to be the best out of a trial between 32, 64, and 128, though not by a wide margin.

Now here is the kicker....while I was doing these tests I was also seeing if the dynamic RAM preview behaved differently with the new memory max settings. And while it still jerked forward and slowed down I accidentally played it again after the first time around and it flowed flawlessly! I think this is a case of simply not knowing how this feature functioned, since I've never used it before. And I have the freaking book! It doesn't mention that this "build dynamic RAM preview" is actually rendering....this explains the jerkiness and swinging quickly forward. And that proper viewing is done after it's done its thing. Like wow. How dumb do I feel?! I guess this is why the function is called "build dynamic RAM preview". *head desk*

However, I feel the problem was aggravated by the memory defaults not being set. So at this point I'm hoping someone could explain how to input that into the filters folder.

And thanks so much for all the help!

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Thu Oct 11, 2007 5:44 am

Sharvie wrote:I remember looking up this several months ago and because I downloaded the amvapp I had the default set in a folder.

From the guide:
In the amvapp there is a file in the avisynth filters folder called setmemorymax.avsi and in it is one line which reads:

SetMemoryMax(64)
However since you mentioned it I went looking and I can't find it now! My computer crashed awhile ago and my husband rebuilt it with the new amvapp download. I guess this isn't in the new one. How do I create it or download it so that I won't need to add this to all my scripts?
If you run the Premiere AVISynth GUI program and set the SetMemoryMax value there, it will create the AVSI file if it doesn't already exist.

Or you could just do it yourself in Notepad (or your basic text editor of choice).
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Sharvie
Joined: Mon May 21, 2007 9:11 pm
Org Profile

Post by Sharvie » Thu Oct 11, 2007 6:31 am

I didn't install that program, least I don't think I did, as I don't have Premiere. I'm not sure even if I did install it, if it would work because of my lack of Premiere.

Though for the mean time I changed the DGIndex template code to include the extra stuff I want.

So now the code looks like this:

Code: Select all

SetMemoryMax(64)
MPEG2Source("J:\Video Projects\Animal I Have Become\AIHB.d2v")
ConvertToRGB32()
Is there another way to create the avsi file? Are the txt and html files in the Avisynth Filters > Documentation folder the avsi files? I'm just not sure creating a txt file and adding it there would work. Do I need to rename it with .avsi or keep it .txt. I just want to be sure as I have no idea how to test it.

Thanks again!

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Thu Oct 11, 2007 5:03 pm

You make an .AVSI file the same way you make an .AVS file, with Notepad or whatever other barebones text editor you like; the only difference is what extension you save it with.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
guy07
Joined: Mon Sep 08, 2003 1:28 pm
Status: Back in beard.
Location: T.O.
Org Profile

Post by guy07 » Fri Oct 12, 2007 9:06 pm

Hey, i've got a similar problem. kind of ...i'm running vobs off my HD (int.) and i don't exactly have a slow computer,
3ghz, 1.2gb of ram ....but my video card is only 128. I've tried playing around with the preview ram amount, putting it all the way up to 800 but it still lags the same. Any ideas? Other then buy a new video card?

User avatar
guy07
Joined: Mon Sep 08, 2003 1:28 pm
Status: Back in beard.
Location: T.O.
Org Profile

Post by guy07 » Fri Oct 12, 2007 9:08 pm

This is straight through vegas, no avis or anything involved.

Locked

Return to “Video Editing Software”