[BUG] Video preview sometimes shows wrong layer when multiple video tracks are present
Platform
win 11
Browser
chrome
Current Behavior
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
- Create a project with at least 3 video tracks.
- Add separate video clips to the lowest track and split them into multiple segments.
- Add a full video clip on the top video track, fully covering the lower tracks in terms of timing and position.
- 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.
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.
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
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 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
This bug has been fixed in the live version. Issues can be closed.