Bug 494291

Summary: The playback and render of MKV clip with multiple audio streams works wrongly.
Product: [Applications] kdenlive Reporter: Tad Young <yyc12321>
Component: Monitors & PlaybackAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: normal CC: wzc782970009
Priority: NOR    
Version First Reported In: 24.08.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The MKV file for reproducing.

Description Tad Young 2024-10-08 12:38:11 UTC
Created attachment 174530 [details]
The MKV file for reproducing.

SUMMARY
Kdenlive can only correctly playback MKV video with multiple audio streams in the timeline once.

STEPS TO REPRODUCE
1. Open Kdenlive, drag the MKV video with multiple audio streams into the Project Bin panel to import (and I also click OK in the popup window about project resolution changes).
2. Then drag the clip from Project Bin panel to the beginning of Timeline (the clip occupy V1, A1 and A2 tracks).
3. Click "Play" button in Project Monitor panel.
4. After the cursor reaching the end of the clip, the playback is stopped. Then use the mouse to drag "triangle timeline cursor" to the beginning of the Timeline.
5. Then click "Play" button in Project Monitor panel again.
6. Click "Render" button and get the render result of the whole project.

OBSERVED RESULT
1. In step 3, the playback is correct. Kdenlive can playback both of clip's 2 audio streams.
2. In step 5, the playback is wrong. Kdenlive only playback the content of the first audio stream (A1 track).
3. In step 6, the result is also wrong (without the content of other audio streams).
3. If we save a project file after doing step 2, then reopen it and do playback, the playback is correct, but only once.
4. If we save a project file after doing step 5, then reopen it, there is no way to make other audio streams playable even if restart Kdenlive.

EXPECTED RESULT
1. In step 5, Kdenlive should always playback all audio streams, like step 3 does.
2. The render and playback result should take into account all available audio streams.

SOFTWARE/OS VERSIONS
Kdenlive: 24.08.1
Package Type: Unknown/Default
MLT: 7.28.0
Qt: 6.7.2 (built against 6.7.2 x86_64-little_endian-llp64)
Frameworks: 6.5.0
System: Windows 10 Version 21H1
Kernel: winnt 10.0.19043
CPU: x86_64
Windowing System: windows
GPU: 
Movit (GPU): disabled
Track Compositing: qtblend

ADDITIONAL INFORMATION
The attachment can be used to reproduce this issue. It has 1 video stream and 2 audio streams, first audio stream is recorded by microphone and second audio stream is coming from desktop audio. This file is recorded by OBS 27.0.1.