Bug 403443

Summary: New track incorrect position
Product: [Applications] kdenlive Reporter: Yolan <yo.tekos>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: minor CC: fritzibaby, f_abitabile, pushkarkukde
Priority: NOR Flags: fritzibaby: Brainstorm+
Version First Reported In: Appimage - Refactoring   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 20.08.2
Sentry Crash Report:
Attachments: New track incorrect position

Description Yolan 2019-01-20 22:38:09 UTC
SUMMARY

1. On left column, right clic "add a new track"
2. I chose for example to put the new track UNDER an "A1" Audio existing track
3. The track appears above A1 or under/above another track !




SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: Ubuntu 18.10
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 emohr 2019-01-24 19:11:34 UTC
Just tested with Nigthly build #62. It works as expected. This should be solved.

If you like you can test with Kdenlive_Nightly_Appimage
https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/
Comment 2 f_abitabile 2020-05-30 22:56:26 UTC
Having the same problem in windows 10.  Kdenlive 20.04,1

Inserting a track, never goes where it supposed to and it creates a gap in between an existing Video and Audio belonging to the same clip.

I have 12 videos in the project and need to insert a video track between V1 and V2.
I select track V1, right click, Insert Track.

____________________________________________

The result is this:

V1 and A1 remain the same.
A2 is an empty track above V1.
V2 shows audio track of what was A2.
A3 is an empty track above V2

V3 shows what was V2 and this is expected as V2 would shift upwards to make space for the inserted tracks.  But the corresponded Audio is not adjacent to it and I can only move it downwards, when it needs to be upwards.

So, basically when it inserts a track above or below, instead of cutting between 2 fields, it skip one, hence splitting a pair of Video and Audio from the same clip.

Hopefully this can be resolved quickly as I have a video mosaic to finish but I need to be able to insert tracks correctly.
Comment 3 emohr 2020-05-31 11:27:16 UTC
Created attachment 128952 [details]
New track incorrect position

Confirmed. It happens with "mixed audio tracks" only. Step to reproduce see attachment.
Comment 4 emohr 2020-06-01 07:13:45 UTC
*** Bug 422272 has been marked as a duplicate of this bug. ***
Comment 5 Pushkar 2020-10-01 15:15:15 UTC
Hi ! I was able to reproduce the bug on KDE Plasma 5.19.5
Will try to resolve the issue.
Comment 6 Jean-Baptiste Mardelle 2020-10-04 10:06:15 UTC
Git commit 25ba5eaa1b51e6e3dafaed9c5aa84a67488245f8 by Jean-Baptiste Mardelle.
Committed on 04/10/2020 at 10:06.
Pushed by mardelle into branch 'master'.

Fix track insertion in mixed view mode.

M  +7    -6    src/timeline2/model/timelinemodel.cpp
M  +7    -2    src/timeline2/view/dialogs/trackdialog.cpp

https://invent.kde.org/multimedia/kdenlive/commit/25ba5eaa1b51e6e3dafaed9c5aa84a67488245f8
Comment 7 Jean-Baptiste Mardelle 2020-10-05 06:04:56 UTC
Git commit 1156c6d74a6d32f6607e346ffa95f8183f002b9d by Jean-Baptiste Mardelle.
Committed on 05/10/2020 at 05:42.
Pushed by mardelle into branch 'release/20.08'.

Fix track insertion in mixed view mode.

M  +7    -6    src/timeline2/model/timelinemodel.cpp
M  +7    -2    src/timeline2/view/dialogs/trackdialog.cpp

https://invent.kde.org/multimedia/kdenlive/commit/1156c6d74a6d32f6607e346ffa95f8183f002b9d