dcpomatic2_cli

Anything and everything to do with DCP-o-matic.
Post Reply
dimidx
Posts: 3
Joined: Fri Jan 14, 2022 10:25 pm

dcpomatic2_cli

Post by dimidx »

Hello,

I'am trying to find a way to prepare some DCP and then encode them over night. I have found that dcpomatic2_cli car start the encoding. This is great so I can prepare DCP's with the GUI and then run it via scripts. I have a question about the "json server":

dcpomatic2_cli -j seems to start a json server on a defined port. I use it and a server is listening on my defined port but that is all.

"curl --request GET --url http://localhost:8080 --header 'Accept: application/json'" get nothing and the console show only: "request: / reply:"

Is that a REST API to command dcpomatic ? Is it documentation ?

Regards
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: dcpomatic2_cli

Post by carl »

At the moment the JSON server is very limited; all you can do is request /?action=status and some JSON will be returned with the progress of the job. It's left over from some experiments a long time ago in making an online (web-based) version of DCP-o-matic.
Post Reply