Bug 431376 - Image sequence does not seem to properly handle images of different sizes
Summary: Image sequence does not seem to properly handle images of different sizes
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 20.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-10 00:29 UTC by Luca Carlon
Modified: 2021-03-12 00:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Carlon 2021-01-10 00:29:38 UTC
SUMMARY
The slideshow produced by adding an image sequence seems to show images with the wrong size when transitioning from an image to the next one. Both in the preview and in the rendered video, when a new image appears, it seems to appear scaled to the size of the previous image. After some milliseconds, the new image is shown with its proper size. I'm attaching a couple of videos to show the result.

STEPS TO REPRODUCE
1. Create a new project (HD 1080p 60fps, but I tried other setups).
2. Add an image sequence.
3. Select a sequence of images and ensure the sequence contains alternating images of different sizes. This is the set I used: https://app.box.com/s/df55s9ldew4sj4nyk6t9h7k7u96fjtuw.
4. I can see the issue both in the preview and in the rendered video, but not for all transitions. The issue did not seem to be entirely deterministic.

OBSERVED RESULT
Resulting video shows the selected sequence of images. In some cases, when transitioning from one image to the next, the following image is shown with a size similar to the previous one, resulting in distortion. After some milliseconds, the geometry is fixed.

EXPECTED RESULT
When transitioning from one image to the next, the next image should always be shown with its own geometry, without distortion.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Manjaro
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I followed the steps above and this is the result:
* Video without dissolve transition:
https://app.box.com/s/rcgtxwojmjxnleava475f7eehkogjagy
* Video without any animation: https://app.box.com/s/uaqlftg0sb6xwhc7meiqdu8boi0l123z
Comment 1 Julius Künzel 2021-02-21 11:47:14 UTC
Confirmed. This most likely a MLT issue because it is repeatable with the with melt cmd tool

$ melt datafolder/.all.jpg
Comment 2 Luca Carlon 2021-02-21 13:29:02 UTC
Reported here: https://github.com/mltframework/mlt/issues/663.
Thanks!
Comment 3 farid 2021-03-11 22:10:08 UTC
Hi Luca

Thanks for reporting this upstream. :)

It seems to be fixed: https://github.com/mltframework/mlt/commit/88d943ae3b15015307245a384c9a88bbd6667203

Probably there will be a new release of MLT soon and will be available in the 21.04 appimage. Otherwise you can test by building master.
Comment 4 farid 2021-03-11 23:09:00 UTC
Ha, thanks for the fix I realized it was you that submitted it. :)
Comment 5 Luca Carlon 2021-03-12 00:30:18 UTC
Hello,
yes, with that patch I can't reproduce the issue in melt or kdenlive. Hope it's fixed.
Thanks for your help.