# DeckLink documentation `decklink` is an IO plugin for Vahana VR. It allows Vahana VR to capture audio/video input and stream audio/video output with the Blackmagic Design [DeckLink capture cards](https://www.blackmagicdesign.com/products/decklink/). All the DeckLink cards are supported. The plugin has been developed and tested with the following models: * [DeckLink 4K Extreme](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-04) * [DeckLink SDI 4K](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-11) * [DeckLink Mini Monitor](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-05) * [DeckLink Duo](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-01) ## Set-up Drivers and documentation can be found at this address with the latest Desktop Video package : https://www.blackmagicdesign.com/support/family/capture-and-playback. Please follow the Desktop Video Manual to set up the card and the drivers. Test its correct functioning with the Blackmagic Design Control Panel and the Media Express software. In particular, set the input and the output you want to use, as you can't do it yet trough the plugin. ## Input configuration The decklink plugin can be used by Vahana VR through a .vah project file. Please see the `*.vah file format specification` for additional details. Define an input for each input on the capture cards. The `reader_config` member specifies how to read it. ### Example "inputs" : [ { "width" : 1920, "height" : 1080, ... "reader_config" : { "type" : "decklink", "name" : "DeckLink SDI 4K (1)", "interleaved" : false, "frame_rate" : { "num" : 30, "den" : 1 }, "pixel_format" : "UYVY", "audio" : true, "audio_sample_depth" : 16, "audio_channels" 2: } ... }, { "width" : 1920, "height" : 1080, ... "reader_config" : { "type" : "decklink", "name" : "DeckLink SDI 4K (2)", "interleaved" : false, "frame_rate" : { "num" : 30, "den" : 1 }, "pixel_format" : "UYVY", "audio" : false } ... }] ### Parameters
Member | Type | Value | ||
---|---|---|---|---|
type | string | decklink | Required. Defines a DeckLink input. | |
name | string | - | Required. The DeckLink input entry name. | |
interleaved | bool | - | Required. If the input is interlaced. | See DeckLink available display modes for detail
Note that these fields width the width and height fields must match exactly an existing display mode below. |
frame_rate | struct | - | Required. The input framerate. | |
pixel_format | string | - | Required. The input pixel format. Supported values are UYVY , YV12 and BGRU . | |
audio | bool | - | Required. Does this reader capture audio. | |
audio_sample_depth | int | - | The audio sample size (eg 16 or 32 bit). | |
audio_channels | int | - | Number of channels (1 for mono, 2 for stereo, etc). |
Member | Type | Value | ||
---|---|---|---|---|
type | string | decklink | Required. Defines a DeckLink output. | |
filename | string | - | Required. The DeckLink output name. | |
width | int | - | Required. The output width in pixels. | See DeckLink available display modes for details.
Note that these fields must match exactly an existing display mode below. You also want larger or equals width and a height than the pano's ones. |
height | int | - | Required. The output height in pixels. | |
interleaved | bool | - | Required. If the output is interlaced. | |
fps | float | - | Required. The output framerate. | |
pixel_format | string | - | Required. The output pixel format. Supported values are UYVY , YV12 and BGRU . |
Mode name | Width | Height | Interleaved | Framerate |
---|---|---|---|---|
NTSC | 720 | 486 | true | 29.97 |
NTSCp | 720 | 486 | false | 59.94 |
PAL | 720 | 576 | true | 25 |
PALp | 720 | 576 | false | 50 |
HD720p50 | 1280 | 720 | false | 50 |
HD720p5994 | 1280 | 720 | false | 59.94 |
HD720p60 | 1280 | 720 | false | 60 |
HD1080p2398 | 1920 | 1080 | false | 23.98 |
HD1080p24 | 1920 | 1080 | false | 24 |
HD1080p25 | 1920 | 1080 | false | 25 |
HD1080i50 | 1920 | 1080 | true | 25 |
HD1080p2997 | 1920 | 1080 | false | 29.97 |
HD1080i5994 | 1920 | 1080 | true | 29.97 |
HD1080p30 | 1920 | 1080 | false | 30 |
HD1080i60 | 1920 | 1080 | true | 30 |
HD1080p50 | 1920 | 1080 | false | 50 |
HD1080p5994 | 1920 | 1080 | false | 59.94 |
HD1080p60 | 1920 | 1080 | false | 60 |
2k2398 | 2048 | 1556 | false | 23.98 |
2k24 | 2048 | 1556 | false | 24 |
2k25 | 2048 | 1556 | false | 25 |
2kDCI2398 | 2048 | 1080 | false | 23.98 |
2kDCI24 | 2048 | 1080 | false | 24 |
2kDCI25 | 2048 | 1080 | false | 25 |
4kp2398 | 3840 | 2160 | false | 23.98 |
4kp24 | 3840 | 2160 | false | 24 |
4kp25 | 3840 | 2160 | false | 25 |
4kp2997 | 3840 | 2160 | false | 29.97 |
4kp30 | 3840 | 2160 | false | 30 |
4kDCI2398 | 4096 | 2160 | false | 23.98 |
4kDCI24 | 4096 | 2160 | false | 24 |
4kDCI25 | 4096 | 2160 | false | 25 |