Blackmagic Decklink cards
Decklink-specific settings
To activate the video capture of the Decklink card, set the VideoSize and VideoSubtype indexes to 0, and specify the format with the VideoFormat index, e.g.:
VideoGrabber.VideoSubtype = 0 (default)
VideoGrabber.VideoSize = 0 (default)
VideoGrabber.VideoFormat = VideoGrabber.VideoFormatIndex ("HDYC 1920x1080 25 fps")
VideoGrabber.VideoInput = VideoGrabber.VideoInputIndex ("HDMI")
VideoGrabber.StartPreview()
If there is no image (black video window), the selected VideoFormat may not be suitable. To determine the proper video format, proceed as follows:
- Run the pre-compiled MainDemo.exe.
- Select the Decklink card in the VideoDevices list.
- Set VideoSubtype and VideoSize to default.
- Select the video input in the "Video Inputs" list.
- Select the video format in the "Video formats" list.
- Start the preview.
Then try each of the video formats available in the "Video Formats" list, until the captured video appears.
Playout to the Decklink renderer
The VideoRendererExternal property activates the external renderer on the Blackmagic Decklink card:
- to activate it, set VideoRendererExternal = vre_BlackMagic_Decklink,
- to deactivate it, set VideoRendererExternal = vre_None.
The renderer requires a standard video size (e.g. 720x480 or 1920x1080).
By default, TVideoGrabber resizes to 720x480. To select the HD format, invoke UseNearestVideoSize (1920, 1080, true) before invoking OpenPlayer (to go back to the default setting, invoke UseNearestVideoSize (0, 0, false)).
Note
The Decklink renderer also requires a standard frame rate (e.g. 25 fps or 29.97 fps). If the clip has a non-standard frame rate, it may fail to play on the Decklink output.
Audio on the Decklink output
During preview or recording, the audio of the source (video capture device, IP camera, video file or URL) is sent to the Decklink output, with the video, when:
- AudioDeviceRendering = true (during playback: PlayerAudioRendering = true),
- and AudioRenderer = -1 (default value).
Selecting another audio renderer with AudioRenderer sends the audio to that renderer instead of the Decklink output.
VideoGrabber.VideoRendererExternal = vre_BlackMagic_Decklink
VideoGrabber.AudioDeviceRendering = true
VideoGrabber.AudioRenderer = -1
VideoGrabber.StartPreview()
To switch the audio on and off without stopping the preview, toggle MuteAudioRendering, see Audio rendering.
When the Decklink output displays the video of another TVideoGrabber component (PIP set up by Mixer_SetupPIPFromSource, or video mixer), only the video of that component is received: its audio is not sent to the Decklink output.
Decklink renderer to use when several Decklink cards are installed in the same PC
If more than one Decklink card is used in the same PC, specify the number of the card to use in the VideoRendererExternalIndex property (in the 0..n-1 range).