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 Development

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 22nd March 2020, 19:11   #5241  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
gargling with bleach
Never tried that one yet, although a few years back I had been using [EDIT: a new] washing up liquid to wash my hands under the tap.
I had previously been thinking that it was a real lousy washing up liquid with hardly any lather (bubbles) and not much use
for washing the dishes. Anyways, this particular day I thought "what is that smell?", turns out it was actually household bleach,
was squirting it directly onto my hands, rubbing it in and then under the tap, never noticed any side effects of that.
Having lousy eyes is quite dangerous, is living 'on the edge'.
Quote:
Same here.
Yep, well I'll write my Obituary and send it to you, if I go first then post it for me please (say that you wrote it), and I'll do the same for you.

EDIT: Oxo cube, 1 clove of garlic and a lump of ginger, finely chopped and into cup of water, nuked in microwave,
Is tolerable, WHO may say it dont work, but like many on-site I'm goin' for the Placebo Effect.

EDIT: New Avs+ files only fix for Exist() on folders, now AvsInit.avsi works fine again.

EDIT: I just got an old 2012 movie on DVD, "Iron Sky", never seen it before, love it and especially the intro music track, "Take me To Heaven" by Laibach, vocal by 'Severa Gjurin',
its near damned hynotic, love it. Maybe you [G2K4] can arrange to have it played when they shove me into the furnace [perhaps you'de even like to do the shoving].
A piece of it on YouTube [~2:30, Still frame music clip, ending chopped short; download of 360p version allowed; ~5.3MB]:- https://www.youtube.com/watch?v=sL2mF5lhwdk
EDIT: There is also a double feature "Iron Sky directors cut" and "Iron Sky 2 - The Coming Race", #2 aint supposed to be as good as #1,
but #1 is 20 mins longer, so I'm gonna get it for that.
__________________
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; 22nd March 2020 at 20:26.
StainlessS is offline  
Old 22nd March 2020, 20:32   #5242  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by StainlessS View Post
Exist(), ReplaceStr(), Prefetch/Global stuff probs all gone, cheers P.

You are clearly self isolating, maybe current COVID-19 situation aint all bad
With the home office I'm saving the time of 2*65 minutes public transport or 2*40 min commute on bike.
pinterf is offline  
Old 22nd March 2020, 20:38   #5243  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
And you seem to be spending it all on Avs+ development, much thanks mate
__________________
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  
Old 23rd March 2020, 01:30   #5244  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by StainlessS View Post
Having lousy eyes is quite dangerous, is living 'on the edge'.
I recently got myself lens implants, it's like having a new set of eyes.

Quote:
Originally Posted by StainlessS View Post
Maybe you [G2K4] can arrange to have it played when they shove me into the furnace [perhaps you'de even like to do the shoving].
I'd be honoured to do the shoving.

Quote:
Originally Posted by StainlessS View Post
"Iron Sky 2 - The Coming Race", #2 aint supposed to be as good as #1,
but #1 is 20 mins longer, so I'm gonna get it for that.
That's what we need these days - quantity. It applies to all kinds of things, length of movies, toilet paper, ...
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 23rd March 2020 at 01:35.
Groucho2004 is offline  
Old 23rd March 2020, 01:38   #5245  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by pinterf View Post
Test build, because there were huge internal changes along with some bug fixes.

With cherry-picking from Neo's early multithreading and ScriptClip fixes, old problems got solved.
thank you, mt with runtime seems start working now, but I got this



Code:
ColorBars(width=640, height=480, pixel_type="yv12")
last.ScriptClip("last.dfttest(Sigma=AverageLuma(last)/16)")
Prefetch(4)
and iirc avsneo at least when use with cpu only many runtime filters not working, even StainlessS note this before
__________________
See My Avisynth Stuff

Last edited by real.finder; 23rd March 2020 at 03:24.
real.finder is offline  
Old 23rd March 2020, 09:34   #5246  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
RF, With your script on x64 into VDub2 I get system exception, seems to be stack corruption
Code:
Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	VirtualDub64.exe
  Application Version:	2.0.0.0
  Application Timestamp:	5de45101
  Fault Module Name:	StackHash_bf55
  Fault Module Version:	6.1.7601.24511
  Fault Module Timestamp:	5d3fa9bd
  Exception Code:	c0000374
  Exception Offset:	00000000000bf302
  OS Version:	6.1.7601.2.1.0.256.48
  Locale ID:	2057
  Additional Information 1:	bf55
  Additional Information 2:	bf55d1c52d0a6d38288ab4c5246e8999
  Additional Information 3:	c72e
  Additional Information 4:	c72e187c65f9e7299dbd4cad6f92f629

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
On x86 into VDub2 I get a sort of blank VDub2, nothing in frame, with 2.6GB ram use [just hangs, maybe some kind of recursive stack exhaustion].
PotPlayer just immediately closes without any indication of error.

This is no problem
Code:
ColorBars(width=640, height=480, pixel_type="yv12")
SSS="""
    Y=AverageLuma
    S=String(Y)
    Subtitle(S)
    Return Last
"""
ScriptClip(SSS)
Prefetch(4)
EDIT: For Avs Neo, functions within Scriptclip (when Scriptclip @ main script level, ie not within script function) had no access to local vars at main level.
This does not seem to be the same problem as with NEO.

EDIT: OK
Code:
ColorBars(width=640, height=480, pixel_type="yv12")

SomeString="Local String Var at Main Level: "

SSS="""
    Y=AverageLuma             # Testing current_frame
    S=String(Y)
    Subtitle(SomeString+S)   
    Return Last
"""
ScriptClip(SSS)
Prefetch(4)
EDIT: For rf scipt on x86, I removed AvsRecursion.dll from SysWOW64 and I get multiple "This Application has requested the to runtime to terminate in an unusual way" message.

In VDub2 error alert I get an "Crash details (best guess as to cause) - An Exception occurred in module libfftw3f-3".

EDIT:
temporary upload image
__________________
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; 23rd March 2020 at 10:04.
StainlessS is offline  
Old 23rd March 2020, 10:00   #5247  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by StainlessS View Post
RF, With your script on x64 into VDub2 I get system exception, seems to be stack corruption
Yep, just debugging the same problem, it's inside dfttest.
I have fixed the problem.
Good news: the script is working fine.

A new version of dfttest will be needed, I'll ask DJATOM if he wishes to maintain it further or I can make the update.

Any more wishes on dfttest?
pinterf is offline  
Old 23rd March 2020, 10:05   #5248  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by StainlessS View Post
EDIT: For Avs Neo, functions within Scriptclip (when Scriptclip @ main script level, ie not within script function) had no access to local vars at main level.
This does not seem to be the same problem as with NEO.
Yep, my another test case is srestore, "I don't know what "dm" means" in Neo, it appeared 1.5 years ago, my cherry-pick is some months before that point, thus the problem is not exhibited.
pinterf is offline  
Old 23rd March 2020, 10:13   #5249  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Well if already figured out is dfttest, and easy fixed then is looking quite promising for MT stuff.
There was no problem with the fft3d libs then ?, all A.O.K. there.

Yep, halt cherry pickin' where NEO prob is first exhibited, good call

EDIT: To Below, thanks P.
__________________
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; 23rd March 2020 at 10:24.
StainlessS is offline  
Old 23rd March 2020, 10:17   #5250  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by StainlessS View Post
Well if already figured out is dfttest, and easy fixed then is looking quite promising for MT stuff.
There was no problem with the fft3d libs then ?, all A.O.K. there.

Yep, halt cherry pickin' where NEO prob is first exhibited, good call
Parts of FFTW3 are not thread-safe
pinterf is offline  
Old 23rd March 2020, 10:39   #5251  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by pinterf View Post
Parts of FFTW3 are not thread-safe
-Vit- did some changes back then to fix that https://forum.doom9.org/showthread.p...59#post1423459
__________________
See My Avisynth Stuff

Last edited by real.finder; 23rd March 2020 at 10:47.
real.finder is offline  
Old 23rd March 2020, 10:44   #5252  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by pinterf View Post
Yep, just debugging the same problem, it's inside dfttest.
I have fixed the problem.
Good news: the script is working fine.

A new version of dfttest will be needed, I'll ask DJATOM if he wishes to maintain it further or I can make the update.

Any more wishes on dfttest?
HBD and Y*, and if it possible to add something to make it easier/faster in motion compensation usage
__________________
See My Avisynth Stuff
real.finder is offline  
Old 23rd March 2020, 10:57   #5253  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by pinterf View Post
Code:
    Prefetch (clip c, int threads, int "frames")
    
    In the original Plus, you could use only one Prefetch, but you can use any number of CUDA versions.
    Also, an argument has been added to specify the number of frames to prefetch.
    Prefetch (1,4) # Make 1 thread stand and prefetch 4 frames
    By doing so, flexible parallelization configuration is possible, such as pipeline parallelization.

    threads
    Number of threads. If it is 0, it passes without doing anything.

    frames
    Number of frames to prefetch.
    Again, if it is 0, it passes without doing anything.
shouldn't Prefetch(threads=0) or Prefetch() did auto use of all cores/threads like old avs mt, and only if Prefetch(1) it passes without doing anything.
__________________
See My Avisynth Stuff

Last edited by real.finder; 23rd March 2020 at 11:05.
real.finder is offline  
Old 23rd March 2020, 11:25   #5254  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by pinterf View Post
Possibly HDRAGC source code is needed which is unfortunately not available (never published)
Never say never:- http://www.mediafire.com/file/cgvipn...50521.zip/file

EDIT: Source is 0.1.5 alpha (which aint the latest. EDITED: )
Code:
Version changes:
Version 0.1.5 alpha - 21.05.2005:
	- improvments - 4 times faster with significantly reduced halo artifacts (if you want old behaviour use parameter mode = 0)
Version 0.1.2 alpha - 30.04.2005:
	- changed lightness distribution routine (less plastic look - midtones have higher contrast)
	- new value for auto control of saturation
	- calculated gain is independent of avg_lum parameter
Version 0.1.1 alpha - 29.04.2005:
	- fixed bug with avg_lum (thanks to AVIL)
	- small c optimization (thanks to tsp)
	- new parameters (coef_gain, min_sat, circle)
Version 0.1 alpha - 25.04.2005 - first release
It has ASM, otherwise I probably would have had a go myself to convert to x64.

EDIT: Damn, not latest by a long way. Latest I have is Hdragc-1.8.7.zip.

EDIT: from v1.8.7
Code:
Version changes:
Version 1.8.6 - 09.09.2006
    - added 'freezer' parameter - number of frame that is choosen to calculate gain parameters
Version 1.8.5 - 10.06.2006
    - added auto shifting (black_clip parameter)
    - avg_lum parameter is back
    - new mode (mode = 2), which is using float precision for some calculations (best quality, now mode = 2 as default)
    - fixed behaviour of coef_gain (for coef_gain > 1.0 it works as in previous versions)
    - tweaked corrector (by default it's not a bit lower, so if you were using previously x, now try x + 0.1)
Version 1.8.1 - 13.05.2006
    - fixed crash for black frame (thanks to Boulder)
Version 1.8 - 13.05.2006
    - huge jump in version, huge jump in quality ;)
    - improved old algorithm from version 0.2.1 (mode = 0), new algorithm (mode = 1) that even for high gains give natural picture
    - added support for YV12 and YUY2, removed RGB32
    - 3 times faster (but still without MMX, SSE, SSE2 optimizations)
    - 10 times less memory usage
    - better handling of saturation
    - new parameters for sublte color correction (shift_u, shift_v)
Version 0.2.1 - alpha - 25.10.2005:
     - fixed sharpening/denoising (they were turned off when gain was not applied to image)
    - fixed protect mode
Version 0.2.0 - alpha - 23.10.2005:
    - completely new lighting routin (sigma parameter not needed)
    - new mode (mode = 2) in which radius is adaptively choosen, this removes artifacts as much as I was able to do ;). Slow, but faster and much, much better than mode = 0
    - mode = 1 is again 2 times faster (and will be faster later, still no MMX, SSE  optimization)
    - new parameter - protect - for value = 1 it can help in some situation with blowing highlights (default on)
    - new parameters - contrast, limit - for denoising/sharpening, almost for free - no slow down (experimental)
Version 0.1.5 alpha - 21.05.2005:
    - improvments - 4 times faster with significantly reduced halo artifacts (if you want old behaviour use parameter mode = 0)
Version 0.1.2 alpha - 30.04.2005:
    - changed lightness distribution routine (less plastic look - midtones have higher contrast)
    - new value for auto control of saturation
    - calculated gain is independent of avg_lum parameter
Version 0.1.1 alpha - 29.04.2005:
    - fixed bug with avg_lum (thanks to AVIL)
    - small c optimization (thanks to tsp)
    - new parameters (coef_gain, min_sat, circle)
Version 0.1 alpha - 25.04.2005 - first release
__________________
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; 23rd March 2020 at 11:48.
StainlessS is offline  
Old 23rd March 2020, 11:28   #5255  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by real.finder View Post
-Vit- did some changes back then to fix that https://forum.doom9.org/showthread.p...59#post1423459
I can't see it how.
pinterf is offline  
Old 23rd March 2020, 11:29   #5256  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by real.finder View Post
HBD and Y*, and if it possible to add something to make it easier/faster in motion compensation usage
So it supports 16 bit only through lsb?
pinterf is offline  
Old 23rd March 2020, 12:35   #5257  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by pinterf View Post
I can't see it how.
seems only plugins source in the Package, it has only the modded dll's of fftw3 and libfftw3f-3 here if you want to test https://www.solidfiles.com/v/p5eAgABYgRyVV

edit: I just tried, seems it not fix it, I get same as StainlessS

Quote:
Originally Posted by StainlessS View Post
On x86 into VDub2 I get a sort of blank VDub2, nothing in frame, with 2.6GB ram use [just hangs, maybe some kind of recursive stack exhaustion].
but with mpc

Quote:
Originally Posted by pinterf View Post
So it supports 16 bit only through lsb?
yes, no one added HBD to it yet, there are vs port https://forum.doom9.org/showthread.php?t=171678 maybe it can help
__________________
See My Avisynth Stuff

Last edited by real.finder; 23rd March 2020 at 13:08.
real.finder is offline  
Old 23rd March 2020, 13:10   #5258  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by real.finder View Post
seems only plugins source in the Package, it has only the modded dll's of fftw3 and libfftw3f-3 here if you want to test https://www.solidfiles.com/v/p5eAgABYgRyVV

yes, no one added HBD to it yet, there are vs port https://forum.doom9.org/showthread.php?t=171678 maybe it can help
Anyway, dfttest itself had to be modded. Nothing to do with fftw3, but calling its plan should be thread safe even if the filter was set to MT_MULTI_INSTANCE.
pinterf is offline  
Old 23rd March 2020, 13:41   #5259  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
real.finder, StainlessS:

pls. test this one.
https://github.com/pinterf/dfttest/releases/tag/1.9.4.4

Just a quick update for MT test.
pinterf is offline  
Old 23rd March 2020, 14:10   #5260  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Well it dont crash at all for me, however, I've never actually ever used it, unless as a requirement of some script function,
dont even know how to use it. [Think I'm gonna have a nap, I'm a bit knackered].
__________________
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  
Closed Thread

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 07:45.


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