Bug 431144

Summary: Video-only playlist can only be used in projects that have an audio track
Product: [Applications] kdenlive Reporter: Chris Weyland <kdebugs>
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: ASSIGNED ---    
Severity: normal CC: fritzibaby, troytjh98
Priority: NOR Keywords: junior-jobs
Version: 24.12.0Flags: fritzibaby: Brainstorm+
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Error message "no audio track"
The playlist without audio that I am trying to reuse

Description Chris Weyland 2021-01-04 13:12:36 UTC
Created attachment 134535 [details]
Error message "no audio track"

SUMMARY
I've created a playlist with 3 video tracks and no audio tracks. Each video track contains 1 title clip. I want to reuse the playlist in other projects

When importing the playlist into another project with no audio tracks, an error message is displayed: "Your project needs more audio tracks to handle all streams. Add 1 audio tracks ?", and I cannot use the playlist.

When I create an additional audio track the playlist can be used (and creates an empty audio stream in the timeline)


STEPS TO REPRODUCE
1. Create a new project (without audio tracks)
2. Import attached playlist (also without audio tracks)


OBSERVED RESULT
Error message shown (see screenshot)

EXPECTED RESULT
The playlist can be used without an audio track being available.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Chris Weyland 2021-01-04 13:13:35 UTC
Created attachment 134536 [details]
The playlist without audio that I am trying to reuse
Comment 2 emohr 2021-01-16 12:22:32 UTC
Confirmed. You import a project as a clip into another project. The project file which you import has no audio tracks. So Kdenlive should check that and should not ask for an additional audio track to create (and vice versa).
Comment 3 Bug Janitor Service 2024-10-18 20:06:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/kdenlive/-/merge_requests/546
Comment 4 troytjh98 2024-10-18 20:17:52 UTC
Kdenlive uses the test_audio property to identify if a playlist has any audio tracks. Looking through the playlist contents as a text file, the playlist contains a 'black_track' with the test_audio property. Assuming the black_track is only meant to be a black background with no audio, I believe this merge request may resolve the issue. This removes the code that added the test_audio property to black_track.

https://invent.kde.org/multimedia/kdenlive/-/merge_requests/546
Comment 5 troytjh98 2024-10-18 20:49:43 UTC
(In reply to troytjh98 from comment #4)
> Kdenlive uses the test_audio property to identify if a playlist has any
> audio tracks. Looking through the playlist contents as a text file, the
> playlist contains a 'black_track' with the test_audio property. Assuming the
> black_track is only meant to be a black background with no audio, I believe
> this merge request may resolve the issue. This removes the code that added
> the test_audio property to black_track.
> 
> https://invent.kde.org/multimedia/kdenlive/-/merge_requests/546

For change to take effect, the playlist will need to be opened in kdenlive and saved again, then it should d be possible to import the playlist without a audio track.