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.

Hybrid 2022.03.20.1: No module named 'vsdpir'
#29
@sowbran:
y4m [error]: bad sequence header magic
x264 [error]: could not open input file `-'
is the error x264 reports when called with:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "C:\Users\Nefi\AppData\Local\Temp\encodingTempSynthSkript_2022-03-27@00_47_22_7010.vpy" - -c y4m | "C:\Program Files\Hybrid\64bit\x264.exe" --preset veryfast --crf 2.00 --profile high --level 4.1 --ref 3 --direct auto --b-adapt 0 --sync-lookahead 18 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --partitions i4x4,p8x8,b8x8 --no-fast-pskip --subme 5 --aq-mode 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 1:1 --non-deterministic --range tv --colormatrix bt470bg --demuxer y4m --input-range tv --fps 30033/1000 --output-depth 8 --output "C:\Users\Nefi\AppData\Local\Temp\2022-03-27@00_47_22_7010_02.264" -
which normally indicates a problem with the script, but the script:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'C:\Users\Nefi\Videos\LOVETAKES.webm'
# current color space: YUV420P8, bit depth: 8, resolution: 634x480, fps: 30.033, color matrix: 470bg, yuv luminance scale: limited, scanorder: progressive
# Loading C:\Users\Nefi\Videos\LOVETAKES.webm using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Nefi/Videos/LOVETAKES.webm", format="YUV420P8", cache=0, prefer_hw=0)
# Setting color matrix to 470bg.
clip = core.std.SetFrameProps(clip, _Matrix=5)
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5)
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 30.033
clip = core.std.AssumeFPS(clip=clip, fpsnum=30033, fpsden=1000)
clip = core.std.AddBorders(clip=clip, left=0, right=6, top=0, bottom=0) # add borders to archive mod 8 (vsBasicVSRPPFilter) - 640x480
# adjusting color space from YUV420P8 to RGBS for vsBasicVSRPPFilter
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="470bg", range_s="limited")
# Quality enhancement using BasicVSR++
from vsbasicvsrpp import BasicVSRPP
clip = BasicVSRPP(clip=clip, model=3, fp16=True)
clip = core.std.CropRel(clip=clip, left=0, right=6, top=0, bottom=0) # removing borders (vsBasicVSRPPFilter) -  634x480
# adjusting output color from: RGBS to YUV420P8 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="470bg", range_s="limited")
# set output frame rate to 30.033fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=30033, fpsden=1000)
# Output
clip.set_output()
looks fine too.
Ony thing that looks strange is the frame rate of the input, but I assume the input is vfr and the frame rate is correct.

Does:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" --info "C:\Users\Nefi\AppData\Local\Temp\encodingTempSynthSkript_2022-03-27@00_47_22_7010.vpy"

correctly report the characteristics of the clip?

In case it does, if you call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" --progress -c y4m "C:\Users\Nefi\AppData\Local\Temp\encodingTempSynthSkript_2022-03-27@00_47_22_7010.vpy"  C:\Users\Nefi\Videos\test.y4m"
does it create test.y4m ? (Warning: this will create an uncompressed file which will be huge if it works)


What NVIDIA drivers are you using? (I'm using 512.15 here)

Cu Selur

Ps.: I assume the Vapoursynth Preview does work correctly and shows no errors like it does for Dan64.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: Hybrid 2022.03.20.1: No module named 'vsdpir' - by Selur - 28.03.2022, 14:56

Forum Jump:


Users browsing this thread: 4 Guest(s)