problems with RGB48 preview in l-smash source.

Issue #15 invalid
changhao fu created an issue

vapoursynth r35

VS Editor r12

L-SMASH-Works-r918-20161205-64bit

https://www.dropbox.com/sh/3i81ttxf028m1eh/AAABkQn4Y5w1k-toVhYLasmwa?dl=0

code example

import vapoursynth as vs
import sys
core = vs.get_core(accept_lowercase=True,threads=1)
a = r"F:\遊魂 2 -you're the only one- 遊戲開場動畫(中文字幕版).mp4"
res = core.lsmas.LWLibavSource(a,threads = 1,format = "RGB48")

When use Check script is says:

Script was successfully evaluated. Output video info:
Frames: 6928 | Time: 0:01:55.467 | Size: 1920x1080 | FPS: 60/1 = 60 | Format: RGB48

And it worked the benchmark well.

But in preview it said:

Error on frame 0 request:
Resize error 1026: RGB color family cannot be YUV
Error on frame 1728 request:
Resize error 1026: RGB color family cannot be YUV

Comments (6)

  1. Aleksey Lyashin repo owner

    Thank you for the provided L-SMASH builds.

    I could not reproduce your problem with my video source.

    Please provide your source video to test.

    With your description, the only way for this to happen I can think of is the frames of your video having individual properties that confuse the resize plugin used for previewing frames.

  2. Aleksey Lyashin repo owner

    Confirmed. lsmas doesn't set proper "_Matrix" property on format conversion. Don't use "format" property. Use this code instead:

    src_file = r"D:\vstests\遊魂 2 -you're the only one- 遊戲開場動畫(中文字幕版).mp4"
    src = core.lsmas.LWLibavSource(src_file, threads = 1)
    src = core.resize.Spline16(src, format=vs.RGB48)
    
  3. Log in to comment