Selur's Little Message Board

Full Version: Job not completing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Mac OS 12.0.1
Hybrid 2021.12.05.1

I'm having a problem doing an upscale test. Debug attached.
Looking at the debug outpu,..

Hybrid is processing job: 2021-12-10@14_52_32_8510

First it's starting subjob 2021-12-10@14_52_32_8510_01_audio
Code:
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 8 -ignore_editlist true -i "/Volumes/Drobo/Hybrid/Hybrid-OUT/Producer-DVD.mov" -map 0:1 -vn -sn -ac 2 -ar 48000 -acodec pcm_s16le -f wav -map_metadata -1 -metadata encoding_tool="Hybrid 2021.12.05.1" "/Volumes/Drobo/Hybrid/Hybrid-Temp/iId_8_aid_0_2021-12-10@14_52_32_8510_01.wav"
which finished after 00:00:00.811 and created:
Code:
/Volumes/Drobo/Hybrid/Hybrid-Temp/iId_8_aid_0_2021-12-10@14_52_32_8510_01.wav (236.033 MB)
Then Hybrid starts subjob 2021-12-10@14_52_32_8510_02_create, which creates "Volumes/Drobo/Hybrid/Hybrid-Temp/encodingTempSynthSkript_2021-12-10@14_52_32_8510.vpy" with the following content:
Code:
# Imports
import os
import sys
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Import scripts folder
scriptPath = '/Applications/Hybrid.app/Contents/MacOS/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Import scripts
import edi_rpow2
import havsfunc
import G41Fun
# source: '/Volumes/Drobo/Hybrid/Hybrid-OUT/Producer-DVD.mov'
# current color space: YUV422P10, bit depth: 10, resolution: 1024x576, fps: 23.976, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading /Volumes/Drobo/Hybrid/Hybrid-OUT/Producer-DVD.mov using LWLibavSource
clip = core.lsmas.LWLibavSource(source="/Volumes/Drobo/Hybrid/Hybrid-OUT/Producer-DVD.mov", format="YUV422P10", cache=0, fpsnum=24000, fpsden=1001, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Bicubic(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)
# denoising using KNLMeansCL
clip = core.knlm.KNLMeansCL(clip=clip)
# sharpening using DetailSharpen
clip = G41Fun.DetailSharpen(clip=clip)
clip = havsfunc.EdgeCleaner(c=clip, strength=5, smode=1)
# resizing using ZNEDI3
clip = edi_rpow2.nnedi3_rpow2(clip=clip, rfactor=2, nns=4) # 2048x1152
# adjusting resizing
clip = core.fmtc.resample(clip=clip, w=1920, h=1080, kernel="lanczos", interlaced=False, interlacedd=False)
# adjusting output color from: YUV422P16 to YUV422P10 for ProResModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="limited")
# set output frame rate to 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Output
clip.set_output()
Then Hybrid start subjob 2021-12-10@14_52_32_8510_03_video:
Code:
"/usr/local/bin/vspipe" "/Volumes/Drobo/Hybrid/Hybrid-Temp/encodingTempSynthSkript_2021-12-10@14_52_32_8510.vpy" - -c y4m | "/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -noautorotate -nostdin -threads 8 -f yuv4mpegpipe -i - -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv422p10le -strict -1 -vsync 0  -vcodec prores_ks -profile:v 2 -vtag apcn -metadata encoding_tool="Hybrid 2021.12.05.1" -f mov "/Volumes/Drobo/Hybrid/Hybrid-Temp/Producer-1080_2021-12-10@14_52_32_8510_03.mov
which abort with FFMpeg complaining about:
Code:
[yuv4mpegpipe @ 0x7f89170041c0] Header too large.
pipe:: Invalid argument
So something with the Vapoursynth script is wrong.
-> Did you check the Vapoursynth Preview? My guess is that it should show an error.

Cu Selur
Filter Preview:


Failed to evaluate the script:
Python exception: knlm.KNLMeansCL: only YUV444P10 and RGB30 are supported!

Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 2832, in vapoursynth._vpy_evaluate
File "src/cython/vapoursynth.pyx", line 2833, in vapoursynth._vpy_evaluate
File "/Volumes/Drobo/Hybrid/Hybrid-Temp/tempPreviewVapoursynthFile15_17_16_727.vpy", line 25, in
clip = core.knlm.KNLMeansCL(clip=clip)
File "src/cython/vapoursynth.pyx", line 2580, in vapoursynth.Function.__call__
vapoursynth.Error: knlm.KNLMeansCL: only YUV444P10 and RGB30 are supported!
Okay, that is strange, normalls KNLMeansCL should support "8-16 int / 32 float GRAY, YUV, RGB, YCOCG".
Sadly I can't test this here since I only run MacOS in a VM which has no hardware accelleration at all.

As a workaround you could add a custom section before the denoising which uses:
Code:
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P10, range_s="limited")
# colorformat YUV444P10
this would tell Hybrid to convert the current YUV content to YUV444P10.

Cu Selur