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

Vapoursynth output has some problems #11

Closed
theChaosCoder opened this issue May 16, 2020 · 13 comments
Closed

Vapoursynth output has some problems #11

theChaosCoder opened this issue May 16, 2020 · 13 comments

Comments

@theChaosCoder
Copy link

theChaosCoder commented May 16, 2020

VSR50, win10 x64, Ryzen 2600, GTX 1070
On the right side is always a border with strange output

clip = 480p DVD ntsc source
clip = mvf.ToRGB(clip)
clip = core.anime4kcpp.Anime4KCPP(clip,zoomFactor=2, GPUMode = 1)

image

@theChaosCoder
Copy link
Author

Oh and the size is 1472x960. Not 1440x960! 32px from hell :D

@TianZerL
Copy link
Owner

VapourSynth required the width of the video must be multiple of 32, so I need to resize it to 1472x960 instead of 1440x960, you can cut it manually, or you can set output stream to YUV444, this will make the extra 32px to be black.

@theChaosCoder
Copy link
Author

But 1440 / 32 = 45 ...

@TianZerL
Copy link
Owner

But 720 not, you know.

@theChaosCoder
Copy link
Author

I see, so I just cut it off and everything is good.

@TianZerL
Copy link
Owner

TianZerL commented May 16, 2020

720/32 = 22.5, 23x32x2 = 1472, this is where the 32px from. 😀

@theChaosCoder
Copy link
Author

theChaosCoder commented May 16, 2020

I will just ask here: Only RGB24 is supported? Because RGB30+ looks very weird. Maybe an error msg would be better instead of showing the output.

EDIT:
Ahh vapoursynth.Error: Anime4KCPP: only RGB24 supported is only triggert for YUV but not RGB30 etc

@TianZerL
Copy link
Owner

The Anime4KCPP libs is designed for 8bit RGB image, the alpha channel will be ignore. so if your tried to input a video which is more than 24bit per pixel, you may get a weird output. I didn't tried it actually.

@TianZerL
Copy link
Owner

TianZerL commented May 16, 2020

BTW, what do you mean Maybe an error msg would be better instead of showing the output, you will get an error msg, won't you?

@TianZerL
Copy link
Owner

I just tried to input a RGB48 video stream (16bit for each R, G and B channel), it looks very wired, blurred screen.

@theChaosCoder
Copy link
Author

Yes and that should not be allowed, only RGB24.

@TianZerL
Copy link
Owner

Thanks for your suggestion, I have added a more detailed checking of RGB24, and give an error msg.

@TianZerL
Copy link
Owner

The problem has been completely solved in newest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants