Blender VSE Glitsches when Seeking/Scrubbing clips with split cuts #100672

Closed
opened 2022-08-28 12:09:32 +02:00 by Michael · 4 comments

System Information
Operating system: Ubuntu 20.04
Graphics card: nvidia rtx 3070

Blender Version
Broken: Blender 3.2.2 and blender-3.4.0-alpha+master.2a2ca3292a93-linux.x86_64-release
Worked: i don't know

Short description of error
Doing lots of seeking/scrubbing and performing split cuts makes the preview glitsch (frames jumping, being displaced or frozen)
I filed another bugreport (#100495) reporting the same issue. This bug turned out to be due to a broken video file. However I sill experience some glitsches in the preview when scrubbing/seeking through other files, doing split cuts to it and then previewing it. When using current alpha glitsches often go away when refreshing the vse. However I still feel this is a bug since a glitsch in the preview can lead to editing mistakes and refreshing before/after each edit would be very tedious.

Exact steps for others to reproduce the error

Based on the default startup or an attached .blend file (as simple as possible).

Open new blendfile and load factory settings
Import SmartphoneRobot_Final.
(do not generate proxies)
Delete audio
extend preview range to include the whole clip
move towards the end of the file and do lots of scrubbing (with mouse and cursor keys)
do some (many) split cuts
repeat those two steps a view times
preview everything, you will see glitsches / frames jumping etc.

What i usually do is, try to split at the exact frame where there is a new szene in die clip. sometimes I find the cuts to be a few frames off when examining it later (this is probably not important to reproduce it but makes the problem obvious)
Problems are more obvious with SmartphoneRobot_FiNAL but I included another file that is not perfect. Both videos where rendered using blender vse with power seqeuncer render preset.
Attached blend files where created in current alpha. Attached video files where rendered using blenders current version back in april 2020 / february 2021.
Since my last bug report was due to a "broken" file I looked into my old work files and I have no reason to believe these two sample files where also re-encoded at some point. But please investigate this.
Alpha_SmartphoneRobotTest.blend

VPS_DIYTouchCube_Tutorial.mp4

SmartphoneRobot_FINAL.mp4

Alpha_RGBTouchCubeTest.blend

**System Information** Operating system: Ubuntu 20.04 Graphics card: nvidia rtx 3070 **Blender Version** Broken: Blender 3.2.2 and blender-3.4.0-alpha+master.2a2ca3292a93-linux.x86_64-release Worked: i don't know **Short description of error** Doing lots of seeking/scrubbing and performing split cuts makes the preview glitsch (frames jumping, being displaced or frozen) I filed another bugreport (#100495) reporting the same issue. This bug turned out to be due to a broken video file. However I sill experience some glitsches in the preview when scrubbing/seeking through other files, doing split cuts to it and then previewing it. When using current alpha glitsches often go away when refreshing the vse. However I still feel this is a bug since a glitsch in the preview can lead to editing mistakes and refreshing before/after each edit would be very tedious. **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). Open new blendfile and load factory settings Import SmartphoneRobot_Final. (do not generate proxies) Delete audio extend preview range to include the whole clip move towards the end of the file and do lots of scrubbing (with mouse and cursor keys) do some (many) split cuts repeat those two steps a view times preview everything, you will see glitsches / frames jumping etc. What i usually do is, try to split at the exact frame where there is a new szene in die clip. sometimes I find the cuts to be a few frames off when examining it later (this is probably not important to reproduce it but makes the problem obvious) Problems are more obvious with SmartphoneRobot_FiNAL but I included another file that is not perfect. Both videos where rendered using blender vse with power seqeuncer render preset. Attached blend files where created in current alpha. Attached video files where rendered using blenders current version back in april 2020 / february 2021. Since my last bug report was due to a "broken" file I looked into my old work files and I have no reason to believe these two sample files where also re-encoded at some point. But please investigate this. [Alpha_SmartphoneRobotTest.blend](https://archive.blender.org/developer/F13425122/Alpha_SmartphoneRobotTest.blend) [VPS_DIYTouchCube_Tutorial.mp4](https://archive.blender.org/developer/F13425120/VPS_DIYTouchCube_Tutorial.mp4) [SmartphoneRobot_FINAL.mp4](https://archive.blender.org/developer/F13425121/SmartphoneRobot_FINAL.mp4) [Alpha_RGBTouchCubeTest.blend](https://archive.blender.org/developer/F13425124/Alpha_RGBTouchCubeTest.blend)
Author

Added subscriber: @Michael-47

Added subscriber: @Michael-47
Author

Added subscriber: @iss

Added subscriber: @iss

Thanks for files.
As far as I can see, this is same issue as #95683.

The issue is, that ffmpeg does only allow to seek based on time, but internally it does not, which can result in incorrect frame being displayed. Also due to nature how video encoding works, seeking backwards frame by frame is not possible.

Before 2.93 version, there was quite big offset applied to seeking, which is why playback was quite slow.

From what I have read there is no way to correct for undesirable ffmpeg behavior. But I have done few tests applying small seek offset does not seem to affect performance too much, even in worst case scenario. I will do some measurements to quantify possible regression. I think it is better to lose few percent of FPS to prevent such inaccuracies as they are not so rare. Challenge may be finding how big this offset must be, so that users would not encounter this issue.

For now will merge to original report

Thanks for files. As far as I can see, this is same issue as #95683. The issue is, that ffmpeg does only allow to seek based on time, but internally it does not, which can result in incorrect frame being displayed. Also due to nature how video encoding works, seeking backwards frame by frame is not possible. Before 2.93 version, there was quite big offset applied to seeking, which is why playback was quite slow. From what I have read there is no way to correct for undesirable ffmpeg behavior. But I have done few tests applying small seek offset does not seem to affect performance too much, even in worst case scenario. I will do some measurements to quantify possible regression. I think it is better to lose few percent of FPS to prevent such inaccuracies as they are not so rare. Challenge may be finding how big this offset must be, so that users would not encounter this issue. For now will merge to original report

Closed as duplicate of #95683

Closed as duplicate of #95683
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
2 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#100672
No description provided.