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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th September 2020, 13:03   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,185
vcm, can't find missing dependency :(

I'm trying to get vcm.fan (and others) working using portable 64bit Vapoursynth.

when using:
Code:
# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/MiscFilter/vcm.dll")
# loading source: F:\TestClips&Co\files\10bit Test.mkv
# color sampling YUV420P10@10, matrix:470bg, scantyp: progressive
# luminance scale TV
# resolution: 640x352
# frame rate: -1 fps
# input color space: YUV420P10, bit depth: 10, resolution: 640x352, fps: 25
# Loading F:\TestClips&Co\files\10bit Test.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="F:/TestClips&Co/files/10bit Test.mkv", format="YUV420P10", cache=0)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
clip = core.vcm.fan(clip=clip,span=1,edge=1,uv=1,plus=0.02,minus=0.02)

# Output
clip.set_output()
I get:
Code:
Traceback (most recent call last):
  File "src\cython\vapoursynth.pyx", line 2244, in vapoursynth.vpy_evaluateScript
  File "src\cython\vapoursynth.pyx", line 2245, in vapoursynth.vpy_evaluateScript
  File "C:\Users\Selur\Desktop\test.vpy", line 6, in <module>
    core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/MiscFilter/vcm.dll")
  File "src\cython\vapoursynth.pyx", line 2069, in vapoursynth.Function.__call__
vapoursynth.Error: Failed to load I:/Hybrid/64bit/vsfilters/MiscFilter/vcm.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.

Okay, since it's a domain frequency filter it might depend on fft3w (even so neither the Avisynth documentation of http://www.avisynth.nl/users/vcmohan...FanFilter.html or the fan.html which comes with the plugin mentions it).
So I modified the script to:
Code:
# Imports
import os
import sys
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("I:/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll") # I tested with libfftw3f-3, libfftw3l-3, libfftw3-3
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/MiscFilter/vcm.dll")
# loading source: F:\TestClips&Co\files\10bit Test.mkv
# color sampling YUV420P10@10, matrix:470bg, scantyp: progressive
# luminance scale TV
# resolution: 640x352
# frame rate: -1 fps
# input color space: YUV420P10, bit depth: 10, resolution: 640x352, fps: 25
# Loading F:\TestClips&Co\files\10bit Test.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="F:/TestClips&Co/files/10bit Test.mkv", format="YUV420P10", cache=0)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
clip = core.vcm.fan(clip=clip,span=1,edge=1,uv=1,plus=0.02,minus=0.02)

# Output
clip.set_output()
sadly that didn't help and the error is basically the same:
Code:
Traceback (most recent call last):
  File "src\cython\vapoursynth.pyx", line 2244, in vapoursynth.vpy_evaluateScript
  File "src\cython\vapoursynth.pyx", line 2245, in vapoursynth.vpy_evaluateScript
  File "C:\Users\Selur\Desktop\test.vpy", line 11, in <module>
    core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/MiscFilter/vcm.dll")
  File "src\cython\vapoursynth.pyx", line 2069, in vapoursynth.Function.__call__
vapoursynth.Error: Failed to load I:/Hybrid/64bit/vsfilters/MiscFilter/vcm.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.
So I thought using 64bit Dependency Walker (http://www.dependencywalker.com/) might shed some light on the problem, but loading the vcm.dll it only shows kernel32.dll, MSVCP120.dll, MSVCR120.dll as dependencies all present and accounted for.

Does anyone have a clue what dependency I'm missing?

Thanks!

Cu Selur
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 20th September 2020, 13:56   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,363
I does work for me. Try to update your dependencies and test again.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 20th September 2020, 14:11   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,185
@ChaosKing: did you need libfftw3f-3.dll?
Thanks for testing.
According to Windows "Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.30501" was installed.
over at:
https://support.microsoft.com/en-us/...utable-package
offered 12.0.40660, but installing those didn't help either.
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..

Last edited by Selur; 20th September 2020 at 14:17.
Selur is offline   Reply With Quote
Old 20th September 2020, 14:28   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,185
Got it! typo in the path.
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 20th September 2020, 14:30   #5  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,363
Code:
[.\vcm.dll]
architecture: x86_64
machine name: AMD AMD64 (x64)
subsystem:    Windows GUI
DLL:          yes
stripped:     no
file version: 0.0
minimum Windows version: 6.0
IMPORTS
KERNEL32.dll
MSVCP120.dll
MSVCR120.dll
EXPORTS
vcm.dll: VapourSynthPluginInit @ 1
Quote:
did you need libfftw3f-3.dll?
Idk, it auto loads if necessary

You can test my dll versions. Maybe it helps: https://www.dropbox.com/s/t6g0reme3bm3979/deps.rar?dl=1
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 20th September 2020, 16:21   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,185
Everything works now. Like i wrote, it was a typo in the script which caused it.
Thanks.
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 9th October 2020, 08:21   #7  |  Link
vcmohan
Registered User
 
Join Date: Jul 2003
Location: India
Posts: 781
New function ColorBox

I have added a new function ColorBox to this vcm plugin.
It outputs boxes of colors in all YUV formats (except YUV444PH). The frames are output for 100 sec at fps 24. May be useful as colorbars of avisynth.
__________________
mohan
my plugins are now hosted here
vcmohan 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 09:34.


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