Bug 431144 - Video-only playlist can only be used in projects that have an audio track
Summary: Video-only playlist can only be used in projects that have an audio track
Status: ASSIGNED
Alias: None
Product: kdenlive
Classification: Applications
Component: Project Bin & Import (show other bugs)
Version: 24.12.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2021-01-04 13:12 UTC by Chris Weyland
Modified: 2024-12-24 09:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments
Error message "no audio track" (261.12 KB, image/png)
2021-01-04 13:12 UTC, Chris Weyland
Details
The playlist without audio that I am trying to reuse (14.73 KB, application/x-kdenlive)
2021-01-04 13:13 UTC, Chris Weyland
Details

Note You need to log in before you can comment on or make changes to this bug.
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.