This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

need to delete roaming/hybrid folder at every job.
#1
i'm working on Video8 clips (PAL) i have a crash (all teh time) on the 2nd job i do.. i need to delete the roaming/hybrid folder to make the next one works...

i tried with official build and dev build.

this is the debug:
http://www.wcn.it/cra2.txt

deinterlacing with top field.. mkv... letterboxing borders .. MCsharpdegrain
Reply
#2
Strange according to the debug output Vapoursynth complains about:
T r a c e b a c k   ( m o s t   r e c e n t   c a l l   l a s t ) :
     F i l e   " s r c \ \ c y t h o n \ \ v a p o u r s y n t h . p y x " ,   l i n e   3 3 6 5 ,   i n   v a p o u r s y n t h . _ v p y _ e v a l u a t e
     F i l e   " s r c \ \ c y t h o n \ \ v a p o u r s y n t h . p y x " ,   l i n e   3 3 6 6 ,   i n   v a p o u r s y n t h . _ v p y _ e v a l u a t e
     F i l e   " C : \ U s e r s \ B f i e l d \ A p p D a t a \ L o c a l \ T e m p \ t e m p P r e v i e w V a p o u r s y n t h F i l e 0 9 _ 4 4 _ 4 5 _ 8 4 4 . v p y " ,   l i n e   5 6 ,   i n   < m o d u l e >
         c l i p   =   h a v s f u n c . Q T G M C ( I n p u t = c l i p ,   P r e s e t = " F a s t " ,   T F F = T r u e )   #   n e w   f p s :   5 0
                       ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
     F i l e   " C : \ P r o g r a m   F i l e s \ H y b r i d \ 6 4 b i t \ v s s c r i p t s \ h a v s f u n c . p y " ,   l i n e   1 7 0 8 ,   i n   Q T G M C
         b o b b e d   =   c l i p . r e s i z e . B o b ( t f f = T F F ,   f i l t e r _ p a r a m _ a = 0 ,   f i l t e r _ p a r a m _ b = 0 . 5 )
                           ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
     F i l e   " s r c \ \ c y t h o n \ \ v a p o u r s y n t h . p y x " ,   l i n e   3 1 0 1 ,   i n   v a p o u r s y n t h . F u n c t i o n . _ _ c a l l _ _
v a p o u r s y n t h . E r r o r :   S e p a r a t e F i e l d s :   c l i p   h e i g h t   m u s t   b e   m o d   2   i n   t h e   s m a l l e s t   s u b s a m p l e d   p l a n e
but looking at the script:
original = clip
clip = core.std.AddBorders(clip=clip, left=0, right=2, top=0, bottom=2) # add borders to archive mod 4 (vsQTGMC) - 708x568
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True) # new fps: 50
# Making sure content is preceived as frame based
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
clip = core.std.Crop(clip=clip, left=0, right=2, top=0, bottom=2) # removing borders (vsQTGMC) -  706x566
original = core.std.AddBorders(clip=original, left=0, right=2, top=0, bottom=2) # add borders to archive mod 4 (vsQTGMC) - 708x568
# Deinterlacing using QTGMC
original = havsfunc.QTGMC(Input=original, Preset="Fast", TFF=True) # new fps: 50

the clip height should be mod4 "708x568" and even when haved, should still be mod2.

=> can you share a small sample (a few seconds) of such a source, so I can reproduce the problem here?

Cu Selur
Reply
#3
Sure... here a small piece of the AVI:

http://www.wcn.it/venice.avi

crop is 2 on top.. zero on left... 12 on right and 8 on bottom

i was able to complete the JOB if i delete the Hybrid configuration and folders.
Reply
#4
Crash happens during the deinterlacing, which is applied before the cropping, so the crop values do not matter.
The Vapoursynth Preview Script that crashed was:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import ctypes
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
# loading plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/FFT3DFilter/fft3dfilter.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/CTMF/CTMF.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools_sf_em64t.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/TCanny.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3m.dll")# vsQTGMC
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DeinterlaceFilter/Bwdif/Bwdif.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll")
# Import scripts
import G41Fun
import havsfunc
import validate
# Source: 'C:\Users\Bfield\Desktop\vi8\3-2024-10-14 17-57-40.avi'
# Current color space: YUV420P8, bit depth: 8, resolution: 706x566, frame rate: 25fps, scanorder: top field first, yuv luminance scale: limited, matrix: 470bg, format: ULH0
# Loading C:\Users\Bfield\Desktop\vi8\3-2024-10-14 17-57-40.avi using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Bfield/Desktop/vi8/3-2024-10-14 17-57-40.avi", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
frame = clip.get_frame(0)
# setting color matrix to 470bg.
clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT470_BG)
# setting color transfer (vs.TRANSFER_BT601), if it is not set.
if validate.transferIsInvalid(clip):
  clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT601)
# setting color primaries info (to vs.PRIMARIES_BT470_BG), if it is not set.
if validate.primariesIsInvalid(clip):
  clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT470_BG)
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED)
# making sure frame rate is set to 25fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# making sure the detected scan type is set (detected: top field first)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_TOP) # tff
original = clip
clip = core.std.AddBorders(clip=clip, left=0, right=2, top=0, bottom=2) # add borders to archive mod 4 (vsQTGMC) - 708x568
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True) # new fps: 50
# Making sure content is preceived as frame based
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
clip = core.std.Crop(clip=clip, left=0, right=2, top=0, bottom=2) # removing borders (vsQTGMC) -  706x566
original = core.std.AddBorders(clip=original, left=0, right=2, top=0, bottom=2) # add borders to archive mod 4 (vsQTGMC) - 708x568
# Deinterlacing using QTGMC
original = havsfunc.QTGMC(Input=original, Preset="Fast", TFF=True) # new fps: 50
# Making sure content is preceived as frame based
original = core.std.SetFrameProps(clip=original, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
original = core.std.Crop(clip=original, left=0, right=2, top=0, bottom=2) # removing borders (vsQTGMC) -  706x566
clip = core.std.Crop(clip=clip, left=0, right=14, top=2, bottom=8)# cropping to 692x556
original = core.std.Crop(clip=original, left=0, right=14, top=2, bottom=8)# cropping to 692x556
# removing grain using TemporalDegrain2
clip = G41Fun.TemporalDegrain2(clip=clip, degrainPlane=4, meAlgPar=False, postFFT=0, ppSAD1=3, ppSAD2=2, ppSCD1=3, thSCD2=100, fftThreads=1)
# letterboxing 692x556 to 720x576
clip = core.std.AddBorders(clip=clip, left=0, right=14, top=2, bottom=8)
# letterboxing 692x556 to 720x576
original = core.std.AddBorders(clip=original, left=0, right=14, top=2, bottom=8)
original = core.text.Text(clip=original,text="Original",scale=1,alignment=7)
clip = core.text.Text(clip=clip,text="Filtered",scale=1,alignment=7)
stacked = core.std.StackHorizontal([original,clip])
# adjusted resizing to achieve PAR 1:1 for preview
# resizing for preview to square pixel to 1536x576
stacked = core.resize.Bicubic(clip=stacked, width=1536, height=576)
# set output frame rate to 50fps (progressive)
stacked = core.std.AssumeFPS(clip=stacked, fpsnum=50, fpsden=1)
# output
stacked.set_output()

Can't reproduce the problem with the crash, but there seems to be some problem with the input resolution info in the script.
I copied the file to have two, then loaded the first: everything looks correct.
Then I loaded the second and in the script the resolution was reported as 706x568.
Strangely even with that the Vapoursynth Preview works fine. (output resolution is also fine)
-> Will look at it more after work.

Can you write a step-by-step which steps you do to get the crash in the Preview?

Cu Selur
Reply
#5
Uploaded a new dev version, which does seem to fix the input resolution issue.
I suspect that should fix your problem too, please try and let me know.

Cu Selur
Reply
#6
this is what i do: http://www.wcn.it/hybrid.mp4

the first JOB works...
the second one crashes.

any hint on how to use all threads ? (ryzen3900-24th)
rightnow it's using only 48%

[EDIT] i will try the latest DEV , thank you ! [/EDIT]
Reply
#7
regarding cpu usage: try another source filter (disable BestSource)
Reply
#8
Also move your temp folder to a separate folder outside of AppData and add an exemption for it into your antivirus scanner.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)