Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPC-BE x64 when to vs.RGBS freeze #92

Open
Ken1256 opened this issue Feb 27, 2024 · 3 comments
Open

MPC-BE x64 when to vs.RGBS freeze #92

Ken1256 opened this issue Feb 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Ken1256
Copy link

Ken1256 commented Feb 27, 2024

from vapoursynth import core
import vapoursynth as vs

pp = VpsFilterSource

matrix = "709"
pp = core.resize.Spline36(pp, format=vs.RGBS, matrix_in_s=matrix)
pp = core.resize.Spline36(pp, format=vs.YUV444P16, matrix=matrix, matrix_in=matrix, range=1)

pp.set_output()

if del pp = core.resize.Spline36(pp, format=vs.RGBS, matrix_in_s=matrix) work fine.

vs-mlrt need vs.RGBS to work.

@Ken1256 Ken1256 added the bug Something isn't working label Feb 27, 2024
@CrendKing
Copy link
Owner

I'm assuming you are testing with madVR? I can reproduce the issue, and the log shows this:
Resize error 2049: unrecognized matrix coefficients, which comes from VapourSynth. It freezes because no frame can be generated.

Maybe this operation can't use Rec.709 as the transfer matrix? I found a Doom9 thread similar to this, maybe it helps?

@Ken1256
Copy link
Author

Ken1256 commented Mar 1, 2024

from vapoursynth import core
import vapoursynth as vs

pp = VpsFilterSource

matrix = "709"

# pp = core.std.SetFrameProp(pp, prop="_Matrix", intval=2)
# pp = core.std.SetFrameProp(pp, prop="_Transfer", intval=2)
# pp = core.std.SetFrameProp(pp, prop="_FieldBased", intval=0)
# pp = core.std.SetFrameProp(pp, prop="_Primaries", intval=2)
# pp = core.resize.Spline36(pp, format=vs.RGBS, matrix=matrix, matrix_in=matrix, matrix_in_s=matrix)

pp = core.resize.Spline36(pp, format=vs.YUV444P16, matrix=matrix, matrix_in=matrix, matrix_in_s=matrix, range_in=0, range=1)
pp = core.fmtc.matrix(pp, mat=matrix, matd=matrix, fulls=True, fulld=True, col_fam=vs.RGB, bits=16)
pp = core.resize.Spline36(pp, format=vs.RGBS)
# pp = core.resize.Spline36(pp, format=vs.RGB24)
pp = core.fmtc.matrix(pp, mat=matrix, matd=matrix, fulls=True, fulld=True, col_fam=vs.YUV)
pp = core.fmtc.bitdepth(pp, bits=16, dmode=1)


pp.set_output()

fmtc work but slower, Is there any other way to use VapourSynth Resize to rgb?
Where can I find the avisynth_filter error log file?

@CrendKing
Copy link
Owner

Is there any other way to use VapourSynth Resize to rgb?

Well, you have to try changing the script yourself.

Where can I find the avisynth_filter error log file?

https://github.com/CrendKing/avisynth_filter/wiki/How-to-enable-logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants