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.

Not working Vapoursynth preview
#1
When I press the "Preview" button, preview window appears and immediatelly closed


Attached Files
.zip   HybridDebugOutput.zip (Size: 11,43 KB / Downloads: 34)
Reply
#2
Seems like you used the 'Vapoursynth Preview', not the 'Preview'-button.
Script:
# Imports import vapoursynth as vs # getting Vapoursynth core import sys import os core = vs.core # Import scripts folder scriptPath = 'D:/!_System/Hybrid/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) # loading plugins core.std.LoadPlugin(path="D:/!_System/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll") core.std.LoadPlugin(path="D:/!_System/Hybrid/64bit/vsfilters/Support/fmtconv.dll") core.std.LoadPlugin(path="D:/!_System/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll") # Import scripts import edi_rpow2 import validate # Source: 'H:\!_Video\Video_Mus\Vanessa Mae\1995-2005\Vanessa Mae - Destiny.avi' # Current color space: YUV420P8, bit depth: 8, resolution: 336x280, frame rate: 25fps, scanorder: progressive, yuv luminance scale: limited, matrix: 470bg, format: divx3 # Loading 'H:\!_Video\Video_Mus\Vanessa Mae\1995-2005\Vanessa Mae - Destiny.aviÄ using LWLibavSource clip = core.lsmas.LWLibavSource(source="H:/!_Video/Video_Mus/Vanessa Mae/1995-2005/Vanessa Mae - Destiny.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: progressive) clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive clip = core.std.Crop(clip, left=0, right=2, top=34, bottom=34) # cropping to 334x212 clip = core.std.AddBorders(clip=clip, left=0, right=2, top=0, bottom=0) # add borders to archive mod 4 (NNEDI3(CL)) - 336x212 # resizing using ZNEDI3 # current: 336x212 target: 336x190 -> pow: 2 clip = edi_rpow2.nnedi3_rpow2(clip, rfactor=2) # 672x424 clip = core.std.Crop(clip=clip, left=0, right=4, top=0, bottom=0) # removing added borders from mod requirement (NNEDI3(CL)) - 668x424 # resizing 668x424 to 336x190 clip = core.fmtc.resample(clip, w=336, h=190, kernel="spline64", interlaced=False, interlacedd=False) # before YUV420P8 after YUV420P16 # adjusting output color from YUV420P16 to YUV420P8 for x264Model clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8) # set output frame rate to 25fps (progressive) clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1) # output clip.set_output()
seems okay. I suspect that LWLibavSource can't decode divx3 (which never followed a standard).
Using 'FFmpegSource2' might work. Try disabling 'Prefer LWLibavSource over FFMpegSource2'. If that also doesn't help you could try whether BestSource can handle such a file (which I doubt). If you have a VFW decoder fr divx3 using AviSource might work.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply
#3
None of the methods helped.
Reply
#4
Then there isn't a Vapoursynth source filter that can handle your source.
=> Nothing I can do about it.
(only DivX3 file I still got is inside an ogm container, which BestSource decodes without problems)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)