Bug 393698 - .kdenlive project file contains an absolute file path
Summary: .kdenlive project file contains an absolute file path
Status: CONFIRMED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: 17.12.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2018-04-30 19:30 UTC by Chris Martin
Modified: 2022-11-07 17:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+
fritzibaby: low_hanging+


Attachments
proposal (33.66 KB, image/png)
2021-04-07 15:02 UTC, farid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Martin 2018-04-30 19:30:54 UTC
I notice that the beginning of a `.kdenlive` project file looks like this:

    <?xml version='1.0' encoding='utf-8'?>
    <mlt title="Anonymous Submission" LC_NUMERIC="en_US.UTF-8" producer="main bin" version="6.6.0" root="/home/chris/typeclasses/recordings/contra-1">

We had intended to keep our projects (minus the videos themselves) in a version control system, but this absolute path seems like it will be a problem. Why is this absolute path there? Will it cause issues when we try to open projects on another machine?
Comment 1 emohr 2018-10-14 15:00:37 UTC
This is a good point. Most Video editor work like this. Can you change to “wishlist”?
Comment 2 Raicho Nikolov 2021-01-16 23:50:27 UTC
(In reply to Chris Martin from comment #0)
> I notice that the beginning of a `.kdenlive` project file looks like this:
> 
>     <?xml version='1.0' encoding='utf-8'?>
>     <mlt title="Anonymous Submission" LC_NUMERIC="en_US.UTF-8"
> producer="main bin" version="6.6.0"
> root="/home/chris/typeclasses/recordings/contra-1">
> 
> We had intended to keep our projects (minus the videos themselves) in a
> version control system, but this absolute path seems like it will be a
> problem. Why is this absolute path there? Will it cause issues when we try
> to open projects on another machine?

As a workaround I would suggest to delete 
> root="/home/chris/typeclasses/recordings/contra-1"
from the file BEFORE committing into the version control. I've found that Kdenlive opens the file correctly and after some changes it adds again the root property. 

Although I would not guarantee if this solution is afe. Play with it and use it your own risk.
Comment 3 farid 2021-04-07 15:02:44 UTC
Created attachment 137404 [details]
proposal

We could add an option to have it both ways.
Comment 4 Jean-Baptiste Mardelle 2022-11-07 12:56:27 UTC
On project opening, if the path specified in the "root" property of the xml does not exist, Kdenlive assumes the "root" path to be the path to the .kdenlive project file. So if all resources (clips, audio, images) are in the same folder or subfolders of the project file, there should be no problem opening the project from a different machine. Can you please give me a detailed example of the issue you are facing ?
Comment 5 farid 2022-11-07 13:12:02 UTC
(In reply to Jean-Baptiste Mardelle from comment #4)
> On project opening, if the path specified in the "root" property of the xml
> does not exist, Kdenlive assumes the "root" path to be the path to the
> .kdenlive project file. So if all resources (clips, audio, images) are in
> the same folder or subfolders of the project file, there should be no
> problem opening the project from a different machine. Can you please give me
> a detailed example of the issue you are facing ?

Yeah, so whenever it is relative Kdenlive would assume the "root" to be the .kdenlive project location. Whenever absolute it would expect the the full path of the saved project.
Comment 6 Jean-Baptiste Mardelle 2022-11-07 13:28:12 UTC
Yes that's how it is supposed to work currently. So my question is what issue are you facing with the current state ?
Comment 7 farid 2022-11-07 13:33:58 UTC
(In reply to Jean-Baptiste Mardelle from comment #6)
> Yes that's how it is supposed to work currently. So my question is what
> issue are you facing with the current state ?

Let's say I save my project in an external hard drive in machine 1, whenever I open it in machine 2 Kdenlive doesn't find the files automatically.
Comment 8 Jean-Baptiste Mardelle 2022-11-07 17:44:38 UTC
okay but what is the path to the file not found? is it in a subfolder of the project file?
Can you please write in the comment the original path of the project file and the original path of the not found video file?