Menu

#2 new command plugin that executes user defined commands

open
nobody
None
5
2013-01-12
2010-02-25
No

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.

Discussion

  • Dorian Scholz

    Dorian Scholz - 2010-02-25

    command plugin patch against revision 177

     
  • Dorian Scholz

    Dorian Scholz - 2010-02-25

    python script to extract timestamps from file types supported by the python kaa.metadata module