Hi Jim,
On Mon, 19 Oct 2015 16:11:11 +0100
Jim Dummett via DCPomatic <dcpomatic(a)carlh.net> wrote:
Hi Carl.
To what degree (if any) is DCP-o-matic scriptable?
"To some extent" is probably the answer...
I've got to make a huge number of DCPs of short
films (about 300) for a
festival, each one from a single video file. What I have in mind is:
* I put all the video files in a single folder
* I write a script which executes DCP-o-matic for each file passing the
path of the video file
* For each video, DCP-o-matic makes a DCP-o-matic project file (with
default settings) and save it to another folder
There's a command line tool called dcpomatic_create which will do this; e.g.
dcpomatic_create --dcp-content-type FTR --container-ratio 185 --content-ratio 185 -o
my_project frobozz.mp4
* (Ideally) DCP-o-matic also runs 'Analyse
audio' on each video
This can't be scripted as it stands: what is the purpose of doing this?
Also, what platform are you doing this on?
Why do I want to do this? I'm using batch
processing to make the actual
DCPs once I have DCP-o-matic project files, which works great. But with
this many films, I spend a lot of time creating a DCP-o-matic project
file for each file, waiting for it to analyse, then waiting for it to
analyse audio. Each of these processes runs pretty fast, but with this
volume of films, the time spent watching the progress bars is pretty
significant (and boring!)
Apart from the analysis part that should all be possible.
If possible, it'd be great to be able to script
that process so that for
each film I just need to open the project file that's already created
and adjust any settings that I need to. The save the project and move it
into another folder for batch processing to make the actual DCP.
I'm using the v1 branch as stability is key at this point.
Is the CLI interface documented anywhere? And if this isn't possible at
present, could you point me to the part of the codebase which deals with
these processes? Maybe I could hack around and see if I can add this
feature (though C++ is not my strong suit).
There isn't really any documentation I'm afraid. The CLI parts are
dcpomatic_create: creates a DCP-o-matic project from some content files
dcpomatic_cli: creates a DCP from a set-up DCP-o-matic project
dcpomatic_kdm_cli: creates KDMs
They all have help if you run them with --help
The only thing is I'm not sure if they are distributed with the
Windows / OSX versions of the 1.x branch. Let me know what platform
you are using and I can check.
Regards,
Carl