Hi Carl + Manuel.
Thanks very much for your swift replies.
I'm on running on OS X (a mix of 10.10 Yosemite and 10.6 Snow Leopard
machines).
Amazing! dcpomatic_create sounds like exactly what I'm looking for. Except:
1. I can't see a dcpomatic_create command in
/Applications/DCP-o-matic/Contents/MacOS (with either v1.79.0 or
v2.4.0). Sounds like its Linux only. Would it be hard for me to compile
it from source on OS X?
2. Ideal would be to not pass any `--content-ratio` etc arguments and
leave DCP-o-matic to decide itself the way it does in the GUI. Will it
provide defaults based on the format of the source file based on these
arguments?
The reason for running "analyse audio" is that for each programme of
short films, the audio levels in the source files from film-makers will
vary enormously. So I like to adjust them all to peak at the same level
(-10dB). This is a rather rough measure - it still needs adjustment in
the cinema - but it at least gets all the films' sound levels in the
same ballpark. But running "analyse audio" in the GUI is the slowest
part of the process (apart from the DCP render itself, but I'm batching
that).
Is it ffmpeg doing the audio analysis under the hood? If so, maybe I
could run that command directly and then format the results and insert
them into the DCP-o-matic project folder to "fool" DCP-o-matic into
thinking it's done the audio analysis already.
By the way, Carl, you mention the JSON server is intended for
applications like "for a web service that makes DCPs, say". Do you know
of anyone who's used DCP-o-matic for something like this?
Sorry for the barrage of questions.
Jim
On 19/10/2015 19:41, Carl Hetherington via DCPomatic wrote:
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
_______________________________________________
DCPomatic mailing list
DCPomatic(a)carlh.net
http://main.carlh.net/cgi-bin/mailman/listinfo/dcpomatic