-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Begin and end point of clip with "Speed: forward only" filter randomly change #1498
Comments
The strangest thing happened. I opened again the project that was affected by this issue. I grabbed the left edge of the affected clip (the one whose start point wrt the original video was changed at some point without me changing it) and dragged it a tiny bit to the right. Then I grabbed it again and dragged it back to the left to exactly where it was. This should have changed nothing. But surprisingly, this "fixed" the screwed-up clip, changing the starting point back to what it was yesterday before it got "corrupted". By the way, I did this like three times because it ketp crashing. I suspect the crashes might be related to this issue. Perhaps something in the time calculations related with speed changes is screwed up, and sometimes it just cause the times to be computed incorrectly and sometimes leads to crashes. This is just speculation. I did not save after doing this, so I could reload the project and try it again and it was 100% reproducible. |
Your report sounds similar to this issue which was fixed 6 months ago: I wonder what version of MLT your distribution is using. As a test, it would be good to try the portable package that we provide from our download page. We ensure to have all the correct dependencies for Shotcut in our build:
Have you tried setting the Speed parameter in the clip properties panel? Most people prefer that if they are using a fixed speed that does not need to ramp up and down Some of your recent issues suggest that you are still in a learning/exploring mode with Shotcut. I would recommend that you spend some time on our Forum |
It's 7.22.0-1. Was the known issue fixed in mlt or Shotcut?
Sure, but this was clearly a bug.
Thank you, I had been looking for that and missed it. |
I've been trying my hardest to reproduce a problem here: move clips, trim them, open/close/reopen. In all my testing, the beginning and ending points are exactly where I left them. I'm not saying there isn't a bug here. But if there is, I have not found the steps to reproduce it.
If you trim the beginning of a clip with the Speed:Forward filter applied, it will absolutely change the frame that it starts and ends on. The Speed filter assumes that the clip is played at 1.0x speed up to the "in" point on the clip where it begins the apply the speed specified by the first keyframe. Is it possible that you trimmed the beginning of the clip while trying to do something else and that caused the unexpected results you see? |
Me neither (though I haven't tried hard to reproduce on purpose)
Sure but it doesn't seem to change in the expected way. I mean not always. One thing that I have observed (but I don't think is what happened in this case) is that when you do trim the beginning, it sometimes changes everything in an unpredictable, seemingly random way. Let's say I have a source video that is 10 seconds long and I take a 4-second piece in the middle of it. Then I apply the filter, starting at some speed S1 and ending at some other speed S2 >= S1. Then I trim off a few frames at the beginning (either by slicing at playhead and removing the first bit, or by dragging the left edge to the right). I'm not sure if in this case I did exactly that and that's exactly what happened, but instead of noticing right away I only noticed once I had saved, closed, and reopened the project.
In the way I described, it is possible; that is, it is possible that what triggered a definitely buggy behavior was the act of trimming the beginning (and/or the end) of a clip, and not just the act of moving it around on the timeline or even doing nothing at all. I mean, of course if I did something that I didn't intent to do I wouldn't know it, there's always the theoretical possibility that I made a mistake and I didn't realize, but I'm reasonably sure that's not what happened. It happened too many times for that to be the case. Again all of this is with 23.11.29 and with MLT 7.22.0-1. I assume that's after the fix you mentioned, otherwise this could be the bug that was already fixed. |
23.11.29 on Manjaro Linux (installed via Pamac)
I don't know what exact steps lead to reproducing this, but it has happened to me a few times already and believe me I'm not hallucinating.
Here's what I did:
So far, basic editing
7. On some of the clips in the timeline, added the "speed: forward only" filter to speed up the clip to 2x constant speed
Context: all I wanted to do was to speed up those clips to a constant speed of e.g. 2x. The only way I found was to use the "speed: forward only" filter, and it's a bit cumbersome to use. If I simply add the filter and change the speed, that speed gets applied to the particular point in time where the playhead happens to be at that particular moment, as if I'm creating some sort of keyframe there, and then the speed is interpolated linearly after and perhaps before that keyframe to 1.0x. So, in order to speed up a clip at a constant speed e.g. 2x, I need to position the playhead at the beginning of the clip, set the speed there, then put the playhead at the end, set the same speed there. And if I forgot to do this and changed the speed at some random point in the middle, I couldn't find how to correct that, I just delete the filter and start over.
Anyway, that part should be irrelevant to the issue.
The clips that had the filter now do not start at the same start and end point that they did.
I mean: at the place in the timeline where I had a sped-up clip, there's a sped-up clip. It has the same duration that it had, it has the same speed, it has the same duration (i.e. occupies the same timespan on the timeline), it is from the same file from the playlist that it was from, but it start and ends at different times than what I had done. And it's not by a small amount, it's a completely unrelated piece of the video.
This completely destroyed the editing work I had done.
I'm not sure whether this happened when moving clips around on the timeline, or when I saved and reopened the file. This had happened to me before, and I had noticed it while editing. So it's possible that it again happened when moving clips around on the timeline, and I failed to notice it right away and only noticed it when I reopened the project.
Just in case there's a misalignment between the behavior that I expect and some very unintuitive and unconventional but somehow internally consistent behavior that perhaps is by design (some very wicked design), I'll try to be extra explicit about the behavior that I expect when I speed up a clip and move it around on the timeline.
Let's say I have two videos in the playlist and they go like this:
I take some middle portion of SourceVideo1 and speed it up, then take a portion of SourceVideo2 without any filter, and I place them onto the timeline like this:
The text was updated successfully, but these errors were encountered: