filtering (moire / banding(?)) problem when downsizing video #112923

Closed
opened 2023-09-26 22:28:37 +02:00 by shaqualeek · 8 comments

https://blender.stackexchange.com/questions/300394/filtering-moire-banding-problem-when-downsizing-video/301814#301814

image
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

https://blender.stackexchange.com/questions/300394/filtering-moire-banding-problem-when-downsizing-video/301814#301814 ![image](/attachments/4b751105-535d-4de1-9d1d-88517d921e31) 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
shaqualeek added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-26 22:28:38 +02:00

I assume you packed images/movies in VSE, but these do not support packing. Can you upload these separately?

I assume you packed images/movies in VSE, but these do not support packing. Can you upload these separately?
Richard Antalik added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-09-27 03:42:38 +02:00
Author

images are packed within the file as 'references'

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.

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.
Richard Antalik added
Status
Needs Info from Developers
and removed
Status
Needs Information from User
labels 2023-09-29 04:22:28 +02:00
Richard Antalik added the
Interest
Video Sequencer
label 2023-09-29 04:37:43 +02:00
Iliya Katushenock added the
Module
VFX & Video
label 2023-09-29 08:53:54 +02:00

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?

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?
Member

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.

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.

It's true, that it would be practical only to about 0.25x scale. Will read about EWA method seems promissing on first glance.
Richard Antalik added
Status
Confirmed
Type
Known Issue
and removed
Status
Needs Info from Developers
Type
Report
labels 2023-10-18 00:45:42 +02:00

Just found out that my (not merged yet) PR #116628 seems to fix this issue.

Before: blender-before.png

After: blender-after.png

Just found out that my (not merged yet) PR #116628 seems to fix this issue. Before: ![blender-before.png](/attachments/37e4a8ac-9f44-49a2-ba43-92104755544d) After: ![blender-after.png](/attachments/f8e30a64-730a-4bf5-8697-0952fc60cfe2)

Fixed in 877d9c596a

Fixed in 877d9c596abd3
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-01-08 16:54:56 +01:00
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112923
No description provided.