Bug 425634

Summary: Rendered video is one frame longer
Product: [Applications] kdenlive Reporter: CzAndrew <hello>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: major CC: fritzibaby, halis, julius.kuenzel, markng, snd.noise
Priority: NOR Flags: fritzibaby: timeline_corruption+
Version First Reported In: 20.08.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description CzAndrew 2020-08-21 11:54:15 UTC
SUMMARY
If I render a full project, than the rendered video is longer by one frame.

STEPS TO REPRODUCE
1. Open a new project.
2. Add a video file in the project bin.
3. Add a portion of the video to the timeline, then render the full project.

OBSERVED RESULT
The rendered project is longer by one frame.

EXPECTED RESULT
The rendered video should be exactly the same as in the timeline.

SOFTWARE/OS VERSIONS
Windows: Win10 Current

ADDITIONAL INFORMATION
Region settings: separator is "," instead of ".".
Comment 1 emohr 2020-08-30 13:55:37 UTC
Try the workarounf like in Bug 425640. What is your project fps?
Comment 2 Bug Janitor Service 2020-09-14 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 CzAndrew 2020-09-18 12:47:29 UTC
My project fps is 29.97.
Tried it with the newest v20.08.1, but the bug is still there.

Other method to observe the problem:
Open a new project, add a video file to the project bin, add the video file to the timeline, then render the project. Then add the rendered videofile to the project bin. 
At the length, you should see that the rendered file is longer by one frame, and if you add the two video files on top of eachother, then seems like kdenlive duplicates the last frame, so the two frames at the end of the rendered file are the same.
Comment 4 Bug Janitor Service 2020-10-03 04:33:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 CzAndrew 2020-10-03 13:46:54 UTC
My project fps is 29.97.
Tried it with the newest v20.08.1, but the bug is still there.

Other method to observe the problem:
Open a new project, add a video file to the project bin, add the video file to the timeline, then render the project. Then add the rendered videofile to the project bin. 
At the length, you should see that the rendered file is longer by one frame, and if you add the two video files on top of eachother, then seems like kdenlive duplicates the last frame, so the two frames at the end of the rendered file are the same.
Comment 6 Julius Künzel 2021-03-25 18:17:09 UTC
*** Bug 420165 has been marked as a duplicate of this bug. ***
Comment 7 Julius Künzel 2021-03-25 18:20:59 UTC
The duplicated frame at rendering end is an MLT issue, still open and not so easily fixable, see the discussion about this on MLT's mailing list:
https://sourceforge.net/p/mlt/mailman/message/37123029/
Comment 8 markng 2021-04-09 07:37:43 UTC
I have been using version 20.08.3 (and earlier versions too) and never encountered this issue (extra frame at the end), recently I updated to version 20.12.3 and started to run into this issue. Was MLT not used in earlier versions of kdenlive?
Comment 9 farid 2022-08-28 13:46:46 UTC
This seems to be fixed in latest version (22.08) can you please test?
Comment 10 markng 2022-08-30 07:23:16 UTC
I am using 21.04.1 and I am not experiencing this particular issue anymore