Thanks a lot @didikunz, it works now!
First, I’m a noob here…
I already got PM to clarify my thoughts so here it goes, this PC with decklink duo 2 will be for:
- CG - key+fill overlay into For.A HVS-390HS video switcher (SDI 1 and SDI 2 output connectors on decklink)
- 1080i50 mpeg or mp4 video playout into For.A (SDI 3 output)
- OBS recording (SDI 4 input)
So in CasparCG server config file decklink should be configured as device 1 and device 2. Device 1 is CG key+fill (SDI outputs 1 and 2), and device 2 is SDI output 3.
The idea is when I add to rundown png for graphics overlay, I want it automatically assigned to decklink device 1, and when I add video file I want it automatically assigned to decklink device 2. On regular casparcg server setup, whatever type of file I add it’s automatically assigned to channel 1 cause it reads all files from one media folder, and I have to switch that manually to channel 2 for every video file. For example, video playout on this machine will be used for feeding TV in news studio, and every day we have new set of multiple videos for that purpose. Since we need to be speedy for preparing for news shooting, extra clicking and changing channels manually is a pain.
This is where 2 server configurations comes in handy.
Based on @didikunz’s help I used notepad to create 2 files and then run first than second:
casparcg1.bat and casparcg2.bat, each of them having one command line:
“casparcg.exe casparcg1.config” and “casparcg.exe casparcg2.config” (without quotes)
The trick is that each config file has a different media path, one for png’s and other for videos.
first config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<paths>
<media-path>e:\media\grafika\</media-path>
<log-path>log\</log-path>
<data-path>data\</data-path>
<template-path>templates\</template-path>
<thumbnails-path>thumbnails\</thumbnails-path>
</paths>
<channels>
<channel>
<video-mode>1080i5000</video-mode>
<consumers>
<decklink>
<device>1</device>
<embedded-audio>true</embedded-audio>
<channel-layout>stereo</channel-layout>
<latency>normal</latency>
<keyer>external</keyer>
<key-only>false</key-only>
<buffer-depth>3</buffer-depth>
<custom-allocator>true</custom-allocator>
</decklink>
<system-audio />
</consumers>
</channel>
</channels>
<controllers>
<tcp>
<port>5250</port>
<protocol>AMCP</protocol>
</tcp>
</controllers>
</configuration>
second config file, changed port number too:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<paths>
<media-path>e:\media\video\</media-path>
<log-path>log\</log-path>
<data-path>data\</data-path>
<template-path>templates\</template-path>
<thumbnails-path>thumbnails\</thumbnails-path>
</paths>
<channels>
<channel>
<video-mode>1080i5000</video-mode>
<consumers>
<decklink>
<device>2</device>
<embedded-audio>true</embedded-audio>
<channel-layout>stereo</channel-layout>
<latency>normal</latency>>
<keyer>external</keyer>
<key-only>false</key-only>
<buffer-depth>3</buffer-depth>
<custom-allocator>true</custom-allocator>
</decklink>
<system-audio />
</consumers>
</channel>
</channels>
<controllers>
<tcp>
<port>5251</port>
<protocol>AMCP</protocol>
</tcp>
</controllers>
</configuration>
so “grafika” is for CG and “video” for video files:
In client I had to add another server like this and renamed for easier usage:
I don’t know why, but only when I change address on another server it works fine.
Now, when I add video and png file it looks like this:
They are both on channel 1, but on different servers, server Playout controls device 2 which is SDI 3 connector output on decklink, and server Grafika controls device 1 that’s SDI 1 and SDI 2 outputs on decklink card, and that was all automatically assigned, just have to remember to put files in right media folders.
I’m testing it on blackmagic atem video switcher, this is what it looks like now, from left to right 1-genlock, BNC1-4 or SDI 1-4 if you like:
Device 1 is camera 1 and camera 2 key and fill, and Device 2 is on camera 3 video of book.
Also you can see on program monitor keying is working great.
Decklink is configured like this:
CasparCG server folder:
Client is on the same PC as servers.
I’m total beginner on caspar and thank you all for such supportive forum.
If someone has time to read all this I would appreciate opinions or any better suggestion in dumb steps I made, thanks!