Bug 377999 - Wrong media paths when opening project from archive
Summary: Wrong media paths when opening project from archive
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: 16.12.3
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-23 23:50 UTC by Frantisek Fuka
Modified: 2017-03-25 16:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (86.04 KB, image/png)
2017-03-23 23:50 UTC, Frantisek Fuka
Details
Project file (70.99 KB, application/x-kdenlive)
2017-03-24 08:02 UTC, Frantisek Fuka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frantisek Fuka 2017-03-23 23:50:29 UTC
Created attachment 104705 [details]
Screenshot

When attempting to open project from complete archive (zipped with all media), the clips cannot be opened because Kdenlive attempts to open the media from invalid paths. See the screenshot. Those paths point neither to the video files in the unpacked archive (/home/fuxoft/Downloads/unpack/test1/videos/...) as they should, nor to the original media file locations (/home/fuxoft/Videos/fukafutokyu/...).
Comment 1 Jean-Baptiste Mardelle 2017-03-24 06:37:47 UTC
Thanks for your report. Could you extract the .kdenlive project file and attach it here or mail it to me ?
Comment 2 Jean-Baptiste Mardelle 2017-03-24 06:38:36 UTC
Sorry, I mean extract the .kdenlive file from the archived .tar.gz file
Comment 3 Frantisek Fuka 2017-03-24 08:02:52 UTC
Created attachment 104711 [details]
Project file

This is a project file which exhibits this problem. It's not the exactly same project that was used to make the screenshot.
Comment 4 Jean-Baptiste Mardelle 2017-03-24 08:38:16 UTC
In the attached project file, are all clips detected as missing with bad path or only some of them, and in that case which one?
Comment 5 Frantisek Fuka 2017-03-24 08:56:20 UTC
(In reply to Jean-Baptiste Mardelle from comment #4)
> In the attached project file, are all clips detected as missing with bad
> path or only some of them, and in that case which one?

When loading the project, all clips are missing because of the bad path, including proxy clips, slideshow and WAV sound file. In all cases, the (invalid) paths consist of full path to the unpacked archive, followed by TWO forward slashes, followed by the relative path to the ORIGINAL media files relative to the project's original root (as seen in the screenshot). Combining these two parts together produces completely invalid paths.

Important note: All of this happens only if I manually unpack the tar.gz archive and then try to open the kdenlive file as a standard save file. When I open the tar.gz directly in Kdenlive, as a file of type "archived project" (I wasn't aware of this option before), the project opens correctly, but all media is linked from their original locations, not from the (now unpacked) archive itself. Not sure if this is intentional but it's definitely confusing.
Comment 6 Jean-Baptiste Mardelle 2017-03-24 14:23:20 UTC
Git commit d961c39bd821fac7427e025808f7723c6e241ed8 by Jean-Baptiste Mardelle.
Committed on 24/03/2017 at 14:23.
Pushed by mardelle into branch 'Applications/17.04'.

Fix archived project wrong path and missing images/slideshows
Related: bug 378000

M  +3    -1    src/doc/documentvalidator.cpp
M  +41   -18   src/project/dialogs/archivewidget.cpp
M  +2    -2    src/timeline/customtrackview.h

https://commits.kde.org/kdenlive/d961c39bd821fac7427e025808f7723c6e241ed8