Bug 369585

Summary: Timeline corruption due to speed effect
Product: [Applications] kdenlive Reporter: farid <snd.noise>
Component: Video Effects & TransitionsAssignee: Vincent PINON <vpinon>
Status: RESOLVED FIXED    
Severity: major CC: aslanex, blackendwhite, e.vakhromtsev, enzo.gianvittorio, evorster, francesco.cimorelli, fritzibaby, kmiller2794, luanlmd, meequz, qubodup, riku.seppala, samoilov.lex, simonandric5, sundman, svofski, varchola, wegwerf-1-2-3
Priority: NOR Flags: fritzibaby: timeline_corruption+
Version: 16.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: corruption

Description farid 2016-09-30 22:51:16 UTC
Havent been able to reproduce it though... please see video.

Reproducible: Sometimes
Comment 1 farid 2016-09-30 22:52:49 UTC
Created attachment 101365 [details]
corruption

Notice how the project monitor plays a clip even though the timeline is empty.
Comment 2 farid 2016-09-30 23:17:07 UTC
So after the corruption happens, close the project and start it again. You will see duplicated clips created. Those clips are invisible in the timeline before restarting the project. (See video.)
Comment 3 Evert Vorster 2016-10-01 00:41:48 UTC
That looks eerily familiar. 

In all honesty, I don't think kdenlive handles the changing of the clip length in the timeline very well. The speed effect is thoroughly broken, and really should be depreciated and get a warning. 

The good news here is that the "reverse clip" clip job has been modified to handle any speed form -10,000% to 10,000%. 
This gives you an .mlt file with the desired speed. Kdenlive's handling of .mlt files is rock solid, and you get sound support thrown in for free, even if you have automatically split video. Also, proxies work on .mlt files. 

I hope this helps?
Comment 4 farid 2016-10-30 01:23:39 UTC
*** Bug 371808 has been marked as a duplicate of this bug. ***
Comment 5 Aleksey Samoilov 2016-10-30 05:41:28 UTC
I don't understand how use "reverse clip" for change speed. Can someone explain me?
Comment 6 farid 2016-10-30 14:03:37 UTC
(In reply to Aleksey Samoilov from comment #5)
> I don't understand how use "reverse clip" for change speed. Can someone
> explain me?

You will get better help asking in the forums, g+ community or mailing list.
Comment 7 Christoph Feck 2017-01-01 15:49:13 UTC
*** Bug 373480 has been marked as a duplicate of this bug. ***
Comment 8 Mikhas' 2017-01-10 15:20:54 UTC
I want so much this bug to be fixed! It's pretty hard to work with kipping in mind that you can't select speeded clips with Shift. May I donate or do something else to force the fixing?
Comment 9 farid 2017-01-11 14:24:26 UTC
(In reply to Mikhas' from comment #8)
> I want so much this bug to be fixed! It's pretty hard to work with kipping
> in mind that you can't select speeded clips with Shift. May I donate or do
> something else to force the fixing?

Mikhas' I know how you feel and I have stopped using the speed effect in Kdenlive due to the corruption issues. We are starting to do a timeline refactoring to fix all this corruption issues and will is due to be released in April. Please contact the mailing list to see ways how you can help out. 

Thanks for your support.
Comment 10 Wegwerf 2017-01-20 14:19:12 UTC
Tried the speed effect again, just to see it disappearing on project reload. Sad. Still using ffmpeg to render separate variants of the clips where I need to change the speed.
Comment 11 farid 2017-01-21 00:49:40 UTC
(In reply to Wegwerf from comment #10)
> Tried the speed effect again, just to see it disappearing on project reload.
> Sad. Still using ffmpeg to render separate variants of the clips where I
> need to change the speed.

hopefully all this timeline corruptions will be fixed after the refactoring.
Comment 12 Evert Vorster 2017-02-02 07:01:17 UTC
Seriously, the speed effect is broken. 

Just use the "reverse clip" clip job and set a playback speed. 
This is the only way I can reliably change the playback speed of a clip in kdenlive and not have the corruption issues.
Comment 13 farid 2017-03-05 14:58:11 UTC
*** Bug 374488 has been marked as a duplicate of this bug. ***
Comment 14 farid 2017-05-13 20:49:32 UTC
*** Bug 379106 has been marked as a duplicate of this bug. ***
Comment 15 svofski 2017-06-15 10:43:07 UTC
I experience similar symptoms without using speed effect. Instead I'm an avid user of ripple delete (mark in, mark out, shift-x). A similar situation eventually happens, duplicate clips created, they cannot be moved or deleted, timeline has empty spaces that cannot be fixed. Restarting kdenlive sometimes helps. This bug is frequent, but very hard to reproduce on purpose.
Comment 16 farid 2017-06-16 00:18:39 UTC
(In reply to svofski from comment #15)
> I experience similar symptoms without using speed effect. Instead I'm an
> avid user of ripple delete (mark in, mark out, shift-x). A similar situation
> eventually happens, duplicate clips created, they cannot be moved or
> deleted, timeline has empty spaces that cannot be fixed. Restarting kdenlive
> sometimes helps. This bug is frequent, but very hard to reproduce on purpose.

Soon we will release an alpha version of the refactoring branch which will fix this issues. Stay tuned and help us test it if you can.

Thanks.
Comment 17 svofski 2017-06-16 23:10:03 UTC
> Soon we will release an alpha version of the refactoring branch which 
> will fix this issues. Stay tuned and help us test it if you can.
Excellent news!
I will be happy to test, but I'm a Windows user and I guess the fix will take a while to propagate to the Windows builds?
Comment 18 farid 2017-06-22 13:40:24 UTC
(In reply to svofski from comment #17)
> > Soon we will release an alpha version of the refactoring branch which 
> > will fix this issues. Stay tuned and help us test it if you can.
> Excellent news!
> I will be happy to test, but I'm a Windows user and I guess the fix will
> take a while to propagate to the Windows builds?

Well, our great vpinon, just released a windows build for the refactoring version: 

https://files.kde.org/kdenlive/unstable/kdenlive-refactoring-20170621-w64.7z

NB: Remember this is pre-alpha software.
Comment 19 kalimerox 2017-07-20 15:18:37 UTC
same here. a bug i remember from 0.9.8

When applying the speed effect, often the timeline gets messed up in an unpredictable way, one thing that happened to me (on larger projects, so it is hard to reproduce with a view steps): the effect works well, but other clips get messed up or become invisible , but play back correctly. also vice versa: clips added to the timeline get played back correctly, but when i render the timeline the new clip stays black, etc.. 

@evert forster this is a helpful information! the speed effect would better just be removed! or what i did lately: open a project with the one file you need the speedeffect, render it out "lossless" with the speed effect and insert it into your project.. it s cumbersome, but safes you from messing up everything..
Comment 20 Vincent PINON 2017-09-18 09:49:44 UTC
*** Bug 372819 has been marked as a duplicate of this bug. ***
Comment 21 Vincent PINON 2017-09-18 09:50:39 UTC
*** Bug 376915 has been marked as a duplicate of this bug. ***
Comment 22 riku.seppala 2018-01-06 15:32:03 UTC
So speed effect is totally broken on 17.12.0. It use to work for me at least with 17.04. Now there is no way to do slow motion? Clip job duplicate with speed change wont work either...
Comment 23 Evert Vorster 2018-01-09 13:31:52 UTC
Riku, the duplicate clip with speed change being broken is a new bug. I'll play with it a little and then put in a bug report. 

Kind regards,
-Evert-
Comment 24 farid 2018-01-09 13:41:18 UTC
(In reply to Evert Vorster from comment #23)
> Riku, the duplicate clip with speed change being broken is a new bug. I'll
> play with it a little and then put in a bug report. 
> 
> Kind regards,
> -Evert-

AFAIK, the current code base is not maintained so this bug will not get a fix. After the timeline refactoring is finished, the devs will introduce a rewritten speed effect fixing all these issues.
Comment 25 Evert Vorster 2018-01-09 15:57:52 UTC
Hi there, Riku. 

I personally use a package called SlowmoVideo. It very slow, but does interpolation between frames and is very high quality. I did submit a bug, it might be a quick fix. 

Kind regards,
-Evert-
Comment 26 riku.seppala 2018-01-09 16:11:16 UTC
I'll check that. Thanks.
Comment 27 Marcus Sundman 2018-11-15 21:57:59 UTC
*** Bug 401037 has been marked as a duplicate of this bug. ***
Comment 28 farid 2019-04-25 12:12:40 UTC
Finally :D