Grab and save video frame from input video with Decklink Duo 2

Hi,
We have two Decklink cards in our graphics station confirgured as four pairs fill+key.
There are four channels defined in the casparcg config file each with decklink consumer (keyer external). We use only three channels for the broadcasting so we redefine configuration in config file to three channels and we would like to connect an external video signal to one of free BNC and by the AMCP command save sometimes one actual frame of this video as a png to disc.
I use ADD 1 IMAGE file to save PNGs in the output channel to save rendered graphics, but I don’t know how use this command for the input channel.
Jiri

You may need to experiment to get the correct decklink device number. The process to capture the still from the SDI input is to route the decklink into a CasparCG channel and layer, then issue the ADD 1 IMAGE command to capture the still.

To route the SDI input or an HD interlaced source to display in a channel use a command of the form:

play 4-200 decklink device 4 format 1080i5000

Using a high layer number auto masks any other content on a lower layer. Set the format string to match the source SDI format. The newer versions of CasparCG server support auto input-format searches allowing you to use a command of the form:

play 4-200 decklink device 4

You can include a name for the captured still on the ADD command. For example:

add 4 image mygrabs/headline01

If the filename includes a path as well as the still name, as illustrated above, that target folder must already exist before you uses the ADD IMAGE command.

When you have finished capture you can remove the decklink input with:

stop 4-200

After some experiments with decklink device numbers and connector settings, I added a “hollow” channel without consumer to the caspar config and route the decklink device 4 to this channel. Then the “ADD IMAGE” command works.
Many Thanks