Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3075 Discussions

Capturing Vedio from Decklink capture card and for using as Input of Media SDK for encoder

Satish_P_
Beginner
1,547 Views

Hello 

We are using Media SDK 2015 R6 with centos and intel i7 5775 processor ,

with Blackmagic driver we are able to capture and store video from Decklink Capture Card , now we want to use this captured Real time  data as input of MEdia SDK Encoder application.

but unfortunately Media sdk encodes this data once and then stop...

so is there any way to directly integrate Decklink card with Media SDK for real time encoding?

 suggestion for real time application will be  appreciated 

0 Kudos
4 Replies
Mark_L_Intel1
Moderator
1,547 Views

I think you could.

Decklink has a software DeckLink SDK which exposes their API,

You need to check if they can output the elemental stream, then you can use it as the input of the MSDK encode API.

Here is the link to their Developer SDK: https://www.blackmagicdesign.com/support

There is also some project for their SDK on GitHub: https://github.com/kylemcdonald/ofxBlackmagic

Mark

0 Kudos
Jeffrey_M_Intel1
Employee
1,547 Views

I agree with Mark.  The key is to either get compressed bitstream inputs in a demuxed elementary format like h264 or raw frames in one of the formats VPP can convert to nv12 color format.  We don't have info covering the Decklink side, but we do have extended descriptions of VPP, decode, and encode in the updated developer's guide here: https://software.intel.com/sites/default/files/Intel_Media_Developers_Guide_0.pdf

    

0 Kudos
Satish_P_
Beginner
1,547 Views

Thanks for feed back

we have tried with capture api for decklink in which we have stored content of output raw audio and video in two separate FIFO , and path of these FIFO feeded to sample encode application of media sdk ...

since sample encode application doesnt include Audio so we are only concentrating  over Video but encoded Video have pixellation error's and not visible .

we think this may be a issue of formate because Raw Video we have Captured is of format YUV 420 720x576 and Media SDK Process data in only NV12 format

so  please guide us for getting end result..

 

Satish Pandey 

0 Kudos
AaronL
Beginner
1,547 Views

Satish P. wrote:

we have tried with capture api for decklink in which we have stored content of output raw audio and video in two separate FIFO , and path of these FIFO feeded to sample encode application of media sdk ...  we think this may be a issue of formate because Raw Video we have Captured is of format YUV 420 720x576 and Media SDK Process data in only NV12 format

You'll need to color convert the Blackmagic frames, which are in UYVY format, to NV12.  There are a number of ways to do this, but one way is to use the IPP color conversion function ippiCbYCr422ToYCbCr420_8u_C2P2R() to do that.

AaronL

0 Kudos
Reply