Set Channel resolution same as the DECKLINK input resolution

Hello everyone,

I’m looking for a reliable and easy way to set the channel’s resolution to the same as the decklink’s input resolution. I know I can write a program that takes the info from DECKLINK and then passes the parameter to Caspar CG, but I want to do it on the start up of the Server, any suggestions?

Thanks a lot in advance.