VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. 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?
    Quote Quote  
  2. Does VS Editor show any error message when using the preview?
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. 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.
    Quote Quote  
  4. 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
    maybe you get printed something in cmd prompt
    Quote Quote  
  5. 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()
    VSEdit - F6:
    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
    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()
    -> works fine

    Win10 64, vapoursynth-portable, file MiniDV(pal)
    Quote Quote  
  6. 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)
    validate: https://github.com/Selur/VapoursynthScriptsInHybrid/blob/master/validate.py

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!