← Back to team overview

openshot.developers team mailing list archive

[Bug 423948] Re: Moving a project folder looses thumbnails

 

If there was an XML format for the project files:

  <project-files base='/home/user/projects/videos'>
    <file-list id='0001' path='my-video/audio'>
      <file id='000001' name='battle-royale.mp3' />
      <file id='000002' name='enter-knight.mp3' />
    </file-list>
    <file-list id='0002' path='my-video/images'>
      <file id='000001' name='battle-scene.png' />
      <file id='000002' name='castle-gate.png' />
    </file-list>
  </project-files>

You could simply change the "base" attribute of the project-files.

-- 
Moving a project folder looses thumbnails
https://bugs.launchpad.net/bugs/423948
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.

Status in OpenShot Video Editor: Confirmed

Bug description:
When a project is moved to another location (subfolder thumbnails included), the snapshot images point to the original location. Thus in the project screen, the movies are shown with no snapshot. Everything is functional, but this is not as it supposed to work. Apparently is the loaction of the thumbnails stored in a absolute way, so not relative. As long as the project folder is not moved, everything works.

Steps to reproduce:
- Create a folder, say '~/OpenShot'
- Create a folder, say '~/OpenShot/Project1'
- Create a new project
- Import some movies
- Save the project under 'Project1.osp' in '~/OpenShot/Project1'
- Close the project
- Check the automatically created folder 'thumbnails' (and contents) under '~/OpenShot/Project1'
- Copy '~/OpenShot/Project1' to '~/OpenShot/Project2'
- Open '~/OpenShot/Project2/Project1.osp'
- Check the images (thumbnails) to appear in the movie tracks
- Close OpenShot
- Rename the folder ~/OpenShot/Project1' to ~/OpenShot/Project1_'
- Open '~/OpenShot/Project2/Project1.osp'
- Check the images (thumbnails): they do not appear anymore in the movie tracks
- Close OpenShot
- Revert the renaming: rename the folder ~/OpenShot/Project1_' back to '~/OpenShot/Project1'
- Open '~/OpenShot/Project2/Project1.osp'
- Check the images (thumbnails) to re-appear in the movie tracks

This proves that the location of the thumbnails which shows in the movie tracks, are stored absolutely, so not relative to the project folder. Despite the existence of the thumbnail sub folder, images in that folder do not play any role when the project is copied from another location. The copied thumbnail sub folder could be deleted any time, without loosing any data.

To prove this, a final test:
- Rename the folder ~/OpenShot/Project1/thumbnails' to './thumbnails_'
- Open '~/OpenShot/Project2/Project1.osp'
- Check the images (thumbnails): they do not appear anymore in the movie tracks