Video Sequence Editor playback is choppy #56755

Closed
opened 2018-09-11 13:24:25 +02:00 by Sven Sahlmen · 14 comments

Hi,

My System is

Manjaro KDE Edition (17.1.12)

Ryzen 1600 @stock
GTX 1060 6GB @stock
16GB Corsair Vangeance Ram @stock 3000MHz

Blender Version
Broken??: 2.8 Hash (6b551c0b8c)
Worked: 2.79b Hash (32432d91bbe)

Short description of error

I can't get the Video Sequence Editor (2.8) to run smoothly its always full of hickups.

Exact steps for others to reproduce the error

I Just open a new instance of Blender 2.79b go to "video editing" import the (my first animation) file i attached and it plays without hickups from the beginning.

Now i do the same exact steps in Blender 2.8 and i can't get it to without hickups. In addition to this, it seems like the Memory usage increases with every play and pause i do by around 20-30 MB so like you can see on my screenshots, i reached 5GB in no time and its still choppy.

2.8 (Hash - 6b551c0b8cb).png

2.8.png

2.79b - (Hash - 32432d91bbe).png

2.79b.png

Erste Animation.mp4

Hi, My System is Manjaro KDE Edition (17.1.12) Ryzen 1600 @stock GTX 1060 6GB @stock 16GB Corsair Vangeance Ram @stock 3000MHz **Blender Version** Broken??: 2.8 Hash (6b551c0b8cb) Worked: 2.79b Hash (32432d91bbe) **Short description of error** I can't get the Video Sequence Editor (2.8) to run smoothly its always full of hickups. **Exact steps for others to reproduce the error** I Just open a new instance of Blender 2.79b go to "video editing" import the (my first animation) file i attached and it plays without hickups from the beginning. Now i do the same exact steps in Blender 2.8 and i can't get it to without hickups. In addition to this, it seems like the Memory usage increases with every play and pause i do by around 20-30 MB so like you can see on my screenshots, i reached 5GB in no time and its still choppy. ![2.8 (Hash - 6b551c0b8cb).png](https://archive.blender.org/developer/F4663993/2.8__Hash_-_6b551c0b8cb_.png) ![2.8.png](https://archive.blender.org/developer/F4663995/2.8.png) ![2.79b - (Hash - 32432d91bbe).png](https://archive.blender.org/developer/F4663998/2.79b_-__Hash_-_32432d91bbe_.png) ![2.79b.png](https://archive.blender.org/developer/F4664000/2.79b.png) [Erste Animation.mp4](https://archive.blender.org/developer/F4664004/Erste_Animation.mp4)
Author

Added subscriber: @riftaddi

Added subscriber: @riftaddi

Added subscriber: @kjy-4

Added subscriber: @kjy-4

~~Can you confirm whether or not 'AV-sync' is on or off in both versions? The default is different in 2.8. ~~ !! Turned out not to be relevant !!

I believe I've tracked down the root cause of the performance loss. Instead of just building the movie cache when loading frames it also caches frames into the color manager cache, adding greater delay and significantly increasing memory footprint. The memory limit is reached quickly causing the sequencer to thrash. Overall movie cache misses are more common and more problematic.

The key condition at fault here is the ColorManagedLook for the image buffer, which is currently "Filmic - Base Contrast" and has process_space = "Filmic Log" on the 2.8 branch. In 2.79 the value is "None" with process_space = "" which allows skipping color management caching.

I'm new to Blender Dev so I don't have a strong understanding of the color management code, or what changes are being made to it for 2.8. As such I'm not certain if this is a bug or just a side-effect of a WIP, and I can't make a informed patch. I'll continue looking into it and submit a patch if nobody more experienced picks this up first.

~~Can you confirm whether or not 'AV-sync' is on or off in both versions? The default is different in 2.8. ~~ !! Turned out not to be relevant !! I believe I've tracked down the root cause of the performance loss. Instead of just building the movie cache when loading frames it also caches frames into the color manager cache, adding greater delay and significantly increasing memory footprint. The memory limit is reached quickly causing the sequencer to thrash. Overall movie cache misses are more common and more problematic. The key condition at fault here is the `ColorManagedLook` for the image buffer, which is currently `"Filmic - Base Contrast"` and has `process_space = "Filmic Log"` on the 2.8 branch. In 2.79 the value is `"None"` with `process_space = ""` which allows skipping color management caching. I'm new to Blender Dev so I don't have a strong understanding of the color management code, or what changes are being made to it for 2.8. As such I'm not certain if this is a bug or just a side-effect of a WIP, and I can't make a informed patch. I'll continue looking into it and submit a patch if nobody more experienced picks this up first.
Author

I hope this is easy fixable.

And i did check the Sync mode in Both releases, in 2.79b it was active and in 2.8 i did play with all the options in the playback menu on the lower left. nothing helped.

thanks

I hope this is easy fixable. And i did check the Sync mode in Both releases, in 2.79b it was active and in 2.8 i did play with all the options in the playback menu on the lower left. nothing helped. thanks

Added subscribers: @Sergey, @mont29

Added subscribers: @Sergey, @mont29
Sergey Sharybin was assigned by Bastien Montagne 2018-09-12 15:08:22 +02:00

@Sergey sounds like something for you?

@Sergey sounds like something for you?

@riftaddi, is is still an issue with latest builds from buildbot? If so, please share simple .blend file, so we see your settings.

So far, doing factory startup, then creating new VSE project and adding single video strip there stays at 24 fps for me.

@riftaddi, is is still an issue with latest builds from buildbot? If so, please share simple .blend file, so we see your settings. So far, doing factory startup, then creating new VSE project and adding single video strip there stays at 24 fps for me.

Added subscriber: @StephenSwaney

Added subscriber: @StephenSwaney
Author

hey there, yeah it seems like im doing something wrong.

im back from Manjaro to Win10.

same video file and nothing else.

i open the latest blender build (downloaded 5 minuts ago), and i have the same problem. different OS different driver.

test.blend

hey there, yeah it seems like im doing something wrong. im back from Manjaro to Win10. same video file and nothing else. i open the latest blender build (downloaded 5 minuts ago), and i have the same problem. different OS different driver. [test.blend](https://archive.blender.org/developer/F5285908/test.blend)

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

There are couple of things which leads to slow playback in this file:

  • Color management set to Filmic
  • Time sync to set to something different from No-sync.

The former one requires extra processing power to convert sequencer result to a correct display space. The latter one makes it hard for frame cache to hit same frame again after the full playback was done.

We've now changed color management to default view for video editing workspace, which should solve performance for the newly created files. For the existing ones either disable Filmic or set Image Display Method in viewport settings to GLSL (this will work fine for your configuration, but will cause slowdown when high-res HDR images are used).

Surely, there are a lot of optimization we can do here, but it is not considered a bug. So thanks for the report, but closing it now.

There are couple of things which leads to slow playback in this file: - Color management set to Filmic - Time sync to set to something different from No-sync. The former one requires extra processing power to convert sequencer result to a correct display space. The latter one makes it hard for frame cache to hit same frame again after the full playback was done. We've now changed color management to default view for video editing workspace, which should solve performance for the newly created files. For the existing ones either disable Filmic or set Image Display Method in viewport settings to GLSL (this will work fine for your configuration, but will cause slowdown when high-res HDR images are used). Surely, there are a lot of optimization we can do here, but it is not considered a bug. So thanks for the report, but closing it now.
Author

This comment was removed by @riftaddi

*This comment was removed by @riftaddi*

Added subscriber: @brecht

Added subscriber: @brecht

Added subscriber: @EnzioProbst

Added subscriber: @EnzioProbst
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
7 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#56755
No description provided.