openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #03727
[Bug 499733] Re: Project file should be a plain text file
You might want to consider using XML for the file format. This would
easily allow for:
- File format version (useful for reading/upgrading old file formats)
- Character encoding (file names with accented characters + ASCII = failure)
- Schema-based validation (point to an XSD and your work is practically done)
- Parallel development of tools and scripts for modifying the files independently of OpenShot (thus avoids introducing bugs into OpenShot)
- Logical hierarchy that is partially self-documenting
- Leverage XPath expressions
For example:
<?xml version='1.0'?>
<openshot version='1.1'>
<project-files>
<file-list id='0001' path='/home/user/projects/videos/my-video/audio'>
<file id='000001' name='battle-royale.mp3' />
<file id='000002' name='enter-knight.mp3' />
</file-list>
<file-list id='0002' path='/home/user/projects/videos/my-video/images'>
<file id='000001' name='battle-scene.png' />
<file id='000002' name='castle-gate.png' />
</file-list>
</project-files>
<track-list>
<track id='1' name='Background'>
<file-ref id='01' list-id='0001' file-id='00001' start='00:00:04.000' end='00:00:05.500'>
<animate ... />
<transition ... />
</file-ref>
</track>
</track-list>
</openshot>
You get the idea.
--
Project file should be a plain text file
https://bugs.launchpad.net/bugs/499733
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: In Progress
Bug description:
The OpenShot project file should be a plain text file. It is now a binary, thus not human readable nor adjustable.
Advantages of using clear text:
- you can clearly see what and how things are organised
- things can be easily adjusted when something goes wrong
- you can do automated text operations with grep/sed/awk etc.
This is related (technically) to the problem where the path of the thumbnails of imported clips are registered in an absolute way. Moving the project file to another location or renaming the folder containing this project file, leads to not properly display of the thumbnails within the clips on the IDE. This could be adjusted, as a workaround, if the project file was in plain text.
https://bugs.launchpad.net/openshot/+bug/423948
References