Bug 354549

Summary: Audio tracks auto-mute depending on their order
Product: [Applications] kdenlive Reporter: Chris <chris>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: major CC: stevej, wegwerf-1-2-3
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: http://www.8bit-memories.com/tmp/kdenlive-audio-messup.png
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chris 2015-10-29 10:25:32 UTC
I am usually using a setup with many audio tracks and mute or delete audio on my video tracks. However by this, sometimes the actual audio tracks will fail to play depending on their composition. 
On Audio track 1 & 2 I have constant audio - from the beginning of my video till the end while track 3 & 4 alternate. In this case, track 4 may not play audio if there is no track playing on channel 3 (see screenshot).

Reproducible: Always

Steps to Reproduce:
1. Launch kdenlive and create a project with 4 video tracks or more and 4 audio tracks
2. Add some videos (without audio) and some audio on all tracks
3. Make sure you have gaps on audio track 3 while track 1,2 and 4 should play continously

Actual Results:  
While there is no audio on track 3, track 4 will not play.

Expected Results:  
Track 4 should produce audio.

Sometimes it helps to have audio tracks playing on video - sometimes it does not. I am sure there is a pattern to this, but depending on the complexity of the track setup, this is getting very complicated to figure out. If you check my screenshot, this is a definite case where Track 4 is muted.
Comment 1 Steve 2015-10-29 20:05:59 UTC
This sounds similar to my bug #353251 filed on 2015-09-27
https://bugs.kde.org/show_bug.cgi?id=353251
Comment 2 Wegwerf 2016-07-30 10:48:08 UTC
Chris, this sounds right like the so-called "internally added" audio mixers got, well, mixed up (sorry for the pun). I've seen this also with one of my older projects. We've found this out just these weeks and the recent Kdenlive 16.07.90 beta version already has fixes in place. There's even an online Kdenlive project analyzer that can help tracking down mixing issues: https://thediveo.github.io/kdenlive-project-analyzer/kdenlive-project-analyzer.html

I would like to ask you to try your existing project loading into the recent beta version. The audio tracks then should behave as expected. If not, please add a single track, and check again, then audio mixing should be fine. You can later remove this empty track again. The reason is that Kdenlive now recreates its internal per-track audio mixers upon loading and in any case when adding or removing a timeline track.

If this solves your problem, I would like to ask you to close this bug report as RESOLVED FIXED. Thank you very much for your cooperation!
Comment 3 Chris 2016-08-04 16:40:16 UTC
Hello Wegwerf,

Sorry for the late post but unfortunately I didn't have an old project available anymore so I created one using the current 16.04 and loaded it up in 16.07.90. And it behaved as you described. So until something new pops up, I'll mark this bug as fixed.
Comment 4 Wegwerf 2016-08-04 16:55:00 UTC
Chris, thank you very much for reporting back! Glad to hear this looks fixed now. I've found a lot of existing projects in my repo that have all small issues, so the new fix introduced by Jean-Baptiste should care for most of this odd project behavior.