Bug 503369

Summary: Razor tool causes audio tracks to clone and un-clone
Product: [Applications] kdenlive Reporter: UltravioletCombat
Component: Timeline & EditingAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Anonymized project file

Description UltravioletCombat 2025-04-26 00:28:57 UTC
Created attachment 180671 [details]
Anonymized project file

SUMMARY

When using the Razor tool to cut up a video with multiple attached audio tracks, it causes Audio Track 2 to overwrite Audio Track 1, then goes back to normal when the next cut is made, then repeats.

STEPS TO REPRODUCE
1. Add a video file in the timeline with more than one distinct audio track included.
2. Use Razor tool to split the footage into a smaller clip.
3. Use the Razor tool again to make another cut.

OBSERVED RESULT

In my current project, the second audio track (which is audio from a video game) will replace the first audio track (audio from my microphone), causing louder doubled audio until I make another cut, at which time it returns to normal until I make yet another cut.

EXPECTED RESULT

Making a cut in the timeline should preserve both audio tracks as they are, where they are.

SOFTWARE/OS VERSIONS
Version: 25.04.0 (N.B: also produced this bug on the previous version, 24-something)
Operating System: Fedora 41 Workstation (Xcb)
KDE Plasma Version: N/A
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

I am working with a recording originally made with OBS Studio 31 (using the Hybrid MP4 format available in that program), which was then cut down with LosslessCut to remove dead air segments from when I went AFK, so it is possible that my source footage causes some problem in the software (Worth noting: Kdenlive asked me to transcode it upon import, but then, Kdenlive also asks me to transcode seemingly EVERY video file I give it for reasons of "variable frame rate," and I have not done that here because the existing files are already very massive).

Additionally, attempting to work around this issue by taking zones in the Project Bin and then pulling them into the timeline from there also seems to cause the same issue, where I get clips that have my game audio duplicated instead of having my mic audio in Track 1 like they should.

I have attached my project file in hopes that it may help (edited internally slightly just to protect my privacy), and I have also recorded a video of this behavior in action: https://youtu.be/dMrLMppDHWM