Colorspace in the video sequencer is empty #51898

Closed
opened 2017-06-26 11:59:05 +02:00 by Tal Hershkovich · 11 comments

System Information
Operating system and graphics card
Debian "jessie", Geforce 580

Blender Version
Broken: 2.79 and 2.78c

Short description of error
When loading an older file for editing , the colorspace of all the strips in the video sequencer are gone (marked in red) Blender_colorspace_bug.jpg
Probably related to the addition of filmic.
I think it was also causing problems with rendering

Exact steps for others to reproduce the error
open an old editing file and check the colorspace of each strip in the video sequencer.
I can upload my file but it's 180MB compressed (packed with all the images inside).

to solve the probelm I wrote in the script editor:

  for seq in bpy.data.scenes['Video_editing'].sequence_editor.sequences_all:
      if seq.type == 'IMAGE':
          seq.colorspace_settings.name = 'sRGB'
**System Information** Operating system and graphics card Debian "jessie", Geforce 580 **Blender Version** Broken: 2.79 and 2.78c **Short description of error** When loading an older file for editing , the colorspace of all the strips in the video sequencer are gone (marked in red) ![Blender_colorspace_bug.jpg](https://archive.blender.org/developer/F643146/Blender_colorspace_bug.jpg) Probably related to the addition of filmic. I think it was also causing problems with rendering **Exact steps for others to reproduce the error** open an old editing file and check the colorspace of each strip in the video sequencer. I can upload my file but it's 180MB compressed (packed with all the images inside). to solve the probelm I wrote in the script editor: ``` for seq in bpy.data.scenes['Video_editing'].sequence_editor.sequences_all: if seq.type == 'IMAGE': seq.colorspace_settings.name = 'sRGB'

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @TalHershkovich

Added subscriber: @TalHershkovich

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Please unpack the file, and send only the .blend. It should be small enough.

Please unpack the file, and send only the .blend. It should be small enough.

Added subscriber: @brecht

Added subscriber: @brecht

If you used the external Filmic OpenColorIO configuration to create the original .blend, then a blank color space is the intended behavior. Unfortunately that configuration has color space names that are incompatible with the builtin Blender one, and a blank menu means "color space not found". In general you need to use the same OpenColorIO configuration that you created the .blend with.

Files created with the builtin Blender configuration (that includes the Filmic view transforms in 2.79) will not have this problem, so I don't think there's a Blender bug here. What could be improved is guessing of an appropriate replacement when the color space is not found.

If you used the external Filmic OpenColorIO configuration to create the original .blend, then a blank color space is the intended behavior. Unfortunately that configuration has color space names that are incompatible with the builtin Blender one, and a blank menu means "color space not found". In general you need to use the same OpenColorIO configuration that you created the .blend with. Files created with the builtin Blender configuration (that includes the Filmic view transforms in 2.79) will not have this problem, so I don't think there's a Blender bug here. What could be improved is guessing of an appropriate replacement when the color space is not found.

Added subscriber: @Sergey

Added subscriber: @Sergey

It's possible to do something like this to fall back to a better default, however it only happens when the image file is actually loaded and permanently modifies the color space without any warning. I guess the ideal would be to check the validity of color spaces on .blend file load and then ask the user what to do, but that gets quite complicated.

diff --cc source/blender/imbuf/intern/colormanagement.c
index ff19a14,ff19a14..41232a6
--- a/source/blender/imbuf/intern/colormanagement.c
+++ b/source/blender/imbuf/intern/colormanagement.c
@@@ -966,7 -966,7 +966,9 @@@ static void curve_mapping_apply_pixel(C

  void colorspace_set_default_role(char *colorspace, int size, int role)
  {
--      if (colorspace && colorspace[0] == '\0') {
++      /* set default role if color space not specified, or not found due to
++       * using a different OpenColorIOR configuration */
++      if (colorspace && (colorspace[0] == '\0' || !colormanage_colorspace_get_named(colorspace))) {
                const char *role_colorspace;

                role_colorspace = IMB_colormanagement_role_colorspace_name_get(role);

Maybe @Sergey has an opinion on this, I'm tempted not to change anything here.

It's possible to do something like this to fall back to a better default, however it only happens when the image file is actually loaded and permanently modifies the color space without any warning. I guess the ideal would be to check the validity of color spaces on .blend file load and then ask the user what to do, but that gets quite complicated. ``` diff --cc source/blender/imbuf/intern/colormanagement.c index ff19a14,ff19a14..41232a6 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@@ -966,7 -966,7 +966,9 @@@ static void curve_mapping_apply_pixel(C void colorspace_set_default_role(char *colorspace, int size, int role) { -- if (colorspace && colorspace[0] == '\0') { ++ /* set default role if color space not specified, or not found due to ++ * using a different OpenColorIOR configuration */ ++ if (colorspace && (colorspace[0] == '\0' || !colormanage_colorspace_get_named(colorspace))) { const char *role_colorspace; role_colorspace = IMB_colormanagement_role_colorspace_name_get(role); ``` Maybe @Sergey has an opinion on this, I'm tempted not to change anything here.

This issue was referenced by 00f3ab2fb2

This issue was referenced by 00f3ab2fb2df9047b34943728621d12746b5d363

Actually we already have code for validating color space, we just didn't use that for sequencer strips yet. Fixed now.

Actually we already have code for validating color space, we just didn't use that for sequencer strips yet. Fixed now.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#51898
No description provided.