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.

help please
#31
that sample does not seem to have the flags it gets detected as bt460
# Imports
import sys
import os
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Limit frame cache to 48449MB
core.max_cache_size = 48449
# 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/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/fmtconv.dll")
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/SourceFilter/DGDecNV/DGDecodeNV_AVX2.dll")
# Import scripts
import validate
# Source: 'C:\Users\Selur\Desktop\selur sample.mkv'
# Current color space: YUV420P8, bit depth: 8, resolution: 700x476, frame rate: 23.976fps, scanorder: progressive, yuv luminance scale: limited, matrix: 470bg, format: AVC
# Loading 'C:\Users\Selur\Desktop\selur sample.mkv' using DGSource
clip = core.dgdecodenv.DGSource("J:/tmp/mkv_3361fb2859a06a1d0288f25dd3159329_853323747.dgi") # 23.976 fps, scanorder: progressive
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.
prop_name = '_Range' if core.core_version.release_major >= 74 else '_ColorRange'
clip = core.std.SetFrameProps(clip=clip, **{prop_name: vs.RANGE_LIMITED})
# 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=vs.FIELD_PROGRESSIVE) # scan type: progressive
# adjusting output color from YUV420P8 to YUV420P10 for NVEncModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10)
# set output frame rate to 23.976fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# output
clip.set_output()

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#32
well what else exactly as i supposed to do then? hybrid incorrectly flags it as 470bg, so i override the input to  smpte170m via Filterering/misc. then  i inserted before my very first filter, 

# matrix smpte170m
# transfer bt601
# primaries smpte170m
# colorrange limited
# colorformat YUV444P16
# width 700
# height 476

clip = core.std.CropRel(clip, left=10, top=0, right=10, bottom=4)
clip = core.fmtc.resample(clip, css="444", kernel="spline", taps=6)
clip = core.fmtc.bitdepth(clip, bits=16, dmode=3)
clip = core.std.SetFrameProps(clip, _Matrix=6, _Transfer=1, _Primaries=6, _ColorRange=1)


and then i tagged every other custom command with the same  (even though it never changed after)

# matrix smpte170m
# transfer bt601
# primaries smpte170m
# colorrange limited
# colorformat YUV444P16
# width 700
# height 476

You said i had to let hybrid know what was happening I DID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)