OpenCut icon indicating copy to clipboard operation
OpenCut copied to clipboard

[BUG] Video preview sometimes shows wrong layer when multiple video tracks are present

Open iguzelofficial opened this issue 1 year ago • 5 comments

Platform

win 11

Browser

chrome

Current Behavior

Image

When working with multiple video tracks in the timeline, the preview monitor sometimes shows the video content from the bottom-most track, even though the top video layer should be visible.

Expected Behavior

The topmost video clip should always be shown in the preview monitor, as it is visually "above" the others.

Recurrence Probability

Usually

Steps To Reproduce

  1. Create a project with at least 3 video tracks.
  2. Add separate video clips to the lowest track and split them into multiple segments.
  3. Add a full video clip on the top video track, fully covering the lower tracks in terms of timing and position.
  4. Scrub through the timeline or press play.

https://github.com/user-attachments/assets/c7561b75-2cb8-41fa-a8a2-3a72b1287d0d

Anything else?

Expected Result: The topmost video clip should always be shown in the preview monitor, as it is visually "above" the others.

Actual Result: Occasionally, the preview monitor shows content from the bottom track instead of the top one, especially when lower tracks are split into multiple segments.

Notes:

  • All tracks are visible (not muted/hidden).
  • No opacity or blend modes applied.
  • No track effects or nesting used.
  • Issue is inconsistent, but more frequent when lower track has multiple split parts.

iguzelofficial avatar Aug 06 '25 14:08 iguzelofficial

There is new canvas-based preview being worked on which will replace the current DOM-based preview.

Not sure if the canvas-based preview has the same issue you experienced, but it should be checked.

alamshafil avatar Aug 06 '25 15:08 alamshafil

Hi! I’ve opened a PR that should fix this bug: https://github.com/OpenCut-app/OpenCut/pull/532

Could you try the PR branch and let us know if it resolves the issue on your setup?

If you can, please share:

Your OS and browser versions A short screen recording Whether the top track consistently stays on top while scrubbing/playing, especially when lower tracks are split

Justin322322 avatar Aug 08 '25 13:08 Justin322322

Hello, I think there are many updates that haven't been made live yet. because there is no change. The error condition persists. However, the mute button on the timeline does not work. When I tried to mute the audio within the video, the audio was not muted. @Justin322322

https://github.com/user-attachments/assets/7b3c53bb-7e2c-43a5-be14-5b2c75408ba6

iguzelofficial avatar Aug 08 '25 16:08 iguzelofficial

@iguzelofficial I was able to fix the mute issue in the timeline, we just need to wait for the maintainer to merge this PR https://github.com/OpenCut-app/OpenCut/pull/532

https://github.com/user-attachments/assets/a5d4ab65-e6f5-4753-9474-9c0a75b916e1

Justin322322 avatar Aug 09 '25 00:08 Justin322322

This bug has been fixed in the live version. Issues can be closed.

iguzelofficial2 avatar Aug 13 '25 11:08 iguzelofficial2