Adding files to Timeline is a complete mess: "after last file" does not work, new files are misplaced, overlap indicated wrongly
Scott was running into some weird behaviour of the updated HZT version. I was double checking the behaviour and it soon started to become really messy and confusing. These are major issues and they should be fixed as soon as possible (pausing work on #cotanz etc.), because these things will cause a lot of frustration for the users and will probably keep them from using the tool if they run into some of these issues.
Here are some of the issues I discovered:
-
Adding a video "After last file" does only work with a new Timelines and/or only sometimes and only if I don't use any other method to add a new video in the meantime. If I (for example) add a video to an older, existing Timeline using "custom position" and right afterwards another one with the option "after last file", the last file ends up somewhere in the past but not after the last file on the Timeline. I suppose the array with the items on the Timeline is somehow not initialised and updated correctly. It's really hard to tell what exactly goes wrong because it also happens on newly created Timelines, if I'm doing it in a wrong order (see next paragraph).
-
Also, "after last files" regularly seems to adopt the start time of the video after which the new video should be positioned. Here is some mess I created using "after last file": The very first video on top was added using "custom position" (current date/time), all others were added using "after last file". While it worked once, the two other files were positioned at the same start time as the previous ones:
-
It's also quickly gets confusing because the Timeline Viewer often does not update after you added a video or any other file using "after last file", although the automatic update has been an issue quite a few times and should already be fixed (several times). More generally, after deleting files the Timeline Viewer also does not update OR it does update but still shows the deleted file. This is not related to using the "add after last file" option.
-
There seems to be a major issue with annotations that don't have a length (images) in calculating the overlap and displaying the files correctly. If I add an image basically all other files/annotations which follow are shown as "overlapping" as if the image annotation has a endless duration thus overlaps with everything that follows:
- Last but not least, things work better when I only use "custom position". However, sometimes videos are recognised as overlapping with other videos although there are no overlaps:
First case with a really weird view:
Second case: here it is only the hint button that indicates an overlap which does not exsist:
@anton.koch: I know you have a lot of other things to do, but I'm a bit worried that this might need your attention in terms of fixing the way the overlap of files (with and without duration) is calculated and in terms of checking the array(?) that is used to calculate the position for the "after last file" option, as well as the update after adding/deletion of files. Otherwise we might mess around with these things for another few months and if users run into these issues it's really causing a lot of trouble.