# 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
MemberTypeValue
typestringdecklinkRequired. Defines a DeckLink input.
namestring-Required. The DeckLink input entry name.
interleavedbool-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_ratestruct-Required. The input framerate.
pixel_formatstring-Required. The input pixel format. Supported values are UYVY, YV12 and BGRU.
audiobool-Required. Does this reader capture audio.
audio_sample_depthint-The audio sample size (eg 16 or 32 bit).
audio_channelsint-Number of channels (1 for mono, 2 for stereo, etc).
## Output configuration Each card will output on HDMI and SDI at the same time. ### Example "outputs" : [ { "type" : "decklink", "filename" : "DeckLink SDI 4K (1)", "width" : 1920, "height" : 1080, "interleaved" : false, "fps" : 30, "pixel_format" : "UYVY" }] ### Parameters
MemberTypeValue
typestringdecklinkRequired. Defines a DeckLink output.
filenamestring-Required. The DeckLink output name.
widthint-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.
heightint-Required. The output height in pixels.
interleavedbool-Required. If the output is interlaced.
fpsfloat-Required. The output framerate.
pixel_formatstring-Required. The output pixel format. Supported values are UYVY, YV12 and BGRU.
## DeckLink available display modes The available display modes depend on the DeckLink cards. See also the capabilities of each card type: https://www.blackmagicdesign.com/products/decklink/techspecs/
Mode nameWidthHeightInterleavedFramerate
NTSC720486true29.97
NTSCp720486false59.94
PAL720576true25
PALp720576false50
HD720p501280720false50
HD720p59941280720false59.94
HD720p601280720false60
HD1080p239819201080false23.98
HD1080p2419201080false24
HD1080p2519201080false25
HD1080i5019201080true25
HD1080p299719201080false29.97
HD1080i599419201080true29.97
HD1080p3019201080false30
HD1080i6019201080true30
HD1080p5019201080false50
HD1080p599419201080false59.94
HD1080p6019201080false60
2k239820481556false23.98
2k2420481556false24
2k2520481556false25
2kDCI239820481080false23.98
2kDCI2420481080false24
2kDCI2520481080false25
4kp239838402160false23.98
4kp2438402160false24
4kp2538402160false25
4kp299738402160false29.97
4kp3038402160false30
4kDCI239840962160false23.98
4kDCI2440962160false24
4kDCI2540962160false25