-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Jircik schrieb:
> I'm assuming it overwrites the xml file and you reload that into cinelerra?
> I'm a little confused as to workflow. Thanks in advance.
Hello Daniel,
yes, the script "overwrites the xml" (actually it moves it aside as *.bak
and dumps out a new xml under the original name. As for the workflow (sigh)
it is a dirty little hack, basically something what you could do with a
text editor as well. It does a search-and-replace action within your
session xml, which relies on the resources having all a regular and
common name pattern, which we can search-and-replace...
> Then I ... ran the proxychange script as follows:
> dan...@sabayon /mnt/dm-3/mov01/earthdance $ ./proxychange.py
> earthdance04.xml -from `hdv/(\w+)\.toc` -to `proxyfiles/\1.avi` -scale 2.0
> bash: command substitution: line 1: syntax error near unexpected token `\w+'
> bash: command substitution: line 1: `hdv/(\w+)\.toc'
> bash: proxyfiles/1.avi: No such file or directory
> bash: ./proxychange.py: Permission denied
see^^^^ the bash (your shell) is printing those error messages, so it
looks as if we didn't get at all to the point where this python script
is executed.
Moreover, the shell complains about syntax errors and command substitutions
in a part of the command line which wasn't intended to be read by the shell.
For this reason, we put single quotes in there, round the parameters.
It may well be, that just by copying from the webpage, those single quotes '
got changed into another character (probably a back-tick ` ).
Basically, single quotes tell the shell: "don't interpret this, just pass it
on literally as argument to the command!" We need this behaviour in this case,
as the python script expects the search term and replacement specification in
so called "regular expression syntax", which uses some symbols which have a
completely unrelated and different meaning for the shell.
The last error message ("permission denied") might be an indication that
you need to set the "executable flag" on the proxychange.py script, so it
can be run as a program. You can do this by "chmod u+x proxychange.py"
Cheers,
Hermann V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkruCNMACgkQZbZrB6HelLInigCgqu3avxjOp79HsbJwU72w1hl8
DJ0An2ii2HnLh0QE4Tl3clWALDiE2Sak
=Wggw
-----END PGP SIGNATURE-----
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra