Bug 402561

Summary: Clip insert in timeline as video only
Product: [Applications] kdenlive Reporter: Szef <gena.kazachek>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: fritzibaby
Priority: NOR Flags: fritzibaby: Brainstorm+
fritzibaby: timeline_corruption+
Version First Reported In: Appimage - Refactoring   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 19.04
Sentry Crash Report:
Attachments: Kdenlive_Audio Tracks

Description Szef 2018-12-25 18:41:33 UTC
When I insert clip into the timeline, the error "No empty space to put clip audio" appears and there is no audio track in project monitor. To solve this I have manually select clip in the timeline and switch "Clip"->"Video only" to "Audio and video". After that all works as usual. 


STEPS TO REPRODUCE
Open a project
Import a clip
Insert that clip in a timeline
Open "Clip" menu; Try to play project monitor

OBSERVED RESULT
Clip marked as "Video only"; Playback has no sound

EXPECTED RESULT
Clip marked as "Video and audio"; Playback has sound

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
This bug appears in version 18.08. Before upgrade I used 18.04 and it was ok.
Comment 1 emohr 2018-12-26 13:42:20 UTC
It seems you have started with a project without audio tracks and you split video/audio in the timeline. Instead of the error message it should ask “create an audio track?” and if the answer is “yes” it should create an audio track automatically. I’m correct?
Comment 2 Szef 2018-12-26 13:51:42 UTC
I'm not doing a complex job in kdelive, so my steps usually are:
- Open app (it creates default project)
- Import clip or several
- Insert it in a timeline
- Do some edit
- Render

I'm never doing anything special (thats about starting a project without something), and in 18.04 it works pretty well. So, the most reasonable answer from me is "return things as it used to be".
Comment 3 emohr 2018-12-26 14:28:31 UTC
Created attachment 117119 [details]
Kdenlive_Audio Tracks

Can you do just the following check: settings -> Configure Kdenlive -> Project Defaults -> make sure you have 1 or more audio tracks configured.
Comment 4 Szef 2018-12-30 15:28:49 UTC
Ok, I did what you asking about, and yes, I had 0 audio threads in default project. Changing that to 1 solves the issue. I can't tell whether I accidentally changed it, or it was some glitch with version change.
Comment 5 emohr 2018-12-31 10:02:48 UTC
Thanks for the feedback. 

I tested in the Refactoring version. Delete all audio tracks and drag/drop a clip onto the timeline -> crash. 
The same with delete all video tracks (except the audio tracks).

Solution: either it creates an audio or video track as needed automatically or it should ask for creating such tracks.
Comment 6 emohr 2019-06-05 18:32:54 UTC
19.04 ask for creating missing tracks.

We close this bug. If it still appears in the latest version, please feel free to re-open it and update the affected version number.