Hi Jim,
On Tue, 10 May 2016, Jim Dummett via DCPomatic wrote:
Hi Carl.
Would it be difficult to implement adjustable port numbers for encoding
servers?
I don't think it would be too difficult.
[snip]
As far as I can see, the steps necessary to implement
this are:
- 'dcpomatic2_server_cli' accept a command line switch '-port 8765'
- When servers ping the master with a '<ServerAvailable>' message, they
include a '<Port>' attribute if port has been specified.
The snag with this is that, as it stands, the master broadcasts a "are
there any servers" message (to port 6193) to which server(s) respond.
If we can keep this broadcast sending to a hard-wired port, we should be
able to do as you suggest.
So master broadcasts to port `foo' to which servers responds "I am here on
port X" which the master keeps track of...?
- dcpomatic master retains port number in its list of
available servers
+ utilises it when connecting with 'EncodingRequest' messages
- [possibly] GUI displays ports in 'Encoding Servers' window
- [possibly] Preferences -> Servers dialog allows specifying port for
known servers
Sure.
Are there any instructions anywhere on compiling
DCP-o-matic? I'd be
happy to give it a go implementing something like the above, but could
do with some pointers on compiling (ideally on OS X, but I also have a
Linux box if that's easier). I'm no C++ master, but would be happy to
give it a go and contribute to development.
Building on OS X is a fair-sized pain in the proverbials, so if you can
use Linux I would start there. There are some (quite terse) instructions
here:
http://dcpomatic.com/build/linux
for Linux builds. Basically it's installing some packages, building some
libraries that are not packaged, then building DCP-o-matic.
Do post to the list if you have any trouble with this.
Best regards,
Carl