Bug 469330 - Clip section shows different part of clip after dragging to timeline
Summary: Clip section shows different part of clip after dragging to timeline
Status: RESOLVED WORKSFORME
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: 23.04.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-03 20:37 UTC by osrs.deoptimize
Modified: 2023-06-06 03:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description osrs.deoptimize 2023-05-03 20:37:05 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Here's a video that shows my issue I'll explain below: https://www.youtube.com/watch?v=18wVcRhxOsc

When dragging a section of a clip from the clip preview into my timeline, a different part of the clip is added. In the example video above, I drag in the section of my source clip starting at around 3:32, but then the section of the clip around 7:20 appears in the timeline. Same thing happens for other clips in my project, but not all of them, despite all of them being recorded the same way (mkv files from OBS). I checked under Edit Duration, and the Start Crop for the clip is 00:03:32:40, which checks out.

STEPS TO REPRODUCE
1.  Start a new project, add the clip (attempted to attach but it's 500+ MB) to the clip library
2.  Open the clip in the Clip Monitor, then select an in and out point somewhere in the middle of the video
3.  Drag the clip into the timeline

OBSERVED RESULT
A different section of the clip is added to the timeline

EXPECTED RESULT
The selected section of the clip should be in the timeline

SOFTWARE/OS VERSIONS
Windows: 21H2, build 19044.2846
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: Version 5.105.0
Qt Version: Version 5.15.9 (built against 5.15.9)

ADDITIONAL INFORMATION
- Tried on latest stable (23.04.0), as well as the latest build at the time of me finding this (23.07.70 (rev. 312e16117)), same results

-    Tried with and without the proxy clip, as well as deleting and recreating the proxy clip, same thing happens

-    The issue is consistently reproducible if I start a blank project, import that clip, and drag a section into the timeline. However, if we start by dragging in the entire clip, it looks fine in the preview and preview render, but then after shrinking the clip from the sides to the part I want, it moves to the wrong section of the clip again.

-    I did a preview render around that part after dragging the clip in the timeline, still see the wrong part of the footage, and despite the render seeming fine otherwise it says "Preview Rendering Crashed" at the bottom of the window with the following info:

[h264 @ 000001c5083db040] co located POCs unavailable
[h264 @ 000001c5083db040] co located POCs unavailable
[h264 @ 000001c508688040] co located POCs unavailable
[h264 @ 000001c508688040] co located POCs unavailable
[h264 @ 000001c508df19c0] co located POCs unavailable
[h264 @ 000001c508df19c0] co located POCs unavailable
[h264 @ 000001c50868fe00] co located POCs unavailable
[h264 @ 000001c50868fe00] co located POCs unavailable
[h264 @ 000001c508690600] co located POCs unavailable
[h264 @ 000001c508690600] co located POCs unavailable
[h264 @ 000001c508893280] co located POCs unavailable
[h264 @ 000001c508893280] co located POCs unavailable
[h264 @ 000001c508891680] co located POCs unavailable
[h264 @ 000001c508891680] co located POCs unavailable
[h264 @ 000001c508892a80] co located POCs unavailable
[h264 @ 000001c508892a80] co located POCs unavailable
[h264 @ 000001c508890e80] co located POCs unavailable
[h264 @ 000001c508890e80] co located POCs unavailable
[h264 @ 000001c509737400] co located POCs unavailable
[h264 @ 000001c509737400] co located POCs unavailable
[h264 @ 000001c509731800] co located POCs unavailable
[h264 @ 000001c509731800] co located POCs unavailable
[h264 @ 000001c509732800] co located POCs unavailable
[h264 @ 000001c509732800] co located POCs unavailable
[h264 @ 000001c509738800] co located POCs unavailable
[h264 @ 000001c509738800] co located POCs unavailable
[h264 @ 000001c509734800] co located POCs unavailable
[h264 @ 000001c509734800] co located POCs unavailable
[h264 @ 000001c509b5a5c0] co located POCs unavailable
[h264 @ 000001c509b5a5c0] co located POCs unavailable
+ + + RENDERING FINISHED + + +
Comment 1 Jean-Baptiste Mardelle 2023-05-04 11:24:38 UTC
Thanks for your report. This migth be an issue with the encoding of your files. Can you please try the following:

In the clip monitor, select the full clip, from first frame to the last (using I and O). Then right click on the Clip  Monitor, and in the context menu, select "Extract Zone".

This will make a lossless transcoding of your clip and add it to the Project Bin.

Now check if the same problem happens with this converted clip. If not, then this is an issue with your clips format and we will need a sample to understand the issue.
Comment 2 osrs.deoptimize 2023-05-07 22:03:11 UTC
Hi, thanks for taking a look! It seems that the problem is with the encoding of my files as you said. I tried the steps you listed and with the transcoded file I can't reproduce the issue. The original clip I showed in that video is too large to upload, but I have a different clip recorded on the same day that I'm seeing the same problem with, so I will attach that to help us understand the issue. 

Thanks again for your assistance!
Comment 3 osrs.deoptimize 2023-05-07 22:08:59 UTC
Actually, *that* file is also too large to attach directly, so I've uploaded it to google drive here: https://drive.google.com/file/d/1yTn0SMiLDQY7fzva1-nDXEMjjmbKxClH/view?usp=share_link
Comment 4 Bug Janitor Service 2023-05-22 03:45:46 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 Bug Janitor Service 2023-06-06 03:45:34 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!