Skip to content

I think the program uses a bad scaling algorithm, here's a potential fix. #128

@Hajker

Description

@Hajker

{This is only a suggestion that may improve videos authenticity.}

If I'm assuming correctly, the line 136 in Renderer.py contains bad code:
frame = cv2.resize(frame, dsize=container_wh, interpolation=cv2.INTER_NEAREST)

Change the INTER_NEAREST to something else, I recommend trying INTER_LINEAR or INTER_LANCZOS4, and your video will look much more authentic and softer, no more digitally shimmering pixels - (MORE SCALERS: https://docs.opencv.org/3.4/da/d54/group__imgproc__transform.html#ga5bb5a1fea74ea38e1a5445ca803ff121 ).
If you can, use "HANN" algorithm. At least on images it has the best anti aliasing and softness, from my limited testing, but I can't find it here.

I have not turned on the program because I can't, so this may or may not work. I only saw a preview of an outputted file from this program which didn't look right. Even in some of the preview images here on github I see the bad scaler being utilized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions