I wrote a simple command execution plugin.
It is called by krename for tokens of the form:
[command;COMMAND ARG1 ARG2 ... %u]
It replaces %u with the current source file url and returns the std::out output of COMMAND.
A simple example would be:
[command;bash -c "echo $((3+4))"]
which simply returns 7.
I wrote it for a more useful case where I need to retrieve the recording timestamp of the video files from my helmet cam.
They come in a MOV container (Quicktime) and the easiest way for me to extract the timestamp was a python script using kaa.metadata:
[command;get-recording-time.py %u]
But the plugin is pretty generic and you could do all kinds of cool stuff with it,
using the full power of you favorite scripting language.
So I hope you like this plugin and include it in future releases of krename.
command plugin patch against revision 177
python script to extract timestamps from file types supported by the python kaa.metadata module