Bug 367652

Summary: Can't add title clip
Product: [Applications] kdenlive Reporter: Gustav Ekner <gustav.ekner>
Component: Video Effects & TransitionsAssignee: Vincent PINON <vpinon>
Status: RESOLVED NOT A BUG    
Severity: major CC: gustav.ekner, jb, wegwerf-1-2-3
Priority: NOR    
Version First Reported In: 16.04.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: picture of error message

Description Gustav Ekner 2016-08-21 16:16:03 UTC
When i choose "Add title clip", add some text, press "OK", I get an error message: "Clip is invalid, will be removed from project."

Reproducible: Always

Steps to Reproduce:
1. Project -> Add title clip
2. Just leave it as it is or add some text/animation
3. Press OK

Actual Results:  
I get an invalid clip error message.

Expected Results:  
The title clip should be added to the project bin.

Ubuntu 16.04 (Unity)
The kdenlive version is actually 16.08.0 (I couldn't choose that option), but I've had this issue with the previous version as well.

AMD Radeon HD 7770 graphics card, open source x.org driver.

Using:
KDE Frameworks 5.18.0
Qt 5.5.1 (built against 5.5.1)
The xcb windowing system
Comment 1 Gustav Ekner 2016-08-21 16:20:07 UTC
Created attachment 100701 [details]
picture of error message
Comment 2 Wegwerf 2016-08-30 19:08:19 UTC
Which MLT version?
I can't reproduce using Kdenkive 16.08.0 from testing ppa on Kubuntu 16.04. This error is strange, as I'm working a lot with the title editor in all my daytime projects.
Comment 3 Gustav Ekner 2016-09-02 17:10:55 UTC
Is there any way to check that in Kdenlive? I think I have version 6.3.0 (libmlt6 from dpkg -l)
Comment 4 Wegwerf 2016-09-04 10:12:54 UTC
Gustav, that looks fine. Recent testing releases now show the MLT version in use in the about Kdenlive dialog.
Comment 5 Gustav Ekner 2016-09-04 10:27:12 UTC
I tried to run Kdenlive from the terminal, and when I tried to add the title clip, and when the error box you can see in the screen shot comes up, I get this error in the terminal: 

/ / / / / / / / ERROR / / / / // CANNOT LOAD PRODUCER:  "kdenlivetitle:"
Comment 6 Wegwerf 2016-09-04 10:36:04 UTC
Good catch. Did you install Kdenlive, MLT from stock Ubuntu ppas, or did you install from Kdenlive's ppa's? If the former, can you please try with the latter?
Comment 7 Gustav Ekner 2016-09-04 11:07:09 UTC
I installed it from Kdenlive's ppa's.
Comment 8 Jean-Baptiste Mardelle 2016-09-04 17:41:20 UTC
Please make sure that Kdenlive does not use an older MLT version installed on your system. You can check the path using in Kdenlive's menu:  Settings > Configure Kdenlive > Environment.

you can also check from the command line if your mlt version supports titles:

melt -query producers | grep kdenlive

Should output:
- kdenlivetitle
Comment 9 Gustav Ekner 2016-09-04 18:38:02 UTC
The path to Melt is "/usr/bin/melt". Is it this path you mean?

"melt -query producers | grep kdenlive" - Doesn't output anything. How do I fix this?

When I run "melt --version" I get "melt 6.0.0"
Comment 10 Wegwerf 2016-09-04 18:43:06 UTC
Gotcha! This should be 6.3.0. That's looks like the reason why the titler producer fails.
Comment 11 Gustav Ekner 2016-09-04 18:46:24 UTC
Hmm, strange. When I run "sudo apt install melt" it says "melt is already the newest version (6.3.0+git201608140258~ubuntu16.04.1)." But "melt --version" still outputs 6.0.0
Comment 12 Vincent PINON 2016-09-04 19:42:55 UTC
"which melt" should output you the faulty melt path (probably different from /usr/bin/melt, maybe /usr/local/bin/melt)
Comment 13 Gustav Ekner 2016-09-05 16:03:01 UTC
Thanks, the output is "/usr/local/bin/melt", and when I run "/usr/bin/melt --version" I get "6.3.0". However, kdenlive is configured to use "/usr/bin/melt", and when I run "/usr/bin/melt -query producers | grep kdenlive" I still get nothing. What may cause this?
Comment 14 Wegwerf 2016-09-05 16:06:41 UTC
There is a difference between (1) melt and (2) libmlt*.so. The latter (2) is used by Kdenlive itself when viewing the timeline. (1) is used for rendering the final result. So I suspect that the order of PATH versus LD_PATH may cause Kdenlive itself to get dynamically linked to your old 6.0.0, while for rendering, 6.3.0 gets picked up. You should remove the old mlt anyway.
Comment 15 Gustav Ekner 2016-09-05 16:26:50 UTC
When I removed the old file and some other mlt files in /usr/local/lib, it worked. Thanks!

I guess the bug should be closed, if you aren't going to make kdenlive check for a minimum version or something else.