Hi Carl.
Well it would be great if the dcpomatic_create executable could be added
to the OS X package in a future release. But for now I'm running it
inside a Ubuntu VM and it's working well.
The --content-ratio argument is compulsory but seems to affect the
container size rather than affecting how the content is interpreted.
Can you possibly point me to the part of the DCP-o-matic code base which
analyses the audio? If it's not too complex, I could maybe port it and
get it running stand-alone.
Thanks loads for all your help!
Jim
On 20/10/2015 01:24, Carl Hetherington via DCPomatic wrote:
On Tue, 20 Oct 2015 00:26:22 +0100
Jim Dummett via DCPomatic <dcpomatic(a)carlh.net> wrote:
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?
This is just a packaging error (the executable is built
but not
included in the .dmg, and I didn't notice). This could easily be
corrected for 2.x and moderately easily corrected for 1.x.
Building the OS X version from source is something of a Sisyphean ordeal
that I wouldn't wish on you ;)
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?
Yes I'm pretty sure it will (with the same guesswork as the normal
front-end).
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.
Sadly not, it's DCP-o-matic
code. That wouldn't be too hard to add to
dcpomatic_create though.
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?
I built a rather
half-baked django-based site (
cine-matic.com) which is
still up but probably no longer working. There wasn't much interest.
The data transfer is a bit of a problem, and it's quite clumsy
providing detailed control of the output with a web UI. I'm sure a
more experienced developer could do a better job mind you.
I have vaguely thought about a menu option in DCP-o-matic to "make dcp
in the cloud (TM)" but the amount of data transfer puts me off.
Cheers,
Carl
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
_______________________________________________
DCPomatic mailing list
DCPomatic(a)carlh.net
http://main.carlh.net/cgi-bin/mailman/listinfo/dcpomatic
_______________________________________________
DCPomatic mailing list
DCPomatic(a)carlh.net
http://main.carlh.net/cgi-bin/mailman/listinfo/dcpomatic