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 3rd April 2020, 17:06   #5361  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Just built a new version from mpp, but I will do tests later
pinterf is offline  
Old 3rd April 2020, 17:18   #5362  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by gispos View Post
MPP requires a 'return last' in the last section for NEO builds.
Have you tried?

Something has changed from the previous version. Could this cause problems for some people?
More information
Code:
example 1 (this was still possible without 'return')
------------
LWLibavVideoSource(SourceFile)
return dummy()

function dummy(clip clp){
clp
}

example 2 (This was possible, not now)
------------
LWLibavVideoSource(SourceFile)

#dummy()
function dummy(clip clp){
clp
}

example 3 (MP_Pipeline needs now also return)
------------
MP_Pipeline("""
### inherit start ###
SourceFile = String(ScriptDir()) + "Goblin.mkv"
### inherit end ###
LWLibavVideoSource(SourceFile, cache=False)
### ###
### platform: Win32
HDRAGC()
### platform: Win64
### ###
audio=LWLibavAudioSource(SourceFile, cache=False)
audioDub(last, audio)
return last
""")
sharpen(0.40)
thanks that seems make it work!

Code:
mp_pipeline("""
ColorBars(width=640, height=480, pixel_type="yv12")
admfilter()
Prefetch(4)
### ###
return last
""")
__________________
See My Avisynth Stuff
real.finder is offline  
Old 4th April 2020, 12:04   #5363  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Would you please create an additional autoload folder "AVSI" on next releases?

I probably suffer from OCD but I'd like to put them in a different directory.
__________________
@turment on Telegram
tormento is offline  
Old 4th April 2020, 12:26   #5364  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Tormento,
AvsInit.avsi allows you to use a GIMPORT directory where avs/avsi scripts are auto loaded (by AvsInit), and makes it possible to have scripts that will load
under avs v2.58/2.60/2.61 Std with GScript, OR, under Avs+, either x86 or x64, and where all can use Gscript style constructs [for/While/If].
Can have a GIMPORT in plugins directory specifically for a single version of Avs, or where using G2K4 Avisynth Universal Installer, a
universal GIMPORT directory used by all avs versions, dont need same identical scripts in all avs version plugins.
Also some other functionality.

AvsInit.avsi :- https://forum.doom9.org/showthread.p...hlight=AvsInit

EDIT: Some functions callable from inside AvsInit or user scripts.
Code:
        AvsInit_LoadPlugin(fn)                  Load CPP dll with filename FN, sending debug stuff (success/fail) to DebugView window.
                                                [Avs+ will also load C plugins].
        AvsInit_LoadCPlugin(fn)                 Load C dll with filename FN, sending debug stuff (success/fail) to DebugView window.
        AvsInit_Import(fn)                      Import[GImport() if GScript Present] avs/avsi script with filename FN, sending debug
                                                stuff (success/fail) to DebugView window.
        ###
                                                Directory of files load/Import functions. Return total number of scripts imported,
                                                or dll's loaded,
        AvsInit_DImport(Dir)                    Import[GImport() if GScript Present] All avs/avsi scripts in folder Dir, sending debug
                                                stuff (success/fail) to DebugView window.
        AvsInit_DLoad(Dir)                      Load all CPP/C plugin dll's in folder Dir, sending debug stuff (success/fail) to
                                                DebugView window.

                                                Both DImport and DLoad, funcs may be of use in user functions to satisfy some script
                                                dependency, where a complex script requires multiple dll's or script loaded.

        The Import style functions use GImport() when GScript is available, otherwise Import(). Any scripts imported should have any
        GScript style wrappers removed, eg

        >>>>    CODE  >>>>
            GScript("""         # <<<<<<<<<<========= REMOVE THIS LINE
                ...
                Some gscript stuff, if/else/for/next while etc
                ...
            """)                # <<<<<<<<<<========= REMOVE THIS LINE
        <<<< END CODE <<<<

        With GScript wrappers removed and imported via this library, then should be able to use same scripts in any version of avs
        standard(with Gscript plugin) or avs+, whether it be avs v2.58, avs v2.60/2.61 Standard, avs+ x86 or x64.
EDIT: With AvsInit, you only need the AvsiInit.avsi in plugins, all others can be in local or global GIMPORT (or some other name) directory.
__________________
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; 4th April 2020 at 13:11.
StainlessS is offline  
Old 4th April 2020, 13:29   #5365  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by StainlessS View Post
With AvsInit, you only need the AvsiInit.avsi in plugins, all others can be in local or global GIMPORT (or some other name) directory.
Thanks for your kind reply. I already put my AVSI in plugin64 folder, so they are autoloaded.

A question: why to have such a complicate solution as AvsInit when it would be way easier to have a separate AVSI folder?
__________________
@turment on Telegram
tormento is offline  
Old 4th April 2020, 14:55   #5366  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by StvG View Post
url=https://cloud.owncube.com/s/WdARWHb9epfGRwM]AddGrain[/url] port of the vs version.
Is it the r7 VS version?
__________________
@turment on Telegram
tormento is offline  
Old 4th April 2020, 15:00   #5367  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
MP_Pipeline with Avisynth+ colorspace support

https://github.com/pinterf/MP_Pipeli...eases/tag/0.20

Code:
0.20 (20200404) pinterf
* Avisynth+ support
  Add version resource
  Build: move to VS2019, v142 and v141_xp toolset
pinterf is offline  
Old 4th April 2020, 15:35   #5368  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by pinterf View Post
MP_Pipeline with Avisynth+ colorspace support

https://github.com/pinterf/MP_Pipeli...eases/tag/0.20

Code:
0.20 (20200404) pinterf
* Avisynth+ support
  Add version resource
  Build: move to VS2019, v142 and v141_xp toolset
OMG you have no idea how long I wished for someone to do this.
I tested it on XP as well with 16bit and even 32bit as bit depth along with things like RGBPS and RGBAPS: they all work fine.
Thank you! Thank you! Thank you!! *_*

Now the cherry on the cake would be audio support. After that, MPP is gonna be perfect! Please, I beg you to do that as this way we can leave it as it is for the years to come and it would actually save me time by avoiding to make an additional separate script without MPP, just for the audio.

p.s Ferenc, if you have a LinkedIn account I'll definitely leave you a good recommendation for everything you've done for this community.
FranceBB is offline  
Old 4th April 2020, 15:52   #5369  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by FranceBB View Post
Now the cherry on the cake would be audio support. After that, MPP is gonna be perfect! Please, I beg you to do that as this way we can leave it as it is for the years to come and it would actually save me time by avoiding to make an additional separate script without MPP, just for the audio.
maybe not audio alone, but also with these https://github.com/SAPikachu/MP_Pipeline/issues/1
__________________
See My Avisynth Stuff
real.finder is offline  
Old 4th April 2020, 17:35   #5370  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by pinterf View Post
MP_Pipeline with Avisynth+ colorspace support

https://github.com/pinterf/MP_Pipeli...eases/tag/0.20

Code:
0.20 (20200404) pinterf
* Avisynth+ support
  Add version resource
  Build: move to VS2019, v142 and v141_xp toolset
thanks

but it's still need return last, so it's avs+ test problem? will it stay like this? there are another examples in gispos post in another cases not only mpp
__________________
See My Avisynth Stuff

Last edited by real.finder; 4th April 2020 at 17:41.
real.finder is offline  
Old 4th April 2020, 19:28   #5371  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
A question: why to have such a complicate solution as AvsInit when it would be way easier to have a separate AVSI folder?
Main reason for AvsiInit is below in BLUE

Quote:
AvsInit.avsi v1.09 - 27/Jan/2020
Script to perform some tasks before user script is executed.

Also makes a few script functions later available to any other user scripts.
Also assists in removing AVS+ GScript incompatibilites so that an avsi script may run under Avs+, or when Gscript installed, then also v2.58, v2.60.
Quote:
With GScript wrappers removed and imported via this library, then should be able to use same scripts in any version of avs
standard(with Gscript plugin) or avs+, whether it be avs v2.58, avs v2.60/2.61 Standard, avs+ x86 or x64.
You are looking at it with too limited a view, separate script directory loading is incidental.
__________________
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; 4th April 2020 at 19:33.
StainlessS is offline  
Old 4th April 2020, 19:33   #5372  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
if anyone want to test admfilter (or anything else) with MT, GRunT update is needed http://www.mediafire.com/file/77urom...0.2tst.7z/file

its the one that pinterf made years ago
__________________
See My Avisynth Stuff
real.finder is offline  
Old 5th April 2020, 07:06   #5373  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by FranceBB View Post
p.s Ferenc, if you have a LinkedIn account I'll definitely leave you a good recommendation for everything you've done for this community.
Thanks, but I'm collectiing kudos only on Strava
pinterf is offline  
Old 5th April 2020, 07:42   #5374  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 447
Quote:
Originally Posted by real.finder View Post
anyone know why? is the VS version has the same output?
VS version has identical output.
Quote:
Originally Posted by tormento View Post
Is it the r7 VS version?
It's a port of r7 VS version.
StvG is offline  
Old 5th April 2020, 08:06   #5375  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by StvG View Post
VS version has identical output.

It's a port of r7 VS version.
so that mean VS one was already has bug
__________________
See My Avisynth Stuff
real.finder is offline  
Old 5th April 2020, 09:33   #5376  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 447
Quote:
Originally Posted by real.finder View Post
so that mean VS one was already has bug
VS r1 has identical output to AddGrainC 1.71.
The difference comes from here.
StvG is offline  
Old 5th April 2020, 10:26   #5377  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Hi,

I'd like to re-install Avisynth+, I still get an old version, but I don't know if I have to select the simple or the vcredist version.
When should the vcredist version be used ?
That's for Win 7 64.
Thanks
Music Fan is offline  
Old 5th April 2020, 11:23   #5378  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Music Fan View Post
When should the vcredist version be used ?
If you don't have Microsoft Visual C++ 2015-2019 Redistributables installed (Control Panel -> Programs...).
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 5th April 2020, 12:32   #5379  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
Tip:
Always use this All-In-One VC++ redist package from Abbodi and be happy...
https://github.com/abbodi1406/vcredist/releases
manolito is offline  
Old 5th April 2020, 12:40   #5380  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Thanks ; if I install this package, does it mean I don't have to take the vcredist version ? No risk of conflict if I install it anyway ?
Music Fan 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 11:11.


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