Request - Simple example of Vanc Capture

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

yuriflorencio

  • Posts: 3
  • Joined: Fri Feb 08, 2019 12:45 pm
  • Real Name: Yuri Florencio

Request - Simple example of Vanc Capture

PostFri Feb 08, 2019 12:48 pm

Hi
Does anyone have a simple example to VANC Capture?

I'm reading the manual, but don't know how to start.

Thanks in advance

I'm really new to this area. Just looking for some help to start.
Offline

yuriflorencio

  • Posts: 3
  • Joined: Fri Feb 08, 2019 12:45 pm
  • Real Name: Yuri Florencio

Re: Request - Simple example of Vanc Capture

PostMon Feb 18, 2019 4:33 pm

hi
What should i pass as parameter in

2.5.21.2 IDeckLinkVideoFrameAncillaryPackets::GetFirstPacketByID method

I have the DID, SDID, but I don't know what to pass as parameter in IDeckLinkAncillaryPacket **packet

example: GetFirstPacketByID(61,01,??)
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 167
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Request - Simple example of Vanc Capture

PostThu Feb 21, 2019 9:56 pm

Hi Yuri,

The IDeckLinkAncillaryPacket **packet parameter is an output, so you need to provide a reference to pointer IDeckLinkAncillaryPacket*

For example:
Code: Select all
IDeckLinkVideoAncillaryPackets* vancPackets = NULL;
IDeckLinkAncillaryPacket* packet = NULL;
HRESULT hr = S_OK;

hr = videoFrame->QueryInterface(IID_IDeckLinkVideoAncillaryPackets, (void**)&vancPackets);
if (hr != S_OK)
    goto bail;

hr = vancPackets->GetFirstPacketByID(61, 01, &packet);
if (hr != S_OK)
    goto bail;

Regards
Cameron
Offline

dheitmueller@ltnglobal.com

  • Posts: 4
  • Joined: Mon Mar 26, 2018 4:59 pm
  • Real Name: Devin Heitmueller

Re: Request - Simple example of Vanc Capture

PostMon Mar 04, 2019 2:00 pm

Hi yuriflorencio,

You might want to take a look at libklvanc and klvanc-tools. This library abstracts out all the VANC parsing and makes it easy to do VANC capture (just initialize the library, set callbacks for the VANC types you want to receive and start capturing video frames).

https://github.com/stoth68000/libklvanc
https://github.com/stoth68000/klvanc-tools

Some command line tools are included which demonstrate use of the library (and are a good starting point for writing your own app).

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 0 guests