https://bugs.kde.org/show_bug.cgi?id=363734

--- Comment #7 from Marcus Sundman <sund...@iki.fi> ---
(In reply to Wegwerf from comment #6)
> As no-one seems to understand what the issue really is (me neither), and I
> strongly suspect it to be related to ffmpeg and MLT, and there has been no
> progress here as the OR did not attempt to clarify to the exte6that devs
> underst6the issue, I'm closing this.

How did I not clarify it? What is unclear?

> Please refrain from reopening this
> report unless you can clearly demonstrate and explain what the perceived bug
> really is (the screenshots don't help) and what it's clearly a bug in
> Kdenlive, and not MLT or ffmpeg.

I can't be sure in exactly which module the problem is, but I can describe the
problem.

In every video each frame is shown for a specific amount of time. Let's say I
have a 2 second video with a constant frame rate of 10 fps. (I.e., there's a
total of 20 frames, each of which is shown for 100ms.)
Now, let's load this video into a kdenlive project that uses a framerate of 30
fps.
We still want every input frame to be shown for 100ms. Since every project
frame is ~33ms each input frame should be shown 3 times in a row. (The output
should still be 2 seconds, which at 30 fps means 60 frames, and the original 20
frames should be stretched out to fill those 60 frames, meaning each input
frame becomes 3 output frames.)

With me so far? I don't know how to make this any clearer. To me it seems very,
very simple. 20 frames in, 60 frames out, so each input frame becomes 3
consecutive output frames. I really, really hope that this is clear now.
Please!

Now, the problem is that kdenlive does not distribute the input frames properly
into output frames. Let's name the 20 input frames above A, B, C, D, ..., S, T.
So if the 10 fps input is ABCDEFGHIJKLMNOPQRST you'd expect the 30 fps output
to be like AAABBBCCC...RRRSSSTTT (or at most with an 1-off rounding error
caused by the first and/or last frames to start/end at the halfway point, like
AABBBCCC...FFFGGGGHHH...MMMNNNNOOO...RRRSSSTT).

However, kdenlive does something quite random, like ABBBBBBCCDDDD... where
several frames are more than 1 frame off where they should be.

In other words, while in the original video each frame (A, B, ...) was 100ms
long, in the output the frames are shown for very varying lengths of time. Some
become too short, some too long.

I made a variable frame rate video where each frame shows the total amount of
time that has elapsed before that frame starts. So, there has been no time
before the 1st frame, so it shows 0:00.000. The 1st frame lasts for exactly 1
second, so the 2nd frame will show 0:01.000. The 2nd frame lasts for 0.993
seconds, so the 3rd frame will show 0:01.993. The 3rd frame lasts for 0.986, so
the 4th frame will show 0:02.979.
Load this video into kdenlive, encode it, and look at the output. If kdenlive
would respect the correct length of each frame then each output frame should
show about the same time code as its location in the timeline. But they do not.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to