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.

Possible typo Crashing Temporal filter.
#14
okay source is 47052 frames according to MediaInfo, decoder seems to always crash after frame 37551.
The Vapoursynth script  /tmp/encodingTempSynthSkript_2020-12-26@15_35_04_8710.vpy
# Imports
import os
import sys
import functools
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = '/home/fletcher/Downloads/hybrid-dev/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libaddgrain.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libneofft3d.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libdfttest.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libeedi3m.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/vsznedi3.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libmvtools.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libtemporalsoften.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libscenechange.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libfmtconv.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libvslsmashsource.so")
# Import scripts
import havsfunc
# source: '/home/fletcher/Documents/Kanokon BD 1/Kanokon 2.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 29.97, color matrix: 709, yuv luminance scale: limited, scanorder: top field first
# Loading /home/fletcher/Documents/Kanokon BD 1/Kanokon 2.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="/home/fletcher/Documents/Kanokon BD 1/Kanokon 2.mkv", format="YUV420P8", 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 29.970
clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
clip2clip = clip
clip2clip = havsfunc.QTGMC(Input=clip2clip, Preset="Very Slow", TFF=False,FPSDivisor=2)
clip = core.vivtc.VFM(clip=clip, order=0, mode=1)
# VDecimate helper function
def postprocess(n, f, clip, deinterlaced):
  if f.props['_Combed'] > 0:
    return deinterlaced
  else:
    return clip
postprocessed_clip = core.std.FrameEval(clip=clip, eval=functools.partial(postprocess, clip=clip, deinterlaced=clip2clip), prop_src=clip)
clip = core.vivtc.VDecimate(clip=clip, scthresh=12)# new fps: 23.976
clip = havsfunc.Vinverse(clp=clip)
# adjusting output color from: YUV420P8 to YUV420P10 for x264Model (i420@8)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="limited")
# set output frame rate to 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Output
clip.set_output()
looks fine.
The quant file "/tmp/Kanokon 2_new_new_2020-12-26@15_35_04_8710_03.qp"
1 I -1
312 I -1
2615 I -1
13596 I -1
35365 I -1
37618 I -1
looks fine too.

The encoding call:
"/usr/bin/vspipe" "/tmp/encodingTempSynthSkript_2020-12-26@15_35_04_8710.vpy" - --y4m | "/usr/bin/x264" --crf 16.00 --profile high10 --level 4.1 --ref 4 --bframes 5 --b-adapt 2 --sync-lookahead 17 --qpmax 63 --me umh --vbv-maxrate 150000 --vbv-bufsize 187500 --sar 1:1 --qpfile "/tmp/Kanokon 2_new_new_2020-12-26@15_35_04_8710_03.qp" --non-deterministic --range tv --colormatrix bt709 --demuxer y4m  --input-range tv --fps 24000/1001 --output-depth 10 --output "/tmp/2020-12-26@15_35_04_8710_04.264" -
also seems to be fine too and does start without a problem.

Since the decoding seems to always crash after the same frame I guess there might be an issue with:
a. the source -> check if the Vapoursynth Preview properly works around frame 37551
b. the decoding -> try whether calling:
"/usr/bin/vspipe" -p "/tmp/encodingTempSynthSkript_2020-12-26@15_35_04_8710.vpy" /dev/null --y4m
runs through the whole file or whether it too crashes after frame 37551. (output should be 37618 frames so the clip shouldn't be finished)
I suspect it crashes since Hybrid reports that the decoder and not the encoder crashed.

If the Vapoursynth Preview also crashes, try whether it still crashes if:
a. you use enable hardware decoding, in case your system supports it (set "Filtering->Vapoursynth->Misc->Source->Libav hardware decoding mode" to 3)
b. if you disable "Filtering->Vapoursynth->Misc->Source->Prefer LWLibAVSource over FFMpegSource"

If neither the Vapoursynth Preview nor the decoding of the script fails, try whether calling the encoding call in a terminal does throw an error the debug output didn't get.

Quote:Had to Zip it since it was too large to upload as a txt file.
Man, no offense, but I really don't get why folks want to attach huge txt files, when the 'sticky' clearly states:
[quote]5. compress (zip/7z/rar/..) the HybridDebugOutput.txt before you post it[/code]

Cu Selur

Ps.: RAM Drive doesn't really help much in regard to encoding, it usually only helps when muxing and extracting content from and to it.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: Possible typo Crashing Temporal filter. - by Selur - 27.12.2020, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)