Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th June 2019, 11:48   #181  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by gonca View Post
Sorry
I should have written "run in Windows", with quotes, indicating that it really is being run in an encode workflow.
I was just trying to figure out what the op was referring to.
Apologies for confusing the issue
No need to apologise. Apparently I'm very bad at decoding ambiguous statements. I'm like a kitchen robot with speech control. If you don't give me clear commands I'll beat you with the pan instead of making fried eggs.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 16th June 2019, 17:48   #182  |  Link
ASVTut
Registered User
 
ASVTut's Avatar
 
Join Date: Apr 2019
Posts: 7
Quote:
Originally Posted by Groucho2004 View Post
There's now a 45 minute (!) tutorial for AVSMeter on youtube.
https://www.youtube.com/watch?v=RxXP0oNJh4Q&t=1208s

Thanks Andrew Swan!
Thanks for linking to it, Groucho! Just one thing - your link is to about 20 minutes into the tutorial. Trimming the URL to https://www.youtube.com/watch?v=RxXP0oNJh4Q fixes that. Otherwise, keep up the good work, man.
ASVTut is offline   Reply With Quote
Old 16th June 2019, 17:55   #183  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by ASVTut View Post
Just one thing - your link is to about 20 minutes into the tutorial.
D'oh. Fixed, thanks for pointing it out.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 17th June 2019, 00:06   #184  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
Quote:
Originally Posted by Groucho2004 View Post
I do not understand this part -> "when actually run in AviSynth+".
Thanks for your patience and apologies for the confusion. It seems I should've typed "when actually encoded with AviSynth+" (or please correct me if that's wrong).


Quote:
Originally Posted by gonca View Post
You do realize that the effects of an encoder are not factored in.
The 2.99 fps when run in windows is probably the result of the encoder.
I do now (and thanks) .


Quote:
Originally Posted by Natty View Post
maybe - when actually encoding
Yes, thank you.


And now that I'm a little less clueless, any suggestions for converting the AVSMeter results into improved encoding speed with AviSynth+? Around five years ago--geez, time flies--I used AVSMeter to find the most efficient memory settings for SEt's AviSynth MT, but I'm having trouble doing the same for AviSynth+.

With no "SetMemoryMax()" line in the script, "PreFetch(5)" (on my quad-core, 16GB RAM setup) achieves better encoding speed than "PreFetch(1-4 or 6-8)". Under "SetMemoryMax" in the AviSynth wiki, it states:

Quote:
In Avisynth+ this limit for default Memory Max is 1024MB for 32 bits and 4096MB on the x64 version. DefaultMemoryMax = minimum(physical_memory / 4, secondary_memory_max_limit)
which leads me to think that I'm limited to 1024MB given that I'm using AviSynth+ x86. Is this the case?
LouieChuckyMerry is offline   Reply With Quote
Old 17th June 2019, 19:51   #185  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
@LouieChuckyMerry

A couple of questions before going deeper:
Why are you not using AVS+ 64 bit?
What is the frame size of your source?
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 17th June 2019, 23:12   #186  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
Quote:
Originally Posted by Groucho2004 View Post
@LouieChuckyMerry

A couple of questions before going deeper:
Why are you not using AVS+ 64 bit?
What is the frame size of your source?
1) I very recently began looking into AviSynth+ x64 but haven't yet had enough free time to track down all the necessary x64 plugins-filters for my script templates.

2) 1920x1080.
LouieChuckyMerry is offline   Reply With Quote
Old 17th June 2019, 23:27   #187  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by LouieChuckyMerry View Post
any suggestions for converting the AVSMeter results into improved encoding speed with AviSynth+? Around five years ago--geez, time flies--I used AVSMeter to find the most efficient memory settings for SEt's AviSynth MT, but I'm having trouble doing the same for AviSynth+.
With your script, SetMemoryMax() of about 1000 - 2000 should be sufficient. Apart from that, try various values for prefetch() and also check if adding/removing "avstp.dll" in your plugin directory makes a difference. With avstp.dll present you can probably reduce the number of threads you pass to prefetch().

Lastly, maxing out the CPU usage doesn't necessarily mean it's faster and/or more efficient.

It's usually a trial and error process. AVSMeter is your friend.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 19th June 2019, 01:21   #188  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
Quote:
Originally Posted by Groucho2004 View Post
With your script, SetMemoryMax() of about 1000 - 2000 should be sufficient. Apart from that, try various values for prefetch() and also check if adding/removing "avstp.dll" in your plugin directory makes a difference. With avstp.dll present you can probably reduce the number of threads you pass to prefetch().

Lastly, maxing out the CPU usage doesn't necessarily mean it's faster and/or more efficient.

It's usually a trial and error process. AVSMeter is your friend.
Thanks, Groucho2004, and indeed AVSMeter is my friend. I'll run tests with "SetMemoryMax()" between 1000 and 2000--do you happen to know the default value; I can't discern it from the AviSynth+ wiki--and various "PreFetch()" values. And I'll again try to successfully use avstp.dll (about four years ago I tried to incorporate it into my workflow but couldn't, due to frequent, obvious artifacts that looked like frost on a windowpane and were more prevalent during action scenes; hopefully updated filters-plugins have rectified this). About the only thing I remember from my use of AVSMeter five years ago with SEt's AviSynth MT is that the highest CPU usage doesn't necessarily mean the highest encoding speed, but thanks for the reminder. I'm starting to think that figuring out AviSynth+ x64 would be a better use of my (currently limited) time...
LouieChuckyMerry is offline   Reply With Quote
Old 20th June 2019, 00:27   #189  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
v2.9.3
- Added fftw library dependency check
- New ini setting: "DisableFFTWDLLWarning". See included documentation for more info.
- Removed some superfluous ini settings which are present as command line switches
- Cleaned up documentation
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 7th July 2019, 11:24   #190  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
v2.9.4
- Updated CPU extension flags
- Updated plugin type detection
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 7th July 2019 at 17:28.
Groucho2004 is offline   Reply With Quote
Old 22nd July 2019, 10:00   #191  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
v2.9.5
- Updated libcpuid (AMD Zen 2 support)
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 25th August 2019, 17:18   #192  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Carried on from this post in Groucho2004 Avisynth Stuff thread:- https://forum.doom9.org/showthread.p...15#post1883115

Modified from VoodooFX script
Code:
#clip = LWLibavVideoSource("C:\LagarithYV12.avi.lwi")        # ssS: No idea if this works ie using named index, and not the clip name.
clip=LSMashvideoSource("1941 Flint Michigan Parade [Low, 360p].mp4")
clp = clip.ConvertToRGB24
a = clp.Trim(20,-30)+clp.Trim(2000,-30)
a = a+a+a+a+a+a+a+a+a+a
a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a

a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a  # Added
a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a  #   Ditto
a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a  #   Ditto

return a  # 96,000,000 frames ### Max possible frames = $7FFFFFFF, ~= 2,000,000,000
I just made script [EDIT: clip] a bit longer(96,000,000 frames).

Here results, Avs v2.60 standard is indeed well faster than AVS+, I cancelled AVS+ timing at about same time as v2.60 standard had finished, and avs+ estimate has still about 50 minutes remaining till complete.

It could stand a little bit of inverstigation.



EDIT:
Code:
BlankClip(length=1000000000)
return Last
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 25th August 2019 at 17:48.
StainlessS is offline   Reply With Quote
Old 25th August 2019, 17:50   #193  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
Try a different video source filter...

I have complained repeatedly about AVS+ being very slow with FFMS2 as well as with LWLibavVideoSource. No solution so far, but DSS2Mod is way faster with AVS+.
manolito is offline   Reply With Quote
Old 25th August 2019, 18:16   #194  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
v2.9.6
  • Updated libcpuid
  • If the script runtime is too short, the number of frames processed and runtime are displayed in addition to the warning.
  • Refactoring
  • Cosmetics
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 25th August 2019, 18:38   #195  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 983
Quote:
Originally Posted by StainlessS View Post
Here results, Avs v2.60 standard is indeed well faster than AVS+, I cancelled AVS+ timing at about same time as v2.60 standard had finished, and avs+ estimate has still about 50 minutes remaining till complete.

It could stand a little bit of inverstigation.
I think you mixed up 50 minutes with 50 hours.

Look at my test, I didn't stopped AVS+, just took screenshot at ~same time when avs v2.6 finished. In my AVS+ test it had 12 hours left and it run ~5x faster than in your test.

For some reason on my test AVS+ run on all 4 cores, when yours on 2, AVS 2.6 is same - 1 core.



Code:
clip = LWLibavVideoSource("C:\LagarithYV12.avi.lwi")        

clp = clip.ConvertToRGB24
a = clp.Trim(20,-30)+clp.Trim(2000,-30)
a = a+a+a+a+a+a+a+a+a+a
a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a

a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a
a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a
a = a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+a 
return a
EDIT:

Thanks Groucho2004 for new version. Can something to be done for overwriting "ini" file when I comment out "AVSDLL=" with path to AVS+(it disappears) and uncomment empty "AVSDLL=" to work with default avs 2.6?

Last edited by VoodooFX; 25th August 2019 at 19:55.
VoodooFX is offline   Reply With Quote
Old 25th August 2019, 19:17   #196  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
I think you mixed up 50 minutes with 50 hours.
Oops, yes indeed.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 25th August 2019, 19:49   #197  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by VoodooFX View Post
Can something to be done for overwriting "ini" file when I comment out "AVSDLL=" with path to AVS+(it disappears) and uncomment empty "AVSDLL=" to work with default avs 2.6?
There's currently no comment feature implemented for ini entries. I'll think about it.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 25th August 2019, 20:02   #198  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 983
Quote:
Originally Posted by manolito View Post
Try a different video source filter...

I have complained repeatedly about AVS+ being very slow with FFMS2 as well as with LWLibavVideoSource. No solution so far, but DSS2Mod is way faster with AVS+.
I couldn't find any working link for DSS2Mod. Can you share it?

If I replace LWLibavVideoSource with BlankClip, AVS+ test goes down from ~12h to ~3h, still ~92 times slower(when takes ~3.7x more cpu load) than avs 2.6.

Last edited by VoodooFX; 25th August 2019 at 20:11.
VoodooFX is offline   Reply With Quote
Old 25th August 2019, 20:35   #199  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by VoodooFX View Post
I couldn't find any working link for DSS2Mod.
http://avisynth.nl/index.php/DSS2mod#Source_Filters
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 25th August 2019, 22:41   #200  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by VoodooFX View Post
I couldn't find any working link for DSS2Mod. Can you share it?

If I replace LWLibavVideoSource with BlankClip, AVS+ test goes down from ~12h to ~3h, still ~92 times slower(when takes ~3.7x more cpu load) than avs 2.6.
try put this line
Code:
SetFilterMtMode("LWLibavVideoSource",MT_SPECIAL_MT,true)
in the top of script and see if it get better speed
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.