filtering (moire / banding(?)) problem when downsizing video #112923
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#112923
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://blender.stackexchange.com/questions/300394/filtering-moire-banding-problem-when-downsizing-video/301814#301814
https://blend-exchange.com/embedImage.png?bid=9sBp9EMy
you might need to unpack the files first and relink them, since blender does not support packing VSE strips. thank you for your time
I assume you packed images/movies in VSE, but these do not support packing. Can you upload these separately?
images are packed within the file as 'references'
Thanks for info.
Since image is scaled down exactly by half, so I am not sure if bilinear interpolation is doing any work, will have to check though. Technically it should sample 4 neighboring pixels still, but this may be optimized out.
I have checked the code, and it indeed works as intended. With 0.5x scale each pixel of smaller image falls perfectly to pixel of large image, so there is no interpolation done effectively.
It is possilbe, that other editors do aditional processing or force different filtering, I can only speculate, but this is not done in VSE.
As for 3x3 subsampling being not as good still, that is still not aa bug but a good point on something that can be improved.
Just a note, that practically identical result to your reference can be achieved by blurring source image(1.5px radius), scaling down and offsetting image by 0.25px to force interpolation being used. I have checked performance of this method, and it is about 2x faster than 3x3 subsampling. @Jeroen-Bakker Do you think pre-blurring method/option could be added for bilinear downscaling?
Doubt that pre-blurring works in all cases as it depends on the amount of scale. Filtering can be improved as for example using EWA filtering when downscaling.
It's true, that it would be practical only to about 0.25x scale. Will read about EWA method seems promissing on first glance.
Just found out that my (not merged yet) PR #116628 seems to fix this issue.
Before:
After:
Fixed in
877d9c596a