SDI cards from Blackmagic Design, AJA, DELTACAST and Bluefish444 can capture and output ancillary data: closed captions, custom ANC packets, SCTE-104 messages and AFD. What is on by default, and the property names, differ from vendor to vendor. This article lists them.
How to set device properties
Device properties are set on the input or output object. Set them before
DeviceSet, so that the device starts with them.
| SDK | Input | Output |
|---|---|---|
| MFormats | MFLive.PropsSet("vanc.capture_cc", "true") |
MFRenderer.PropsSet("cc_line_sdi", "9") |
| MPlatform | MLive.PropsSet("object::vanc.capture_cc", "true") |
MRenderer.PropsSet("device::cc_line_sdi", "9") after DeviceSet
|
To change a property of a device that is already selected, use the device:: prefix on any
object: PropsSet("device::anc_input_extract_cc", "true"). In MLive the object::
prefix works only for the capture properties of Blackmagic and AJA listed below; for other devices use
device:: after DeviceSet.
Capture
Blackmagic Design
All ANC capture is off by default.
| Property | Default | What it does |
|---|---|---|
vanc.capture_cc |
false | Decodes captions into C608 and C708: from SMPTE 334 packets in HD and SD, and from line 21 in NTSC. |
vanc.capture_anc |
false | Puts all ANC packets on the frame as ANC.Line.N, parses SCTE-104 into SCTE-104 and decodes OP-47 Teletext. |
vanc.capture |
false | Keeps the raw VANC lines (VANC binary data) for transparent pass-through to a Blackmagic output (see output.copy_vanc). |
vanc.lines |
empty | Lines to scan, as a list of line numbers, for example 9,10,12. Empty: the whole VANC area of the current video format. Lines 12 and 13 (SCTE-104) are always scanned. |
vanc.lines_cc |
= vanc.lines
|
Lines to scan for captions. |
vanc.cc_708_native_only |
false |
true: put C708 on the frame only when the CDP contains real CEA-708 services, not just CEA-608 data. |
vanc.capture_cc switches the capture to 10-bit on all models except DeckLink Duo 2, Quad 2,
4K and 8K. The second field of interlaced formats is scanned as well.
AJA
All ANC capture is off by default. ANC is read from SDI inputs only, not from HDMI.
| Property | Default | What it does |
|---|---|---|
capture_cc |
false | Decodes captions into C608 and C708. |
capture_vanc |
false | Puts VANC packets on the frame as ANC.Line.N, with the list of lines in VANC.Lines. A line that carries exactly one SCTE-104 packet is also parsed into SCTE-104. |
capture_hanc |
false | Puts HANC packets on the frame as HANC.Line.N, with the list in HANC.Lines. |
DELTACAST
ANC capture is always on. Packets of lines 0–64 are put on the frame as
ANC.Line.N (the chroma stream for SD, the luma stream for HD), and captions are decoded into
C608/C708. SCTE-104 is available as a raw packet in ANC.Line.N; it is
not parsed into SCTE-104.
Bluefish444
| Property | Default | What it does |
|---|---|---|
| — | always on | VANC packets are put on the frame as ANC.Line.N. A line that carries exactly one SCTE-104 packet is also parsed into SCTE-104. |
anc_input_extract_cc |
false | Decodes captions into C608 and C708. Set it with the device:: prefix in MPlatform. |
Output
On output, captions are taken from C608/C708 (or GA94) of each frame,
custom packets from ANC.Line.N, and SCTE-104 from the SCTE-104 string.
Blackmagic Design
| Property | Default | What it does |
|---|---|---|
cc_output |
7 |
Which caption forms to send; add the values together: 1 – CEA-608 on analog line 21 (NTSC); 2 – CEA-608 byte pairs in ANC (DID 0x61, SDID 0x02); 4 – CEA-708 CDP in ANC (DID 0x61, SDID 0x01). 0 disables caption output. |
cc_line_sdi |
9 | SDI line for caption packets and AFD. |
cc_clear_on_breaks |
true | Sends a caption erase command when the source has a break (for example, a new playlist item), so that old captions do not stay on screen. |
cc_output.convert_608_to_708 |
false | Converts the CEA-608 captions of channel CC1 (from C608) into a native CEA-708 service in the CDP, for receivers that need real CEA-708. The CEA-608 data is sent as well. Requires the value 4 in cc_output. If frames bring their own CEA-708 (C708 or GA94), that data is sent unchanged and conversion stops until the next break or restart of the output. Not used with direct_out=true. |
cc_output.708_service |
1 | CEA-708 service number for the converted captions, 1–63. |
cc_output.708_max_delay_ms |
2000 | How long converted caption data may wait for room in the CDP; older data is dropped. |
output.anc_packets |
true | Sends ANC.Line.N packets of the frame. |
output.copy_vanc |
2 | Values above 1 copy the raw VANC lines captured with vanc.capture. 0 disables the copy. |
output.afd_packets, output.afd_code, output.afd_ar
|
true, -1, -1 | AFD output. See Active Format Description (AFD). |
SCTE-104 from the SCTE-104 string is sent on the line given in the message (12 by default); see
SCTE-104 on SDI: receiving and sending. ANC.Line.N packets are sent on lines 1–50
of the first field and, for interlaced SD and 1080i, on the matching lines of the second field. Line 21 in
NTSC is reserved for analog captions.
Caption and ANC output need a 10-bit YUV card format. On all models except DeckLink Duo 2, Quad 2, 4K and 8K the renderer switches to 10-bit YUV for this.
AJA
| Property | Default | What it does |
|---|---|---|
output.vanc |
true | Enables ANC output on SDI. HDMI outputs carry no ANC. |
cc_output |
7 | Caption forms, the same values as for Blackmagic. Line 21 (value 1) is used for SD only. |
cc_line_sdi |
9 | SDI line for caption packets. |
cc_clear_on_breaks |
true | Erases captions on source breaks. |
AJA outputs captions and SCTE-104. Custom ANC.Line.N packets and AFD are not sent.
DELTACAST
| Property | Default | What it does |
|---|---|---|
output.vanc |
true | Sends captions from C608/C708 and custom packets from ANC.Line.N. |
cc_line_sdi |
8 | SDI line for caption packets. |
Packets of lines 0–49 are sent. The ANC.Line.N string must hold bare <packet> elements
without the <ANC.Line.N> root element. Frames captured from DELTACAST inputs have this form; strings
from Blackmagic, AJA and Bluefish444 inputs and from MXF files have the root element and are not sent. SCTE-104 is sent
only as a raw packet in ANC.Line.N. On DELTACAST IP boards (SMPTE ST 2110) no ancillary data is sent.
Bluefish444
| Property | Default | What it does |
|---|---|---|
output.vanc |
true | Enables VANC output. Captions from C608/C708 are always sent when present. |
cc_line_sdi |
1 | Caption line, counted from the start of the VANC area of the card (1 is SDI line 9 in progressive HD formats). |
output.anc_packets |
false | Sends ANC.Line.N packets of lines 6–40. |
output.afd_packets |
true | Sends AFD for 16:9 NTSC and PAL frames. |
SCTE-104 is sent only as a raw packet in ANC.Line.N.
Summary
| Blackmagic | AJA | DELTACAST | Bluefish444 | |
|---|---|---|---|---|
| Capture captions | vanc.capture_cc |
capture_cc |
always | anc_input_extract_cc |
Capture ANC.Line.N
|
vanc.capture_anc |
capture_vanc |
always | always |
Capture SCTE-104 (parsed) |
vanc.capture_anc |
capture_vanc |
— | always |
| Output captions | yes | yes | yes | yes |
Output ANC.Line.N
|
yes | — | yes, lines 0–49, without root element | output.anc_packets |
Output SCTE-104 string |
yes | yes | — | — |
| Output AFD | yes | — | — | 16:9 SD only |
Example: SDI to SDI with captions and ANC (MFormats)
MFLiveClass live = new MFLiveClass();
live.PropsSet("vanc.capture_cc", "true");
live.PropsSet("vanc.capture_anc", "true");
live.DeviceSet(eMFDeviceType.eMFDT_Video, inputIndex, "");
MFRendererClass renderer = new MFRendererClass();
renderer.DeviceSet(eMFDeviceType.eMFDT_Video, outputIndex, "");
while (running)
{
live.SourceFrameGet(-1, out MFFrame frame, "");
renderer.ReceiverFramePut(frame, -1, "");
Marshal.ReleaseComObject(frame);
}
With both vanc.capture_cc and vanc.capture_anc, the caption packets arrive twice:
as C608/C708 and as ANC.Line.9. The renderer then sends them twice on
line 9. Enable only one of the two, or remove the caption line from the frame before output.
MPlatform example
MLiveClass live = new MLiveClass();
live.PropsSet("object::vanc.capture_cc", "true");
live.DeviceSet("video", inputName, "");
live.ObjectStart(null);
MRendererClass renderer = new MRendererClass();
renderer.DeviceSet("renderer", outputName, "");
renderer.PropsSet("device::cc_output", "6"); // ANC only, no line 21
renderer.ObjectStart(live);
Still have questions?
Tell us what didn’t work or what you’d like clarified.