-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Detwiler schrieb:
> Has anybody built tools for manipulating the XML content of 
> Cinelerra’s EDL?
...
> It would be handy to parse the EDL and (for example): 1. Get a list 
> of all the media (and their paths) on which a given project depends.
> 2. Automatically move all the media links to some other point in the
> file system. 3. Validate that all media are available, since (in my 
> experience) Cinelerra simply hangs if there are any missing media 
> files. 4. Prune the EDL of any media which haven’t actually been 
> incorporated into an edit.
> 
> Have such things been done?

sort of yes, I frequently manipulate the session XML with python
scripts. But because this usually are just one-off changes, I rarely
made any finished script. With one exception, a script to change all
occurrences of an original media into a reference of a proxy media.
Please have a look at:

http://cvs.cinelerra.org/docs/proxychange.py

You see, it is quite simple. You could use this script as a template,
and instead of searching for media references in the main EDL, rather
do a search/replace on the media pathes in <assets> list.
You need to walk all <asset src="xxxx" ...> tags within this list.
And besides, you need to adjust the references within the EDL too,
because the filename is used as an ID to refer to the source entry
from within every cut in the EDL

hope this helps
Hermann Vosseler

PS: my apologies, the script could benefit from some cleanup
of (superfluos german) comments. I just couldn't find any time...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJDfx7ZbZrB6HelLIRAptgAKDAQmJjzzixZ5YkkUZ5j6yWpQxizwCg5G2n
wdnxYQx2o8WiQEWSpC7QEAQ=
=3oqL
-----END PGP SIGNATURE-----

_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to