#1  
04-28-2023, 06:52 AM
joonas joonas is offline
Free Member
 
Join Date: Oct 2019
Posts: 38
Thanked 0 Times in 0 Posts
Hello

Is it possible to speed up Avisynth rendering in some way? I am currently using Virtualdub with 5-8 fps which would make up to 12 hours with 1,5 hour home video.

My rendering workflows are based on Ryzen 7 5th gen and Intel I5 10th gen processors with 16GB ram both.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-28-2023, 08:55 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 90
Thanked 21 Times in 19 Posts
a. faster hardware
b. optimizing the script you use
Reply With Quote
  #3  
04-28-2023, 09:22 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,786
Thanked 2,496 Times in 2,122 Posts
Quote:
Originally Posted by Selur View Post
a. faster hardware
b. optimizing the script you use
^ This.

Some scripts allow multithreading via the MT mode, but glitches too often happen. It depends on Avisynth version, filter, filter version, etc. For example, x86 Avisynth, with QTGMC, MT modes, would create glitch and green frames. (Use x64 QTGMC, no issues, and faster even that x86 with MT.)

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #4  
04-28-2023, 09:40 AM
Hushpower Hushpower is offline
Free Member
 
Join Date: Apr 2020
Location: Sandgroper country, Australia
Posts: 755
Thanked 137 Times in 130 Posts
I was just about to ask the same thing!

The secret appears to be use of MT mode. Check out this topic:

https://forum.videohelp.com/threads/...y!#post2672397

I'm going to ask some detailed questions in relation to AVISynth versions, 32bit/64bit requirements, and how MT is set up. Hopefully the AVISynth experts will give us some guidance.
Reply With Quote
  #5  
04-28-2023, 09:42 AM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 676
Thanked 193 Times in 165 Posts
Quote:
Is it possible to speed up Avisynth rendering in some way? I am currently using Virtualdub with 5-8 fps which would make up to 12 hours
You're lucky .

Some of the best processing + upscale in AviSynth/VapourSynth runs at < 1fps.

The same for some of the enhaced alghorithms in Topaz VEAI (which I do not use); in addition you need to feed it with deinterlaced video (QTGMC processing), which reduces further the processed number of fps.

In addition to what already recommened, try to split the AviSynth script: often I run deinterlace in a separate script than denoising. It increase a lot the (temporary) required disk space, but the sum of the running time for the 2 processing is << than the processing time for a single script including everything. This is particularly true when using VirtualDub to create the final output, a bit less with ffmpeg direct generation.

edit: lordsmurf is right, be careful with MT mode (I never use it), it is prone to generate errors with filtering across large temporal radius because the way the information from one frame is propagated inside the processing. Others may have a good recipe in term of versions/# of bits to use...

A channel on S-VHS / VHS capture and AviSynth restoration https://bit.ly/3mHWbkN

Last edited by lollo2; 04-28-2023 at 09:53 AM.
Reply With Quote
  #6  
04-28-2023, 02:22 PM
themaster1 themaster1 is offline
Free Member
 
Join Date: Feb 2011
Location: France
Posts: 527
Thanked 113 Times in 97 Posts
multithreading work good for me (it would be super slow without it, i got an old phenom Ii X4 955 cpu)

Code:
SetMemoryMax(900)
SetMTMode(3,2) # higher numbers of threads for the video source produce corrupted images i've found, no idea why
AVISource()
SetMTMode(3,4)
Filters....

You may have to decrease (or increase the mode and/or numbers of threads with certain filters), or it may produce corrupted images, example:
Code:
SetMTMode(2,4) # Works ok
McDegrainSharp(last,2,bblur=0.2,csharp=0.4)
for virtualdub filters:
Code:
SetMTMode(3,2) # Works ok
ConverttoRGB32(matrix="rec601",interlaced=false)
MSUSmartSharpen(2)
Reply With Quote
  #7  
04-28-2023, 03:30 PM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,786
Thanked 2,496 Times in 2,122 Posts
Quote:
Originally Posted by lollo2 View Post
edit: lordsmurf is right, be careful with MT mode (I never use it), it is prone to generate errors with filtering across large temporal radius because the way the information from one frame is propagated inside the processing. Others may have a good recipe in term of versions/# of bits to use...
I would also add this warning:

People that claim to "never have issues with MT" are generally either

- impossibly lucky; it happens
- not paying attention, oblivious to their results
- not using Avisynth very much, ie limited experience

More than once ... many times now ... I've had others confirm MT processing glitches, including those that previously claimed "worked for me" (until it didn't).

There is a chronic issue in the video community, where people capture/process/encode video, then assume the output is fine. No. There must be auditing, via scrubbing, and spot testing. The best way, of course, is actual watching. I've put up with this for 30 years now, both in hobby and pro communities. Too many claims, lots of assumption, or just outright BS.

People too often just don't pay attention to what they're doing, or have done. And that extends far beyond the world of video.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Hybrid (Avisynth) resize methods, fast vs. faster? Choomba696 Encode, Convert for streaming 4 01-09-2023 04:24 AM
How to prevent this bizzare rendering error in AviSynth JPMedia Restore, Filter, Improve Quality 3 08-12-2020 10:32 AM
HuffYUV multithreaded + hyperthreading faster? Towncivilian Encode, Convert for discs 5 04-26-2016 07:29 AM
Is firewire 400/800 faster than USB 2.0? Sossity Computers 1 12-16-2010 12:16 PM
Faster encoding... Superstar Encode, Convert for discs 5 11-05-2009 07:25 PM

Thread Tools



 
All times are GMT -5. The time now is 12:23 AM