New user question

I have a problem, I was using casparcg for the first time. I have now installed decklink duo 2 min in my computer, and I have done its configuration. but I am opening casparcg automatically, here is the error

Type "q" to close application.
Logging [error] or higher severity to ..\local\logs\

[0317/102615.955:ERROR:gpu_process_transport_factory.cc(990)] Lost UI shared context.
[2025-03-17 10:26:16.069] [error]   DeckLink Duo 2 Mini [1-2|1080p2997] Failed to enable external keyer.
[2025-03-17 10:26:16.081] [error]   Exception: C:\Program Files (x86)\Jenkins\workspace\casparcg-server-dep\master\src\modules\decklink\consumer\decklink_consumer.cpp(397): Throw in function void __cdecl caspar::decklink::decklink_consumer::enable_video(enum _BMDDisplayMode)
[2025-03-17 10:26:16.081] [error]   Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::caspar_exception>
[2025-03-17 10:26:16.081] [error]   [struct caspar::tag_msg_info * __ptr64] = DeckLink Duo 2 Mini [2-2|1080p2997] Could not enable fill video output.
[2025-03-17 10:26:16.081] [error]   [struct caspar::tag_stacktrace_info * __ptr64] =  0# 0x00007FF7CE28A37E in casparcg
[2025-03-17 10:26:16.081] [error]    1# 0x00007FF7CE2B9690 in casparcg
[2025-03-17 10:26:16.081] [error]    2# 0x00007FF7CE4E5833 in casparcg
[2025-03-17 10:26:16.081] [error]    3# 0x00007FF7CE4DE168 in casparcg
[2025-03-17 10:26:16.081] [error]    4# 0x00007FF7CE4E0431 in casparcg
[2025-03-17 10:26:16.081] [error]    5# 0x00007FF7CE2D07C8 in casparcg
[2025-03-17 10:26:16.081] [error]    6# 0x00007FF7CE372E52 in casparcg
[2025-03-17 10:26:16.081] [error]    7# 0x00007FF7CE36F7E0 in casparcg
[2025-03-17 10:26:16.081] [error]    8# 0x00007FF7CE2850B9 in casparcg
[2025-03-17 10:26:16.081] [error]    9# recalloc in ucrtbase
[2025-03-17 10:26:16.081] [error]   10# BaseThreadInitThunk in KERNEL32
[2025-03-17 10:26:16.081] [error]   11# RtlUserThreadStart in ntdll
[2025-03-17 10:26:16.081] [error]
[2025-03-17 10:26:16.081] [error]
[2025-03-17 10:26:16.081] [error]    0# 0x00007FF7CE28A37E in casparcg
[2025-03-17 10:26:16.081] [error]    1# 0x00007FF7CE289CAF in casparcg
[2025-03-17 10:26:16.081] [error]    2# 0x00007FF7CE77BB07 in casparcg
[2025-03-17 10:26:16.081] [error]    3# _CxxFrameHandler3 in VCRUNTIME140
[2025-03-17 10:26:16.081] [error]    4# is_exception_typeof in VCRUNTIME140
[2025-03-17 10:26:16.081] [error]    5# RtlCaptureContext2 in ntdll
[2025-03-17 10:26:16.081] [error]    6# 0x00007FF7CE2B73EF in casparcg
[2025-03-17 10:26:16.081] [error]    7# 0x00007FF7CE2B9752 in casparcg
[2025-03-17 10:26:16.081] [error]    8# 0x00007FF7CE28D85D in casparcg
[2025-03-17 10:26:16.081] [error]    9# 0x00007FF7CE29111D in casparcg
[2025-03-17 10:26:16.081] [error]   10# 0x00007FF7CE6C6A88 in casparcg
[2025-03-17 10:26:16.081] [error]   11# BaseThreadInitThunk in KERNEL32
[2025-03-17 10:26:16.081] [error]   12# RtlUserThreadStart in ntdll
[2025-03-17 10:26:16.081] [error]

Can you post the configuration (casparcg.config) as there seems to be something wrong.

And please use the button </> to format logs, configs or code. (And the text for text, not the title :slight_smile: )

<?xml version="1.0" encoding="utf-8"?>
<html>
	<enable-gpu>true</enable-gpu>
</html>
<configuration>
	<log-level>error</log-level>
	<paths>
		<log-path>..\local\logs\</log-path>
		<media-path>..\local\media\</media-path>
		<template-path>..\local\web\templates\</template-path>
		<font-path>..\local\web\fonts\</font-path>
	</paths>
	<lock-clear-phrase>secret</lock-clear-phrase>
	<channels>
		<channel>
			<video-mode>1080p2997</video-mode>
			<channel-layout>mono</channel-layout>
			<consumers>
				<decklink>
					<device>2</device> <!-- Key -->
					<key-device>2</key-device> <!-- Fill -->
					<embedded-audio>false</embedded-audio>
					<latency>normal</latency>
					<keyer>external</keyer> <!-- Indicates to be handled by switcher -->
					<key-only>false</key-only>
					<buffer-depth>3</buffer-depth>
				</decklink>
			</consumers>
		</channel>
		<channel>
			<video-mode>1080p2997</video-mode>
			<consumers>
				<screen>
					<name>SDI</name> <!-- Friendly display name -->
					<device>2</device>
					<aspect-ratio>default</aspect-ratio>
					<always-on-top>false</always-on-top>
					<stretch>fill</stretch>
					<borderless>true</borderless>
					<windowed>false</windowed>
					<key-only>false</key-only>
					<auto-deinterlace>false</auto-deinterlace>
					<vsync>false</vsync>
				</screen>
				<decklink>
					<device>2</device>
					<embedded-audio>true</embedded-audio>
					<latency>normal</latency>
					<buffer-depth>3</buffer-depth>
				</decklink>
			</consumers>
		</channel>
	</channels>
	<controllers>
		<tcp>
			<port>5250</port>
			<protocol>AMCP</protocol>
		</tcp>
	</controllers>
	<amcp>
		<media-server>
			<host>localhost</host>
			<port>8000</port>
		</media-server>
	</amcp>
</configuration>

thank you let me do that

There are a few things wrong.

  • channel layout at the wrong place
  • device and key-device are the same
  • for keyer external the key-device is obsolete
  • device 2 used multiple times

I usually use something like:

<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>
	</consumers>
</channel>

You need to change the video-mode to fit your needs and use device numbers only once.