VSE: confusing strip color manipulation #110635
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110635
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?
System Information
Operating system: Windows 11
Graphics card: RTX 4060 Laptop GPU
Blender Version
Broken: all current versions
Worked: couldn't find any
Short description of error
I am using D-Log DJI drone footage. Finding and applying the correct color transform is a pain in the a.. but I got it working.
My footage is a bit overexposed so I tried the obvious: "Color > Multiply" to reduce EV.
For values below 1.0 the Alpha channel ist reduced.
I could not find anything on the intent of this issue. To me this makes no sense:
Exact steps for others to reproduce the error
Side note
Saturation is applied before "conversion to float" if checked.
My footage is already in float. So color space transform obviously takes place before entering preprocessing stage. Looking at the code, the conversion to float tries to transform to sequencer color space if applicaple. Depending on the color space configuartion, the transform can happen before or after modifying the saturation.
Also: some combinations of strip and sequencer color space yield different results for "color>multiply" with and without "convert to float". But I need to test this some more.
Can confirm that this applies to all types of strip, not limited to image or HDR videos. IMO multiplying in the color section should not affect alpha.
Looks like it uses a simple approach of multiplying all
imbuf
channels insource/blender/sequencer/intern/render.cc
:I think the best way to do this is just use the mul value on
RGB
channel and use the opacity onA
channel, but this can break existing files without versioning. (Or is there any pre-multiply magic going on here?)@iss any ideas?
Yes. I tried to track down any reason for that. I cannot find a reasoning for applying the factor to alpha and documantation doesn't even mention alpha and only refers to "increasing the brightness".
On further thought, this looks like another problem. The opacity of BLEND_REPLACE is baked into the image by fading it to black. This is okay if you ignore the alpha channel. Ifalpha channel is preserved in the output, the blend_opacity is applied twice. Once by color multiplication and once in the alpha channel.
For any factor larger than 1.0 nothing would change since alpha is generally clamped to 1.0. Excecpt for fringe cases where the strip actually has an alpha mask. In this case, any feathering in the mask would no longer blow out,.
The question is if anyone actually used color multiply with a factor lower than 1 in a meaningful way. The color multiply is not really documented for values below 1.0 and there are no tutorials using it (that I could find) so the impact is probaly close to zero.
Multiplication with and without affecting alpha are used for number of different goals. Adjusting exposure by simple multiplication I think would be OK in linear colorspace, but for sRGB footage I would rather do this as part of colormanagement.
In any case, I don't think we will know how this feature was intended to be used exactly. But I would agree, that multiply perhaps should operate on RGB channels only, similar to compositor. Personally, I don't think, that breaking compability in this case would cause issues in most files.
So I will check OCIO features first for EV, and only modify multiply feature if OCIO does not help in this case. Or perhaps I could re-purpose multiplication for exposure as that was likely primary use-case.
My guess is, multiplication and saturation were some basic color adjustment functionality since before OCIO was adopted. I can't trace it bac far enough to verify though.
I'm new to collaborative coding but have some years of experience coding on my own.
I'd like to tackle this as a small first contribution if you don't mind.
I definitele wouldn't mind contributions in this area. If you need any help, feel free to ask here or on blender.chat platform(same handle).
I would encourage you to follow https://wiki.blender.org/wiki/Building_Blender which is easy, and https://wiki.blender.org/wiki/Process/Contributing_Code. There are some guidelines to follow, but for smaller patches it is mostly common sense stuff.
Hannes Loeschke referenced this issue2023-08-09 22:05:59 +02:00