Just beginner in VapourSynth, all works exept VS Editor (r19-mod-6.8) crashes at preview, output works fine and script checking - ok, but I need preview which works only with solid color or with external player (mpv, ffplay) but it not comfortable for me, is it another way to see preview?
+ Reply to Thread
Results 1 to 6 of 6
-
-
Does VS Editor show any error message when using the preview?
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Preview window open and less than second close also VSEditor.
I tried:
python -m vspreview avi.vpy
WARNING: Video Node 0: The following frame properties had to be assumed for previewing: <_Matrix=5 (BT.470bg), _Transfer=6 (BT.601), _Primaries=5 (BT.470bg)>
Than I added it to clip = core.std.SetFrameProps
but not helped, nothing happened. -
It looks you are not using vsedit but vspreview. Why don't you reference what you are actually using.
That WARNING is not an error. It looks it defaults to those properties so it can transfer your YUV video to RGB and put it on screen, that might not be the problem.
You can post your script here or try to use windows batch script:
Code:@echo off python -m vspreview avi.vpy pause
-
First I tried to see preview in vsedit, but after it crashes checked also vspreview and it crashes too, with mpv and ffplay "preview" works. More info:
Code:import vapoursynth as vs core = vs.core clip = core.ffms2.Source(r"C:\minidv\022v.avi") clip.set_output()
2025-06-03 11:11:15.347
Script was successfully evaluated. Output video info:
Frames: 1052 | Time: 0:00:42.080 | Size: 720x576 | FPS: 25/1 = 25 | Format: YUV420P8
VSEdit - F5:-> crash/close
python -m vspreview avi.vpy
2025-06-03 12:19:18.893: root: WARNING: Video Node 0: The following frame properties had to be assumed for previewing: <_Matrix=5 (BT.470bg), _Transfer=6 (BT.601), _Primaries=5 (BT.470bg)>
You may want to set explicit frame properties instead. See https://www.vapoursynth.com/doc/apireference.html#reserved-frame-properties for more information.
If add: clip = clip.std.SetFrameProps(
_Matrix=5,
_Transfer=6,
_Primaries=5
)
-> nothing
Code:import vapoursynth as vs core = vs.core clip = core.std.BlankClip(length=60, width=640, height=480, fpsnum=25) clip.set_output()
Win10 64, vapoursynth-portable, file MiniDV(pal) -
Here's an example of what I usually do:
Code:# Import scripts folder scriptPath = 'F:/Hybrid/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) import validate 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. clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED)
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
Installing vapoursynth
By rrats in forum Newbie / General discussionsReplies: 3Last Post: 30th Sep 2021, 16:35 -
vapoursynth errors
By IAAMM in forum Newbie / General discussionsReplies: 7Last Post: 29th Mar 2021, 10:14 -
Changing FPS in Vapoursynth
By leonsk in forum EditingReplies: 4Last Post: 23rd Nov 2020, 09:02 -
Vapoursynth error
By plshelpvapoursynth in forum Newbie / General discussionsReplies: 9Last Post: 23rd Aug 2020, 23:19 -
Vapoursynth colour issue
By ashateli in forum Video ConversionReplies: 8Last Post: 15th Jul 2020, 16:07