Bug 407081

Summary: Incorrect track duration when inserting a Kdenlive project into the current project timeline
Product: [Applications] kdenlive Reporter: b3_1987
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: fritzibaby, linux4cyril
Priority: NOR Flags: fritzibaby: Brainstorm+
Version First Reported In: 19.04.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description b3_1987 2019-04-30 09:45:22 UTC
When inserting an existing Kdenlive project into a new project, the track duration is incorrect (the track is much longer than the content). Both projects are at the same framerate (23.98).


STEPS TO REPRODUCE
1. Create a new project (framerate 23.98).
2. Insert an existing Kdenlive project file (framerate 23.98) into the current project.
2. Insert the project into the timeline.

OBSERVED RESULT
The inserted track is much longer than the actual content (about 40-50% longer).

EXPECTED RESULT
The inserted track should be of the same length as the actual content.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Operating System: Manjaro Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3
Kernel Version: 4.19.36-1-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 23,3 GiB of RAM
Comment 1 Cyril 2019-05-07 14:15:13 UTC
Bug reproduced
Comment 2 emohr 2019-05-11 12:31:28 UTC
Thank you for reporting.
Please upload the Kdenlive project file which you inserted into a new project.
Do you have used any effect like speed effect in the inserted Kdenlive project?
Do you insert a pre-19.04 project file into Kdenlive 19.04?
Comment 3 Jean-Baptiste Mardelle 2019-05-16 11:26:23 UTC
I can confirm and have identified the problem, working on it thanks.
Comment 4 Jean-Baptiste Mardelle 2019-05-17 11:37:52 UTC
Git commit 74072058e88860e28eb2f2315447b7679800aca2 by Jean-Baptiste Mardelle.
Committed on 17/05/2019 at 11:37.
Pushed by mardelle into branch 'Applications/19.04'.

When importing a project file as clip, deduce the empty seek space

M  +1    -0    src/doc/kdenlivedoc.cpp
M  +29   -3    src/jobs/loadjob.cpp
M  +0    -13   src/monitor/monitor.cpp
M  +0    -1    src/monitor/monitor.h

https://invent.kde.org/kde/kdenlive/commit/74072058e88860e28eb2f2315447b7679800aca2