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.

SCXvid filter crash
#2
using:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = 'F:/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# loading plugins
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/SourceFilter/DGDecNV/DGDecodeNV.dll")
# Import scripts
import validate
# Source: 'C:\Users\Selur\Desktop\TeresaBrewerBW-1.mp4'
# Current color space: YUV420P8, bit depth: 8, resolution: 640x480, frame rate: 23.976fps, scanorder: progressive, yuv luminance scale: limited, matrix: 709, transfer: bt.709, primaries: bt.709
# Loading C:\Users\Selur\Desktop\TeresaBrewerBW-1.mp4 using DGSource
clip = core.dgdecodenv.DGSource("J:/tmp/mp4_a6d85c75532f229195b00c3988bb09c8_853323747.dgi")# 23.976 fps, scanorder: progressive
frame = clip.get_frame(0)
# Setting detected color matrix (709).
clip = core.std.SetFrameProps(clip=clip, _Matrix=1)
# setting color transfer (709), if it is not set.
if validate.transferIsInvalid(clip):
  clip = core.std.SetFrameProps(clip=clip, _Transfer=1)
# setting color primaries info (to 470), if it is not set.
if validate.primariesIsInvalid(clip):
  clip = core.std.SetFrameProps(clip=clip, _Primaries=5)
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=1)
# making sure frame rate is set to 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=0) # progressive

core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/Support/libscxvid.dll")

clip = core.scxvid.Scxvid(clip, log="", use_slices=True)

# adjusting output color from: YUV420P8 to YUV420P10 for NVEncModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="limited")
# set output frame rate to 23.976fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# output
clip.set_output()
and:
VSPipe.exe -c y4m c:\Users\Selur\Desktop\test.vpy NUL
I get:
Output 1323 frames in 3.90 seconds (338.83 fps)
I get no crash, when using the 'log'-parameter the output file is properly created.

-----
Ah, vsviewer crashes. (no clue why) Hybrid does use libscxvid for chunked encoding where vsViewer isn't used.

Cu Selur

Ps.: I split this from the original thread, since it does not seem to be really related.
Reply


Messages In This Thread
SCXvid filter crash - by Dan64 - 09.07.2024, 19:36
RE: Interesting projects to include to Hybrid - by Selur - 09.07.2024, 19:46
RE: SCXvid filter crash - by Dan64 - 09.07.2024, 22:05
RE: SCXvid filter crash - by Selur - 10.07.2024, 05:48
RE: SCXvid filter crash - by Dan64 - 10.07.2024, 08:26
RE: SCXvid filter crash - by Selur - 10.07.2024, 08:32
RE: SCXvid filter crash - by Selur - 12.07.2024, 14:04
RE: SCXvid filter crash - by Dan64 - 12.07.2024, 17:56

Forum Jump:


Users browsing this thread: 1 Guest(s)