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. |
11th April 2020, 18:49 | #5421 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Code:
# Stack Overhead Subtitle Text, with optional FrameNumber shown. Function TSub(clip c,string Tit,Bool "ShowFrameNo",Int "Col"){ c.BlankClip(height=20,Color=Default(Col,0)) (Default(ShowFrameNo,False))?ScriptClip("""Subtitle(String(current_frame,"%.f] """+Tit+""""))"""):Trim(0,-1).Subtitle(Tit) Return StackVertical(c).AudioDubEx(c) } Colorbars SHOW=True TIT="Hello World" #TSub(TIT,SHOW) ScriptClip("""Subtitle(String(current_frame,"%.f] """+Tit+""""))""") Prefetch(4) Dont work. Code:
Colorbars TIT="Hello World" #ScriptClip("""Subtitle(String(current_frame,"%.f] """+Tit+""""),align=4)""") ScriptClip("Subtitle(string(current_frame),align=4)") # EDIT: Or shorter without additional subtitle string, still BUG BUG=True # <<<<<<<< TOGGLE BUG (BUG) ? Prefetch(4) : NOP 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; 11th April 2020 at 19:22. |
11th April 2020, 20:34 | #5422 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
__________________
See My Avisynth Stuff |
12th April 2020, 01:34 | #5424 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Quote:
Have to study it closely, though, because like pinterf it's pure C over here. CUDA has C syntax. Last edited by videoh; 12th April 2020 at 01:39. |
|
12th April 2020, 11:08 | #5428 | Link | |
Registered User
Join Date: Oct 2016
Location: Tellus, Milky Way Galaxy
Posts: 21
|
Quote:
Under 'average stats' MadVR is reporting latencies between 0.2 - 4 ms, averaging <2ms under load with a relatively heavy SVP script, while playing back a 12bit FullHD HEVC encode on a 1.5 decades old computer; while at idle it would be sitting at ~0.15ms... It's like there's no longer any bottle-necking on the AviSynth side of things; everything just runs incredibly smoothly with no seek glitching and even frame-drop recovery is near-instantaneous. This build may have rendered AviSynth.dll based performance tweaking obsolete for anything other than synthetic benchmarks. |
|
12th April 2020, 14:28 | #5430 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
another out of the range float problem
Code:
ColorBars(width=640, height=480, pixel_type="yv12") Convertbits(32) mt_lutxy(last,Invert(),"x x y - 9.9 * +", use_expr=1) #~ ConvertBits(8) Converttorgb24
__________________
See My Avisynth Stuff |
13th April 2020, 12:33 | #5432 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,580
|
Quote:
SD material Script: PHP Code:
Code:
AVSMeter 2.9.8 (x64), 2012-2020, (c) Groucho2004 AviSynth+ 3.5 (r3132, master, x86_64) (3.5.0.0) Number of frames: 1568 Length (hh:mm:ss.ms): 00:01:02.720 Frame width: 712 Frame height: 552 Framerate: 25.000 (25000/1000) Colorspace: YV12 Code:
FPS (min | max | average): 2.726 | 1000000 | 23.45 Process memory usage (max): 1057 MiB Thread count: 77 CPU usage (average): 73.6% Code:
FPS (min | max | average): 2.630 | 1000000 | 23.61 Process memory usage (max): 1061 MiB Thread count: 77 CPU usage (average): 73.9% Code:
FPS (min | max | average): 3.295 | 1000000 | 23.65 Process memory usage (max): 1066 MiB Thread count: 77 CPU usage (average): 73.8% Code:
FPS (min | max | average): 3.101 | 1000000 | 23.65 Process memory usage (max): 1064 MiB Thread count: 77 CPU usage (average): 73.8% Code:
FPS (min | max | average): 2.826 | 1000000 | 23.65 Process memory usage (max): 1067 MiB Thread count: 77 CPU usage (average): 73.9% Code:
FPS (min | max | average): 3.313 | 1000000 | 23.56 Process memory usage (max): 1062 MiB Thread count: 77 CPU usage (average): 73.6% Code:
FPS (min | max | average): 3.515 | 1000000 | 23.51 Process memory usage (max): 1062 MiB Thread count: 77 CPU usage (average): 73.7% Script: PHP Code:
Code:
AVSMeter 2.9.8 (x64), 2012-2020, (c) Groucho2004 AviSynth+ 3.5 (r3132, master, x86_64) (3.5.0.0) Number of frames: 1456 Length (hh:mm:ss.ms): 00:01:00.727 Frame width: 1920 Frame height: 1080 Framerate: 23.976 (24000/1001) Colorspace: YV12 Code:
FPS (min | max | average): 1.308 | 454542 | 11.16 Process memory usage (max): 1243 MiB Thread count: 77 CPU usage (average): 66.3% Code:
FPS (min | max | average): 1.946 | 285712 | 11.50 Process memory usage (max): 1241 MiB Thread count: 77 CPU usage (average): 67.8% Code:
FPS (min | max | average): 1.772 | 232556 | 12.43 Process memory usage (max): 1341 MiB Thread count: 77 CPU usage (average): 69.4% Code:
FPS (min | max | average): 1.690 | 270268 | 12.38 Process memory usage (max): 1353 MiB Thread count: 77 CPU usage (average): 69.0% Code:
FPS (min | max | average): 1.892 | 277780 | 12.17 Process memory usage (max): 1344 MiB Thread count: 77 CPU usage (average): 69.0% Code:
FPS (min | max | average): 1.716 | 294115 | 12.16 Process memory usage (max): 1336 MiB Thread count: 77 CPU usage (average): 68.6% Code:
FPS (min | max | average): 2.071 | 232560 | 12.24 Process memory usage (max): 1355 MiB Thread count: 77 CPU usage (average): 68.9% Code:
FPS (min | max | average): 1.830 | 263160 | 12.38 Process memory usage (max): 1358 MiB Thread count: 77 CPU usage (average): 69.2% SetMemoryMax have impact on encoding speed too. HD material (the same above) x264_x64.exe --output-depth 8 --crf 20.0 --preset slow --tune animation --profile high --level 4.1 --keyint 240 --aq-mode 2 --sar 1:1 --output "nemoxxxx.mkv" --frames 1456 --demuxer y4m --stdin y4m SetMemoryMax(256): 2.99 FPS SetMemoryMax(512): 8.95 FPS SetMemoryMax(1000): 8.28 FPS SetMemoryMax(2000): 8.44 FPS SetMemoryMax(4000): 8.65 FPS SetMemoryMax(8000): 8.80 FPS SetMemoryMax(): 9.12 FPS Setting tr=6 in SMDegrain and repeating the three bests: SetMemoryMax(512): 6.52 FPS SetMemoryMax(8000): 6.68 FPS SetMemoryMax(): 6.83 FPS And, as I perhaps suffer from OCD, I redid the test for SD. SD material (the same above) x264_x64.exe" --output-depth 8 --crf 20.0 --preset slow --profile high --level 4.1 --keyint 240 --aq-mode 2 --sar 64:45 --output infernoxxxx.mkv --frames 1568 --demuxer y4m --stdin y4m tr=4 SetMemoryMax(512): 18.79 FPS SetMemoryMax(8000): 18.83 FPS SetMemoryMax(): 19:15 FPS tr=6 SetMemoryMax(512): 13.30 FPS SetMemoryMax(8000): 14.22 FPS SetMemoryMax(): 13.40 FPS Fluctuations are so small that, apart SetMemoryMax(256), we can't tell who is the real winner. Better to minimize occupied RAM or to leave lot of space for AVS to work? Anyway, I will leave SetMemoryMax(8000).
__________________
@turment on Telegram Last edited by tormento; 13th April 2020 at 12:38. |
|
13th April 2020, 14:07 | #5433 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
What is your default [EDIT: x64] SetMemorymax ? [and installed RAM]
Avs+ default is probably gonna be a good all around choice. Latest updates to Avs+ and Mvtools etc seem to be kicking ass as far as speed goes (nice one guys). EDIT: Code:
BlankClip.Subtitle(String(SetMemoryMax)) # using x86[1024MB] and x64[???] app
__________________
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; 13th April 2020 at 14:17. |
13th April 2020, 14:52 | #5434 | Link | |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,580
|
Quote:
I agree. That's why I keep on using it. Do you want me to execute that? You need some patience as I am encoding a loooooong job
__________________
@turment on Telegram Last edited by tormento; 13th April 2020 at 14:59. |
|
13th April 2020, 16:21 | #5435 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
what is available for 2nd instance of Avs+ if you were to create one. When I said "What is your default", I meant result of that blankclip script which shows the avs+ default, not what you set YOUR chosen SetMemoryMax at. My default was about 3550MB on 12GB ram/9GB avail .
__________________
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 ??? |
|
13th April 2020, 18:08 | #5436 | Link |
Acid fr0g
Join Date: May 2002
Location: Italy
Posts: 2,580
|
Isn't the AVSMeter a good indicator of how much RAM is used?
The funny thing about SetMemoryMax() is I can't find any reference of what it does when no parameter is given. Now I am encoding almost everything with SetMemoryMax() instead of SetMemoryMax(8000) as it seems to give a little better speed for the reels and the script I encode.
__________________
@turment on Telegram Last edited by tormento; 13th April 2020 at 18:12. |
14th April 2020, 03:42 | #5437 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
Do we have arrays as parameters in AVS+ now? Or are we still limited by passing strings? I'm looking at dfttest, and while vapoursynth version has moved to arrays, the original version still uses strings.
|
14th April 2020, 04:27 | #5438 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
tormento,
UsedMB=SetMemoryMax() or UsedMB=SetMemoryMax(0) returns the currently used amount, so SetMemoryMax() without assigning to anything is a NOP, well does nothing useful. Quote:
MeteorRain, Quote:
Arrays cannot be implemented for script so long as Avs+ supports v2.58 dll loading. [ AvisynthPluginInit2() ] Arrays have always been usable within C/CPP dll. So cannot call script or dll function from within script using any arrays. Exception is where dll accepts any 0 or more, OR 1 or more, args of a type where avisynth converts to array when calling dll (or builtin). eg Code:
c2=SomeDllFunction(clip, Int1, int2, int3, int4, int5,"Hello") # dll gets array of 5 int. From Framesel() source Code:
env->AddFunction("FrameSel", "ci*[SCmd]s[Cmd]s[Show]b[Ver]b[Reject]b[Ordered]b[Debug]b[Extract]i", Create_FrameSel, 0); // The AddFunction has the following paramters: // AddFunction(Filtername , Arguments, Function to call,0); // Arguments is a string that defines the types and optional nicknames of the arguments for you filter. // c - Video Clip // i - Integer number // f - Float number // s - String // b - boolean // . - Any type (dot) // Array Specifiers // i* - Integer Array, zero or more // i+ - Integer Array, one or more // .* - Any type Array, zero or more // .+ - Any type Array, one or more // Etc Code:
FrameSel(Clip, int F1, ... , int Fn, string "scmd"="",string "cmd"="", bool "show"=false, bool "ver"=false,bool "reject"=false,bool "ordered"=true,bool "debug"=false, int "Extract"=1) of args ends] OR, MUST be called using name of the arg following the variable number of args. eg Code:
SomeFunction(int Int1, ... ,int IntN, Int "Fred"=0) Code:
x=SomeFunction(int1,int2,int3,int4,Fred=42) # Must be called with Fred=42 otherwise 42 added to IntN array and Fred assigned default 0.
__________________
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; 14th April 2020 at 11:12. |
||
14th April 2020, 06:49 | #5439 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
On POSIX, yes. NEW_AVSVALUE is on by default on non-Windows. |
|
14th April 2020, 07:29 | #5440 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
https://github.com/pinterf/AviSynthP...me_history.txt edit: if I remember well, in NEW_AVSVALUE build colors can be passed to BlankClip in array-style as well. Last edited by pinterf; 14th April 2020 at 07:33. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|