Log in

View Full Version : Unable to open clip


vcmohan
28th August 2017, 08:25
I am trying to open the Original and Result avi files from the thread of ingoldie at https://forum.doom9.org/showthread.php?t=174391 and get the message AVI import filter error(unknown) (80040154).
I am using ffms2.source for opening.
Same files I could open in avisynth+ using DirectShowSource. I use virtualdub as monitor. VirtualDub also raises an error when it is next opened.
What may be the cause? I am using 64 bit version, on windows 10
The script is
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin(path=r'C:\vsplugins\ffms2-2.23.1-msvc\x64\ffms2.dll')
core.std.LoadPlugin(path=r'C:\TransPlugins\bin_Vapoursynth\vcmod\x64\Release\vcmod.dll')
ret=core.ffms2.Source(r'c:\images\Original.avi')
ret2=core.ffms2.Source(r'c:\images\Result.avi')
#ret = core.vcmod.Neural(ret, ret2)
ret.set_output()

Are_
28th August 2017, 12:07
Loads fine here, maybe try with another compile of the dll? Can you load those videos with the very same dll in avisynth+?

StainlessS
28th August 2017, 12:33
Clips are XVID 4:2:0 (PCM audio).
Opens in AVS Standard (32bit), DirectShowSource, and ffms2 OK (156 frames). Open in AviSource, first frame green frame, 156 frames.

Error 80040154 retreiving COM Class factory:- https://social.msdn.microsoft.com/Forums/vstudio/en-US/88a6ea68-f476-4231-822f-27fabe59f458/error-80040154-retreiving-com-class-factory?forum=vbgeneral

AVI import filter error(unknown) (80040154):- Lots of hits
https://www.google.co.uk/search?q=AVI+import+filter+error%28unknown%29+%2880040154%29.&oq=AVI+import+filter+error%28unknown%29+%2880040154%29.&gs_l=psy-ab.3...104250.104250.0.104480.1.1.0.0.0.0.0.0..0.0.foo%2Cnso-ehuqi%3D1%2Cnso-ehuui%3D1%2Cewh%3D0%2Cnso-mplt%3D2%2Cnso-enksa%3D0%2Cnso-enfk%3D1%2Cnso-usnt%3D1%2Cnso-qnt-npqp%3D0-1701%2Cnso-qnt-npdq%3D0-54%2Cnso-qnt-npt%3D0-1%2Cnso-qnt-ndc%3D300%2Ccspa-dspm-nm-mnp%3D0-05%2Ccspa-dspm-nm-mxp%3D0-125%2Cnso-unt-npqp%3D0-17%2Cnso-unt-npdq%3D0-54%2Cnso-unt-npt%3D0-0602%2Cnso-unt-ndc%3D300%2Ccspa-uipm-nm-mnp%3D0-007525%2Ccspa-uipm-nm-mxp%3D0-052675...0...1.1.64.psy-ab..1.0.0.GJsD9df76eU

vcmohan
28th August 2017, 12:49
Loads fine here, maybe try with another compile of the dll? Can you load those videos with the very same dll in avisynth+?

In avisynth+ it loads fine. But I found results are much different to DirectShowSource. Should I use older version?

vcmohan
28th August 2017, 13:27
Clips are XVID 4:2:0 (PCM audio).
Opens in AVS Standard (32bit), DirectShowSource, and ffms2 OK (156 frames). Open in AviSource, first frame green frame, 156 frames. Many thanks for the reply. I should not take lame excuse of my age(83) for this.
I however did check up the outputs of ffms and directshowsource in avisynth+ , by subtracting and using levels found considerable difference in outputs.

Are_
28th August 2017, 13:40
Or a dll compiled from another person.

StainlessS
28th August 2017, 14:22
by subtracting and using levels found considerable difference in outputs.

I see no difference in XP32, standard avs, using the latest FFMS2000 test6 [EDIT: And DirectShowSource]


# Return Clip Difference of input clips (amp==true = Amplified, show==true = show background)
Function ClipDelta(clip clip1,clip clip2,bool "amp",bool "show") {
amp=Default(amp,false)
show=Default(show,false)
c2=clip1.levels(128-32,1.0,128+32,128-32,128+32).greyscale()
c1=clip1.subtract(clip2)
c1=(amp)?c1.levels(127,1.0,129,0,255):c1
return (show)?c1.Merge(c2):c1
}


VNAM="Original.avi"
A=DirectShowsource(VNAM)
FFIndex(VNAM)
B=FFVideoSource(VNAM)

TOP=Stackhorizontal(A,B)
D=ClipDelta(A,B,AMP=true)
BOT=Stackhorizontal(D,D)
StackVertical(TOP,BOT)


EDIT: Comparing AviSource with ffms2, all frames seem to be off by 1 (avisource frame 0 is green).

EDIT: Below produces quite a lot of differences trimming off the green frame from avisource (any number trimmed off, 0 to 3 tried)


# Return Clip Difference of input clips (amp==true = Amplified, show==true = show background)
Function ClipDelta(clip clip1,clip clip2,bool "amp",bool "show") {
amp=Default(amp,false)
show=Default(show,false)
c2=clip1.levels(128-32,1.0,128+32,128-32,128+32).greyscale()
c1=clip1.subtract(clip2)
c1=(amp)?c1.levels(127,1.0,129,0,255):c1
return (show)?c1.Merge(c2):c1
}


TRIMSTART=1

VNAM="Original.avi"
A=Avisource(VNAM).Trim(TRIMSTART,0)
FFIndex(VNAM)
B=FFVideoSource(VNAM)

TOP=Stackhorizontal(A,B)
D=ClipDelta(A,B,true)
BOT=Stackhorizontal(D,D)
StackVertical(TOP,BOT)


EDIT: With above script, frame 0 identical, all others afterwards like this or worse.
https://s20.postimg.org/tzls2124d/Scrapyard.jpg (https://postimages.org/)

I should not take lame excuse of my age(83) for this.

I make no excuse, either. [a mere youngster @ 61 3/4] :)

EDIT: DirectShowSource and ffms2000, both producing same, AviSource different, but which is wrong ???

EDIT: Inspecting file Information via standard VirtualDub v1.10.4, shows ffdshow XVID decoder being used.

EDIT: I seem to remember a version of XVID (about v3.0 I think) that was totally screwed up, and you had to use the
original version codec to decode else looked like totally corrupt garbage, no idea if this is the case here, dont think that
the differences are actually great enough to be that bad version codec.

GMJCZP
28th August 2017, 14:56
vcmohan, try installing some xvid build of Jawor for decoding.

PD: vcmohan, TinMan, I take off my hat before you.

VS_Fan
28th August 2017, 20:41
I would try:

The latest 'official' build (https://github.com/FFMS/ffms2/releases) from Myrsloik; or
The newest test build of FFMS2000 (https://forum.doom9.org/showthread.php?t=174469), also from Myrsloik

EDIT: Also, there's a D2Vwitch v3 test build (https://forum.doom9.org/showthread.php?p=1803960#post1803960)

vcmohan
29th August 2017, 11:40
I tried with both latest official build and test build. Still get that Error 80040154.
Do I need to register this dll?

VS_Fan
30th August 2017, 19:57
No issues here, windows 10 64bits. Using Vapoursynth R39 test build 1, and ffms2000 test6.

The two avis were coded with xvid, the latest version (MediaInfo reports ‘Writing library: XviD 73’). They only have 1 key-frame, the first one. That's probably the reason for the differences informed by StainlessS: ffmpeg versus directshow decoders.

Many of the google search results provided by StainlessS point to old (2004!) solved problems related to virtualdub and/or avisynth and a missing dll, most of them were solved by installing visual studio runtimes and/or reinstalling avisynth.

I would reinstall Vapoursynth. The installer checks for the latest visual studio runtimes.

poisondeathray
31st August 2017, 04:33
Works for me too. I get no differences using avisource (using official xvid decoder) or ffms2 in avisynth 32bit , 64bit or vapoursynth 64bit

An alternative is the included AVISource if you have a 64bit xvid decoder installed (if you can open AVI directly with AVI input driver in vdub 64bit, and check with file=>file information, it will report which 64bit VFW decoder is being used on your system, that's the same one being accessed with AVISource in vapoursynth)


ret = core.avisource.AVISource(r'c:\images\Original.avi')

poisondeathray
31st August 2017, 04:51
I take that back - when testing "Original.avi", the very last frame has a difference between ffms2 and official xvid decoder, both 64bit and 32bit . When doing non linear seeks, use seekmode=0 for ffms2 , otherwise frames can get "mixed up" .

But L-smash and ffms2 get identical results, and you would expect that since they are both built from ffmpeg libraries . Also directshow using LAV gets the same results as ffms and l-smash - also expected

So which is "correct" ? I would assume xvid decoder . But one thing to keep in mind is xvid decoder has post processing options, like deblocking in the decoder options. They should be "off" by default, but some people might have it on.

(But the real question should be who uses xvid anymore ?:confused: )