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.

Crop/Resize
#37
Okay, this is not a Hybrid bug, but a bug in one of the filters or Vapoursynth itself.
when I use:
# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'F:\TestClips&Co\files\YUV\yuv422_16bitBitEndianStereo.mov'
# current color space: YUV422P8, bit depth: 0, resolution: 848x352, fps: 23.976, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading F:\TestClips&Co\files\YUV\yuv422_16bitBitEndianStereo.mov using LWLibavSource
clip = core.lsmas.LWLibavSource(source="F:/TestClips&Co/files/YUV/yuv422_16bitBitEndianStereo.mov", format="YUV422P8", cache=0, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 23.976
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
original = clip
# cropping the video to 842x348
clip = core.std.CropRel(clip=clip, left=0, right=6, top=2, bottom=2)
# cropping the video to 842x348
original = core.std.CropRel(clip=original, left=0, right=6, top=2, bottom=2)
clip = core.fmtc.resample(clip=clip, kernel="spline16", w=1280, h=530, interlaced=False, interlacedd=False)
original = core.fmtc.resample(clip=original, kernel="spline16", w=1280, h=530, interlaced=False, interlacedd=False)
# adjusting output color from: YUV422P16 to YUV420P8 for x264Model (i420@8-bit)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited")
# adjusting for FilterView
if original.format.id != clip.format.id:
if (original.format.color_family == vs.RGB and clip.format.color_family != vs.RGB):
   original = core.resize.Bicubic(original, format=clip.format.id, matrix_s="470bg", range_s="limited")
elif (original.format.color_family == clip.format.color_family):
   original = core.resize.Bicubic(original, format=clip.format.id, range_s="limited")
else:
   original = core.resize.Bicubic(original, format=clip.format.id, matrix_in_s="470bg", range_s="limited")
stacked = core.std.StackHorizontal([original,clip])
# set output frame rate to 23.976fps
stacked = core.std.AssumeFPS(clip=stacked, fpsnum=24000, fpsden=1001)
# Output
stacked.set_output()
and
I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.avi


I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.raw


I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.raw

Output 80 frames in 0.29 seconds (274.31 fps)

I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.raw

Output 80 frames in 0.29 seconds (272.45 fps)

I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.raw


I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.raw

Output 80 frames in 0.29 seconds (272.80 fps)

I:\Hybrid\64bit\Vapoursynth>VSPipe.exe  c:\Users\Selur\Desktop\test.vpy e:\Test.raw


I:\Hybrid\64bit\Vapoursynth>
it randomly crashes,... every few times,.. -> I'll so some more testing and if I can't identify the culprit I'll try to contact the Vapoursynth authors over at doom9s.

Okay, it's definitly the resizing, without:
clip = core.fmtc.resample(clip=clip, kernel="spline16", w=1280, h=530, interlaced=False, interlacedd=False)
original = core.fmtc.resample(clip=original, kernel="spline16", w=1280, h=530, interlaced=False, interlacedd=False)
the script works fine.
-> I'll try to contact the fmtc author. (https://forum.doom9.org/showthread.php?p=1927388)

Cu Selur
------
offline 02.-07. July, https://www.rockharz-festival.com/ Big Grin
Reply


Messages In This Thread
Crop/Resize - by serg - 30.10.2020, 22:23
RE: Crop/Resize - by Selur - 31.10.2020, 06:48
RE: Crop/Resize - by serg - 31.10.2020, 18:32
RE: Crop/Resize - by Selur - 31.10.2020, 18:43
RE: Crop/Resize - by Selur - 31.10.2020, 19:10
RE: Crop/Resize - by serg - 31.10.2020, 19:40
RE: Crop/Resize - by Selur - 31.10.2020, 19:43
RE: Crop/Resize - by Selur - 31.10.2020, 19:53
RE: Crop/Resize - by serg - 31.10.2020, 20:20
RE: Crop/Resize - by Selur - 31.10.2020, 20:47
RE: Crop/Resize - by serg - 31.10.2020, 21:06
RE: Crop/Resize - by Selur - 31.10.2020, 21:09
RE: Crop/Resize - by serg - 31.10.2020, 22:01
RE: Crop/Resize - by Selur - 31.10.2020, 22:08
RE: Crop/Resize - by serg - 31.10.2020, 22:23
RE: Crop/Resize - by Selur - 31.10.2020, 22:24
RE: Crop/Resize - by serg - 31.10.2020, 23:18
RE: Crop/Resize - by Selur - 31.10.2020, 23:00
RE: Crop/Resize - by Selur - 31.10.2020, 23:41
RE: Crop/Resize - by serg - 01.11.2020, 00:22
RE: Crop/Resize - by Selur - 01.11.2020, 00:35
RE: Crop/Resize - by serg - 01.11.2020, 02:50
RE: Crop/Resize - by Selur - 01.11.2020, 09:49
RE: Crop/Resize - by Selur - 01.11.2020, 11:44
RE: Crop/Resize - by serg - 01.11.2020, 22:06
RE: Crop/Resize - by Selur - 01.11.2020, 22:08
RE: Crop/Resize - by Selur - 01.11.2020, 22:32
RE: Crop/Resize - by serg - 02.11.2020, 00:55
RE: Crop/Resize - by Selur - 02.11.2020, 05:51
RE: Crop/Resize - by serg - 02.11.2020, 07:04
RE: Crop/Resize - by Selur - 02.11.2020, 17:07
RE: Crop/Resize - by Selur - 02.11.2020, 18:02
RE: Crop/Resize - by serg - 02.11.2020, 20:23
RE: Crop/Resize - by Selur - 02.11.2020, 20:57
RE: Crop/Resize - by serg - 02.11.2020, 21:19
RE: Crop/Resize - by Selur - 02.11.2020, 21:24
RE: Crop/Resize - by Selur - 02.11.2020, 21:37

Forum Jump:


Users browsing this thread: 5 Guest(s)