Closed Selur closed 2 years ago
Using:
# Imports import vapoursynth as vs # getting Vapoursynth core core = vs.core # Loading Plugins core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll") # source: 'C:\Users\Alex\Videos\Hybrid\Input\TESTVIDEO.mkv' # current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, yuv luminance scale: limited, scanorder: progressive # Loading C:\Users\Alex\Videos\Hybrid\Input\TESTVIDEO.mkv using LWLibavSource clip = core.lsmas.LWLibavSource(source="C:/Users/Alex/Videos/Hybrid/Input/TESTVIDEO.mkv", format="YUV420P8", cache=0, prefer_hw=0) # Setting color matrix to 709. clip = core.std.SetFrameProps(clip, _Matrix=1) clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=1) clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=1) # Setting color range to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # making sure frame rate is set to 23.976 clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001) clip = core.fmtc.resample(clip=clip, kernel="spline16", w=1280, h=720, interlaced=False, interlacedd=False) # Loading C:\Users\Alex\Videos\Hybrid\Output\TESTVIDEO_id_2_lang_en_default.ass using SubText clip = core.sub.TextFile(clip=clip, file="C:/Users/Alex/Videos/Hybrid/Output/TESTVIDEO_id_2_lang_en_default.ass", fontdir="C:/Users/Alex/AppData/Roaming/hybrid/fonts") # adjusting output color from: YUV420P16 to YUV420P8 for x264Model clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited") # set output frame rate to 23.976fps clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001) # Output clip.set_output()
the encoding, preview and vspipe crash at frame 26763, using VsFilterMod or AssRender works fine. Here are the used subtitles and fonts: One Punch Man S01E07_id_2_lang_en_default.zip fonts.zip .
use this or this
New build uploaded that's linked against more recent libraries. Probably fixes things.
Yup, works fine now. Thanks!
Using:
the encoding, preview and vspipe crash at frame 26763, using VsFilterMod or AssRender works fine. Here are the used subtitles and fonts: One Punch Man S01E07_id_2_lang_en_default.zip fonts.zip .