VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. I have been trying several days to make MP_Pipeline and AGC work.
    I just see the error "Avisynth open failure: MP_Pipeline: Unable to create slave process. Message: (slave_common.cpp) ReadFile failed, code = 109) bla bla, line 32)"

    PLEASE CHECK MY SCRIPT. Thank you.


    LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64/MP_Pipeline.dll")

    MP_Pipeline("""
    ### platform: win64
    SetFilterMTMode("DEFAULT_MT_MODE", 2)

    #Index
    LWLibavVideoSource("C:\Users\tomor\OneDrive\Deskto p\Avisynth Scripts3 - Copy Paste\YOURFILE.avi", indexingpr=False)


    # ### prefetch: 32, 16
    ### ###
    ### platform: Win32

    SetMemoryMax(20480)
    SetCacheMode(mode=1)

    Loadplugin("C:\Users\tomor\OneDrive\Desktop\Avisyn th Scripts3 - Copy Paste\plugins32\AGC.dll")

    SetFilterMTMode("DEFAULT_MT_MODE", 2)
    SetFilterMTMode("LWLibavVideoSource", MT_SERIALIZED)
    convertbits(16)

    threads=32
    cores=16


    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)

    ### ###

    """)

    I used MP_Pipeline_v0.23, the lastest version.

    I put those in plugins64 folder not the + one

    MP_Pipeline.dll
    MP_Pipeline.dll.slave.exe
    MP_Pipeline.dll.win32
    MP_Pipeline.dll.win32.slave.exe

    and those in plugins
    MP_Pipeline.dll
    MP_Pipeline.dll.slave.exe
    MP_Pipeline.dll.win64
    MP_Pipeline.dll.win64.slave.exe

    I put AviSynth.dll and DevIL.dll in the System32

    I installed both AviSynthPlus-r1576 and AviSynthPlus_3.7.1_20211231_vcredist.
    Last edited by JeremyVN; 27th Feb 2022 at 14:58.
    Quote Quote  
  2. With AviSynth+ the script worked here (changing the paths and filenames as necessary). But why bother using 64 bit just for the source filter? Just run the whole script in 32 bits so you don't need MP.
    Quote Quote  
  3. Hi Jagabo,

    My Hardware Info

    [OS/Hardware info]
    Operating system: Windows 10 (x64) (Build 19044)

    CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz / Skylake-X (Core i9)
    MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, RDSEED, ADX, AVX, AVX2, AVX512F, AVX512DQ, AVX512CD, AVX512BW, AVX512VL
    16 physical cores / 32 logical cores


    [Avisynth info]
    VersionString: AviSynth+ 0.1 (r1576, x64)
    VersionNumber: 2.60
    File / Product version: 2.6.0.5 / 2.6.0.5
    Interface Version: 5

    I tried to run the AGC.dll (32 bit) on 64 bit windows for enhancing shadow.

    I put AGC.dll in SysWOW64. But it did not work.

    As a result, I had to use MP_pipeline.
    Quote Quote  
  4. Originally Posted by JeremyVN View Post
    My Hardware Info

    [OS/Hardware info]
    Operating system: Windows 10 (x64) (Build 19044)

    CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz / Skylake-X (Core i9)
    MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, RDSEED, ADX, AVX, AVX2, AVX512F, AVX512DQ, AVX512CD, AVX512BW, AVX512VL
    16 physical cores / 32 logical cores


    [Avisynth info]
    VersionString: AviSynth+ 0.1 (r1576, x64)
    VersionNumber: 2.60
    File / Product version: 2.6.0.5 / 2.6.0.5
    Interface Version: 5
    AviSynth+ 0.1 is probably a problem. That's very old and buggy. I'm running Win10 64 bit on an i9 9900K with AviSynth+ 3.7.0 (32 and 64 bit).

    Originally Posted by JeremyVN View Post
    I put AGC.dll in SysWOW64. But it did not work.
    AviSynth dll's normally go in AviSynth+ plugins folder. Or you can LoadPlugin() from anywhere. I have it in "C:\Program Files (x86)\AviSynth+\plugins+\" so it autoloads (no need for LoadPlugin). I was able to run HDRAGC in 32 bit AviSynth (no MP) with a simple script:

    Code:
    LWLibavVideoSource("filename.mkv")
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    I was getting around 120 frames per second for the processing (ie, no encoding, 1920x1080 video), around 90 percent CPU usage. That's about twice as fast as I was getting with MP and your script with prefetch(8).
    Last edited by jagabo; 28th Feb 2022 at 07:07. Reason: clarified
    Quote Quote  
  5. Originally Posted by JeremyVN View Post

    [Avisynth info]
    VersionString: AviSynth+ 0.1 (r1576, x64)

    Also, x64 info was posted, but not the x86 info. Use avsinfotool and check x86 as well to see if it's installed and what version



    Originally Posted by jagabo View Post
    I was able to run your script in 32 bit AviSynth with a simple script:

    Code:
    LWLibavVideoSource("filename.mkv")
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    I was getting around 120 frames per second for the processing (ie, no encoding), around 90 percent CPU usage. That's about twice as fast as I was getting with MP and your script with prefetch(8).


    He's not running prefetch in the x86 section. For an equivalent mp_pipeline script, prefetch(x) should be in the x86 section

    Code:
    MP_Pipeline("""
    
    ### platform: win64
    
    LWLibavVideoSource("filename.mkv")
    
    ### ###
    
    ### platform: win32
    SetFilterMTMode("DEFAULT_MT_MODE", 2)
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    ### ###
    
    """)

    mp_pipeline is slower as expected because of extra overhead - but native x86 was only ~5-10% faster for me.
    Quote Quote  
  6. Thanks Jagabo and poisondeathray,

    My Hardware info for 32 bit
    My [OS/Hardware info]
    Operating system: Windows 10 (x64) (Build 19044)

    CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz / Skylake-X (Core i9)
    MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, RDSEED, ADX, AVX, AVX2, AVX512F, AVX512DQ, AVX512CD, AVX512BW, AVX512VL
    16 physical cores / 32 logical cores


    [Avisynth info]
    VersionString: AviSynth+ 3.7.1 (r3593, 3.7, i386)
    VersionNumber: 2.60
    File / Product version: 3.7.1.0 / 3.7.1.0
    Interface Version: 9
    Multi-threading support: Yes
    Avisynth.dll location: C:\Windows\SysWOW64\avisynth.dll
    Avisynth.dll time stamp: 2022-01-01, 01:27:46 (UTC)
    PluginDir2_5 (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins
    PluginDir+ (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins+

    ********* jagabo and poisondeathray

    Thank you for teaching me more about Avisynth+.

    I reinstall both AviSynthPlus-r1576 and AviSynthPlus_3.7.1_20211231_vcredist and AviSynth_260 after your reply.

    AviSynthPlus-r1576 from https://avs-plus.net/get_started.html
    AviSynthPlus_3.7.1_20211231_vcredist from https://github.com/AviSynth/AviSynthPlus/releases
    AviSynth_260 from https://sourceforge.net/projects/avisynth2/files/latest/download

    I ran you guys script

    LWLibavVideoSource("filename.mkv")
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)

    and

    MP_Pipeline("""

    ### platform: win64

    LWLibavVideoSource("filename.mkv")

    ### ###

    ### platform: win32
    SetFilterMTMode("DEFAULT_MT_MODE", 2)
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    ### ###

    """)

    , but they did not work. I saw the error ""Avisynth open failure: MP_Pipeline: Unable to create slave process. Message: (slave_common.cpp) ReadFile failed, code = 109)."

    I did some homework. Many have experienced the same problems. A simple script has been making many headache.
    Quote Quote  
  7. Originally Posted by JeremyVN View Post
    I reinstall both AviSynthPlus-r1576 and AviSynthPlus_3.7.1_20211231_vcredist and AviSynth_260 after your reply.
    Just install AviSynth+ 3.7.x, 32 and 64 bit. Do not install 2.6, especially after installing AviSynth+. Doing so is likely to mess up 3.7.

    Originally Posted by JeremyVN View Post
    I ran you guys script

    LWLibavVideoSource("filename.mkv")
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    Did you install the LSMASHSource filter for AviSynth? http://avisynth.nl/index.php/LSMASHSource
    Put the 32 bit LSMASHSource.dll file (from the x86 folder) in AviSynth+'s Plugins+ folder, the 64 bit LSMASHSource.dll (from the x64 folder) in the Plugins64+ folder.

    And, of course, make sure AGC.dll is in the Plugins+ folder.

    Be sure to open the AVS script with a 32 bit editor or encoder.
    Quote Quote  
  8. Post your script verbatim in a code box. One issue with mp_pipeline is it doesn't tell you where or what the error is. eg. If you have a path error, spelling error etc.. It won't tell you the normal detailed information about the error like a normal script

    For example
    LWLibavVideoSource("C:\Users\tomor\OneDrive\Deskto p\Avisynth Scripts3 - Copy Paste\YOURFILE.avi", indexingpr=False)
    You have a space in "Deskto p" - that's likely from of the message board . If you put it in a code box , the precise script will be posted
    Quote Quote  
  9. Hi jagabo and poisondeathray,

    I did what both of you said.

    -------------------------------------------------------------------------------------------
    My Hardware Info 32bit and 64bit

    [OS/Hardware info]
    Operating system: Windows 10 (x64) (Build 19044)

    CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz / Skylake-X (Core i9)
    MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, RDSEED, ADX, AVX, AVX2, AVX512F, AVX512DQ, AVX512CD, AVX512BW, AVX512VL
    16 physical cores / 32 logical cores


    [Avisynth info]
    VersionString: AviSynth+ 3.7.1 (r3593, 3.7, i386)
    VersionNumber: 2.60
    File / Product version: 3.7.1.0 / 3.7.1.0
    Interface Version: 9
    Multi-threading support: Yes
    Avisynth.dll location: C:\Windows\SysWOW64\avisynth.dll
    Avisynth.dll time stamp: 2022-01-01, 01:27:46 (UTC)
    PluginDir2_5 (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins
    PluginDir+ (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins+


    [C++ 2.5 Plugins (32 Bit)]
    C:\Program Files (x86)\AviSynth+\plugins+\AGC.dll [2006-09-10]

    [C++ 2.6 Plugins (32 Bit)]
    C:\Program Files (x86)\AviSynth+\plugins+\ConvertStacked.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins+\DirectShowSource.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins+\ImageSeq.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins+\LSMASHSource.dll [2021-08-10]
    C:\Program Files (x86)\AviSynth+\plugins+\Shibatch.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins+\TimeStretch.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins+\VDubFilter.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins\MP_Pipeline.dll [0.22.0.0]

    [Scripts (AVSI)]
    C:\Program Files (x86)\AviSynth+\plugins+\colors_rgb.avsi [2021-01-12]

    [Uncategorized DLLs (32 Bit)]
    C:\Program Files (x86)\AviSynth+\plugins+\libfftw3f-3.dll [2010-06-21]
    C:\Program Files (x86)\AviSynth+\plugins\libfftw3f-3.dll [2010-06-21]

    [Uncategorized files]
    C:\Program Files (x86)\AviSynth+\plugins+\colors_rgb.txt [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins\MP_Pipeline.dll.slave.exe [0.22.0.0]
    C:\Program Files (x86)\AviSynth+\plugins\MP_Pipeline.dll.win64 [0.22.0.0]
    C:\Program Files (x86)\AviSynth+\plugins\MP_Pipeline.dll.win64.slav e.exe [0.22.0.0]



    --------------------------------------------------------------------------------------------------
    [OS/Hardware info]
    Operating system: Windows 10 (x64) (Build 19044)

    CPU: Intel(R) Core(TM) i9-7960X CPU @ 2.80GHz / Skylake-X (Core i9)
    MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, RDSEED, ADX, AVX, AVX2, AVX512F, AVX512DQ, AVX512CD, AVX512BW, AVX512VL
    16 physical cores / 32 logical cores


    [Avisynth info]
    VersionString: AviSynth+ 3.7.1 (r3593, 3.7, x86_64)
    VersionNumber: 2.60
    File / Product version: 3.7.1.0 / 3.7.1.0
    Interface Version: 9
    Multi-threading support: Yes
    Avisynth.dll location: C:\Windows\SYSTEM32\avisynth.dll
    Avisynth.dll time stamp: 2022-01-01, 02:17:38 (UTC)
    PluginDir2_5 (HKLM, x64): C:\Program Files (x86)\AviSynth+\plugins64
    PluginDir+ (HKLM, x64): C:\Program Files (x86)\AviSynth+\plugins64+


    [C++ 2.6 Plugins (64 Bit)]
    C:\Program Files (x86)\AviSynth+\plugins64+\ConvertStacked.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\DirectShowSource.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\fft3dfilter.dll [2.6.0.0]
    C:\Program Files (x86)\AviSynth+\plugins64+\FFT3dGPU.dll [0.8.4.0]
    C:\Program Files (x86)\AviSynth+\plugins64+\ImageSeq.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\LSMASHSource.dll [2021-08-10]
    C:\Program Files (x86)\AviSynth+\plugins64+\Shibatch.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\TimeStretch.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\VDubFilter.dll [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64\masktools2.dll [2.2.29.0]
    C:\Program Files (x86)\AviSynth+\plugins64\MP_Pipeline.dll [0.22.0.0]
    C:\Program Files (x86)\AviSynth+\plugins64\variableblur.dll [2019-04-07]

    [Scripts (AVSI)]
    C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.avsi [2021-01-12]

    [Uncategorized files]
    C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.txt [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\contrastmask.avs [2019-03-31]
    C:\Program Files (x86)\AviSynth+\plugins64\contrastmask.avs [2019-03-31]
    C:\Program Files (x86)\AviSynth+\plugins64\MP_Pipeline.dll.win32 [0.22.0.0]
    C:\Program Files (x86)\AviSynth+\plugins64\MP_Pipeline.dll.win32.sl ave.exe [0.22.0.0]


    ----------------------------------------------------------------------------------------------------------\
    I saw new error "Avisynth open failure: MP_Pipeline: Unable to create slave process. Message: Can't find slave executable"

    ----------------------------------------------------------------------------------------------------------\
    Jagabo. You said "Be sure to open the AVS script with a 32 bit editor or encoder. "

    Am I run the script right?

    I attached a video below.

    https://www.dropbox.com/s/q951zmfjb8q837i/trim.59268324-7B26-4331-B9B9-D36E6516D67C.MOV?dl=0

    -----------------------------------------------------------------------------------------------------------
    I installed windows 10 a few day ago and registered AGC.dll without using MP_pipeline. None of the methods worked. I thought i might miss some drivers. Do you think missing drivers can affect running MP_pipeline? I attached image below.

    Image
    [Attachment 63586 - Click to enlarge]
    Last edited by JeremyVN; 28th Feb 2022 at 18:11.
    Quote Quote  
  10. Originally Posted by JeremyVN View Post


    [Uncategorized files]
    C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.txt [2021-01-12]
    C:\Program Files (x86)\AviSynth+\plugins64+\contrastmask.avs [2019-03-31]
    C:\Program Files (x86)\AviSynth+\plugins64\contrastmask.avs [2019-03-31]
    C:\Program Files (x86)\AviSynth+\plugins64\MP_Pipeline.dll.win32 [0.22.0.0]
    C:\Program Files (x86)\AviSynth+\plugins64\MP_Pipeline.dll.win32.sl ave.exe [0.22.0.0]


    ----------------------------------------------------------------------------------------------------------\
    I saw new error "Avisynth open failure: MP_Pipeline: Unable to create slave process. Message: Can't find slave executable"

    You're missing "MP_Pipeline.dll.slave.exe" copied from the MP_Pipeline x64 folder , to be placed in the "C:\Program Files (x86)\AviSynth+\plugins64\" directory
    Quote Quote  
  11. THIS IS THE FINAL ANSWER.

    Hi poisondeathray and jagabo,

    From the bottom of my heart, I want to say "thank you so so much" for both of you for spending your gold time for helping me.

    I copied the MP_Pipeline.dll.slave.exe to from the MP_Pipeline x64 folder , to be placed in the "C:\Program Files (x86)\AviSynth+\plugins64\" directory.

    But the error "You Need Permission to Perform This Action" popped up. I fixed this error, then copied MP_Pipeline.dll.slave.exe to plugin64 again. But it did not work.

    Then I uninstalled the Avisynth+, copied MP_Pipeline.dll.slva.exe, then installed Avisynth+. MP_Pipeline.dll.slva.exe suddenly was deleted.

    I disabled Avast. (Checking the zip file in virustotal.com is a good idea.) I did everything one more time. Then the script worked.

    Avast or my antivirust software is the problem. It considered MP_Pipeline.dll.slva.exe as a virus.

    Anyway. Thank you so much for helping me.

    One more thing.

    This script works well.

    MP_Pipeline("""

    ### platform: win64

    LWLibavVideoSource("filename.mkv")

    ### ###

    ### platform: win32
    SetFilterMTMode("DEFAULT_MT_MODE", 2)
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    ### ###

    """)

    -----------------------------------------------------------------------
    HOW TO MAKE MP_Pipeline and AGC WORK.

    1. Download AGC.dll and MP_Pipeline. Then upload to virustotal.com for checking.
    2. Disable your antivirus software. (You understand the risk.)
    3. Put those in plugins64 folder not the + one

    MP_Pipeline.dll
    MP_Pipeline.dll.slave.exe
    MP_Pipeline.dll.win32
    MP_Pipeline.dll.win32.slave.exe

    and those in plugins
    MP_Pipeline.dll
    MP_Pipeline.dll.slave.exe
    MP_Pipeline.dll.win64
    MP_Pipeline.dll.win64.slave.exe

    Put AviSynth.dll and DevIL.dll in the System32

    4. Running this script with virtualdub2 x86 + AviSynthPlus_3.7.1_20211231_vcredist.

    MP_Pipeline("""

    ### platform: win64

    LWLibavVideoSource("filename.mkv")

    ### ###

    ### platform: win32
    SetFilterMTMode("DEFAULT_MT_MODE", 2)
    HDRAGC(coef_gain=2.0, min_gain=0,max_gain=3.0, corrector=0.6,reducer=2.0, coef_sat=1.4, min_sat=0.0, max_sat=5.0, shadows=true)
    prefetch(8)
    ### ###

    """)
    Last edited by JeremyVN; 1st Mar 2022 at 15:09.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!