Decklink Duo 2

#1
Hi all,
I have some questions about how configure an execute CasparCG. I need 2 outputs (fill and Key) in 2 different channels at the same time.
My hardware is a Decklink Duo2 and I installed CasparCG 2.0.7 (Server, Client and Frontend). Format 108050i.

I don't know how to assign every vídeo for every Channel output of my decklink. Tried to read tutorials in wiki and here around the forum.

Any old post with a description about it? Or any college with similar situation?

Thanks a lot

Re: Decklink Duo 2

#2
First of all you go into the Decklink Control Panel App and set you Duo 2 Having two channels of fill & key. Default is 4 parallel outputs, if I remember right. Then you configure your casparcg.config along these lines:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<paths>
		<media-path>M:\CasparCG\media\</media-path>
		<log-path>M:\CasparCG\log\</log-path>
		<data-path>M:\CasparCG\data\</data-path>
		<template-path>M:\CasparCG\templates\</template-path>
		<thumbnails-path>M:\CasparCG\thumbnails\</thumbnails-path>
	</paths>
	<mixer>
		<blend-modes>false</blend-modes>
		<straight-alpha>true</straight-alpha>
		<chroma-key>false</chroma-key>
		<mipmapping_default_on>false</mipmapping_default_on>
	</mixer>
	<template-hosts>
		<template-host>
			<video-mode>PAL</video-mode>
			<filename>cg20.fth.1080i5000</filename>
			<width>1024</width>
			<height>576</height>
		</template-host>
		<template-host>
			<video-mode>720p5000</video-mode>
			<filename>cg20.fth.1080i5000</filename>
			<width>1280</width>
			<height>720</height>
		</template-host>
	</template-hosts>
	<channels>
		<channel>
			<video-mode>1080i5000</video-mode>
			<straight-alpha-output>false</straight-alpha-output>
			<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>            
				<newtek-ivga> 
					<channel-layout>stereo</channel-layout> 
					<provide-sync>true</provide-sync> 
				</newtek-ivga> 
			</consumers>
		</channel>
		<channel>
			<video-mode>1080i5000</video-mode>
			<straight-alpha-output>false</straight-alpha-output>
			<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>
-->			</consumers>
		</channel>
	</channels>
	<controllers>
		<tcp>
			<port>5250</port>
			<protocol>AMCP</protocol>
		</tcp>
	</controllers>
</configuration>
Be aware, that in this copy of my own config, I edited the paths at the beginning of that file. You can either leave the defaults and only copy from <channels> to </channels> or set them to your needs. By the way: The block between <template-hosts> and </template-hosts> is handy, when you have 1080i50 Flash-templates, that you want to play in PAL or 720p. If you don't need that, leave it away.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: Decklink Duo 2

#4
ferfor wrote: Thanks a lot for the answer. It works perfectly.
Now I'm working in code to set up the other 2 channels (total 4).

Regards
The Duo 2 has only 2 channels fill and key, not 4. So what do you want to do "in code"? You can switch the Duo to have 4 channels, but only without key. Understand: there are 4 BNC connectors. For each channel WITH fill and key you need two of them. So BNC 1 & 2 -> channel 1, BNC 3 & 4 -> channel 2
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: Decklink Duo 2

#5
Yes, I understand.
But If my code is like this, I have 4 OUTPUTS with audio embedded and is what I need. Is something wrong?
Thanks!!

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<paths>
		<media-path>C:\CasparCG\media\</media-path>
		<log-path>C:\CasparCG\log\</log-path>
		<data-path>C:\CasparCG\data\</data-path>
		<template-path>C:\CasparCG\templates\</template-path>
		<thumbnails-path>C:\CasparCG\thumbnails\</thumbnails-path>
	</paths>
	<mixer>
		<blend-modes>false</blend-modes>
		<straight-alpha>true</straight-alpha>
		<chroma-key>false</chroma-key>
		<mipmapping_default_on>false</mipmapping_default_on>
	</mixer>
	<template-hosts>
		<template-host>
			<video-mode>PAL</video-mode>
			<filename>cg20.fth.1080i5000</filename>
			<width>1024</width>
			<height>576</height>
		</template-host>
		<template-host>
			<video-mode>720p5000</video-mode>
			<filename>cg20.fth.1080i5000</filename>
			<width>1280</width>
			<height>720</height>
		</template-host>
	</template-hosts>
	<channels>
		<channel>
			<video-mode>1080i5000</video-mode>
			<straight-alpha-output>false</straight-alpha-output>
			<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>            
				<newtek-ivga> 
					<channel-layout>stereo</channel-layout> 
					<provide-sync>true</provide-sync> 
				</newtek-ivga>
			</consumers>
		</channel>
		<channel>
			<video-mode>1080i5000</video-mode>
			<straight-alpha-output>false</straight-alpha-output>
			<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>
-->			</consumers>
		</channel>
		<channel>
			<video-mode>1080i5000</video-mode>
			<straight-alpha-output>false</straight-alpha-output>
			<consumers>
				<decklink>
					<device>3</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>            
				<newtek-ivga> 
					<channel-layout>stereo</channel-layout> 
					<provide-sync>true</provide-sync> 
				</newtek-ivga>
			</consumers>
		</channel>

		<channel>
			<video-mode>1080i5000</video-mode>
			<straight-alpha-output>false</straight-alpha-output>
			<consumers>
				<decklink>
					<device>4</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>            
				<newtek-ivga> 
					<channel-layout>stereo</channel-layout> 
					<provide-sync>true</provide-sync> 
				</newtek-ivga>
			</consumers>
		</channel>

	</channels>
	<controllers>
		<tcp>
			<port>5250</port>
			<protocol>AMCP</protocol>
		</tcp>
	</controllers>
</configuration>

Re: Decklink Duo 2

#8
Just last question more.
Everytime I shut down Caspar CG Frontend an Error Message appears. What it mean?
Thankyou

Error:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\casparcg.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at CasparCGFrontend.MainForm.SerializeConfig()
at CasparCGFrontend.MainForm.CheckForSave()
at CasparCGFrontend.MainForm.MainForm_FormClosing(Object sender, FormClosingEventArgs e)
at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
casparcg_frontend
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/JDC2/Desktop/NEW%20DOWNLOAD/CasparCG%20Server%202.0.7/CasparCG%20Server/Server/casparcg_frontend.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2053.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.