Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Released] AVPro DeckLink - Broadcast video input and output for Unity

Discussion in 'Assets and Asset Store' started by SunriseRH, Aug 5, 2016.

  1. bigamao

    bigamao

    Joined:
    May 18, 2017
    Posts:
    12
    I just changed my gtx750 graphic card to the Quadro M2000 card ,the problem solved,thank you very much!:)
     
  2. tan0xin

    tan0xin

    Joined:
    May 17, 2017
    Posts:
    1
    When the Black Burst sync signal is accessed from the Decklink of input, how do I set the output's Genlock parameter?
    thanks sunrise!
     
  3. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi tan0xin,

    Are you referring to the pixel offset parameter? If so, it can be set using the _genlockPixelOffset variable. It should be noted that this should be set before starting the output, as it won't update otherwise.

    If you are just referring to synchronizing the output, I believe the playback should automatically sync to the genlock signal.

    Thanks,
     
  4. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.3.2 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Added ability to set default textures/colours when no camera is assigned to DecklinkOutput component
    • Added support for Unity 2017
    Bugfixes
    • Improved efficiency of playback slightly
    • Fixed nullpointerexception when no camera is assigned to DecklinkOutput
    • Fixed linear space bugs where the conversions were incorrect for both capture and playback.
    • Changed workflow for linear to gamma conversions in order to minimize banding
    Misc
    • Updated native sdk to 10.9.3
    ** Please remember to download the latest version of BlackMagic's Desktop Video when upgrading to this new version.

    Thanks,
     
  5. MartijnIvory

    MartijnIvory

    Joined:
    Apr 14, 2014
    Posts:
    7
    I'm trying to use a Intensity Pro 4K card here for a special project.

    I was wondering if it is possible (at all) to let the card capture a custom resolution?

    I mean anything that's not in the regular list of supported formats.... also with a custom aspect ratio. So e.g. 3000x1000@30Hz. I've tried the 'force resolution' options in the DeckLinkInput component, but I can't get anything but a black image out of it.

    regards,

    Martijn
     
  6. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi Martijn,

    The Blackmagic cards only support a fixed set of resolutions I'm afraid. If your input format doesn't work with Blackmagic's own Desktop Video app then it won't work with AVPro Decklink either. If you could give us more details we may be able to recommend an alternative approach.

    Thanks,
     
  7. XJINE

    XJINE

    Joined:
    Jun 2, 2016
    Posts:
    1
    Hi, thanks to release useful assets.

    Now Im trying send/receive alpha channel with trial ver. in Unity 2017.
    And receiver looks something wrong.

    "AVProDeckLink_ARGB.shader" always return fixed alpha value 1.

    > return float4(oCol.g, oCol.r, oCol.a, 1);

    Maybe this is must be like this.

    > return float4(oCol.g, oCol.r, oCol.a, oCol.b);

    Please consider to update or help me to use alpha.
     
  8. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    Yea I agree that certainly doesn't look right. We are investigating this right now and will let you know what the actual correct shader code should be once we figure things out.

    Thanks,
     
    XJINE likes this.
  9. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    To get the alpha value, b is indeed the last value. We will change this for the next update.

    Thanks,
     
  10. apavloff

    apavloff

    Joined:
    May 2, 2017
    Posts:
    3
    Hi! Using this with an UltraStudio MiniRecorder, and I can't get 1080p29.97 on HD-SDI to work. 1080i59.94 works. Using BlackMagic Media Express, 1080p29.97 does work.
     
  11. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    Hmm that is strange, is no signal coming through or does the mode just not appear? Also how are you testing the input signal? Perhaps the device is only sending a 1080i signal. Finally, can you tell us your DesktopVideo version, as well as send through a screenshot of your Desktop Video configuration for the capture card.

    Kind Regards,
     
  12. 3spin

    3spin

    Joined:
    May 27, 2013
    Posts:
    2
    Hey,

    we just implemented the decklink plugin and its working great.

    We just stumbled upon a minor problem:
    When using the "Flip X" functionality of the "Deck Link Input"-script, the resulting video has a vertical "interlacing" effect.
    (Looks like its always 2 columns of pixels getting flipped and thus you can see those vertical lines...)

    Our quick workaround is that we just scale the "Rect Transform" by -1 on its X-axis of the gameobject containing the RawImage, instead of using your FlipX feature to get a perfectly flipped image.

    Best Regards
     
    Last edited: Feb 8, 2018
  13. 3spin

    3spin

    Joined:
    May 27, 2013
    Posts:
    2
    Here is a screenshot of the effect I am talking about. Maybe this will help you.

    Our specs:
    Unity 2017.3.0f3
    AVPro Decklink 1.3.2
    Blackmagic DeckLink SDI 4K Capture Card
    DeckLinkInput Mode: 3840x2160/30,00hz 8-bit 4:2:2 YUV
    The Unity canvas it gets rendered on als has a resolution of 3840x2160.
     

    Attached Files:

  14. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    Thanks for reporting this. Will do some testing on our side and get back to you.

    Kind Regards,
     
  15. ViSoGrafica

    ViSoGrafica

    Joined:
    Dec 14, 2017
    Posts:
    4
    Hi, thanks for this pulgin.
    Like XJINE, some post ago, I'm trying to send and recive SDI 1080i video signals with fill and key.
    For the output point of view it's all ok.
    For the input I have some problem with alpha.
    I'm using a Decklink 4k pro (that seems to me able to get input with fill and key or I'm in error?) and I'm sending to it two SDI signal for input, one is fill and the other the alpha (key).
    This two signals are produced by a video player machine that plays a video content with alpha and each video signal is in the YUV format.
    When I try to use the input in Unity 2018 with a ApplayToMaterial component on a plain surface it result completly opaque.
    Can you explaine to me how I have to set the DeckLinkInput component, or video inputs or shaders in order to achive the result that I'm expect.
    Culd be very usefull a simple Unity scene example for test.
    Thankyou in advance for support!
    Cheers!
     
  16. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    Instead of sending through two SDI signals, you will need to send through one signal that is in ARGB format. The reason I suggest it like this is that although it is technically possible to composite two SDI signals, since they are separate sub-devices and due to the various boilerplate in-between the signal and when it actually gets rendered, you will very likely get out of sync issues.

    Once you receive a singleSDI signal, the image itself can just be used directly and should already be transparent in the relevant areas.

    Kind Regards,
     
  17. ViSoGrafica

    ViSoGrafica

    Joined:
    Dec 14, 2017
    Posts:
    4

    Hi,
    sorry in advance but I don't understand very well what you suggest to me.
    I always worked with dual link SDI signal when I had to carry fill and key.
    Is it possible to have a single SDI with RGBA in 1080i25 or more?
    My graphic station (Cinegy Playout) is equipped with a BM Decklink 4k pro and sends correctly, to my Unity based application, a dual link video signal composed by fill and key (1080i25 video signal).
    Now, how I have to set my BM Decklink 4k pro for the Unity application with your plugin in order to correctly acquire an RGBA texture to apply to a material?
    Thankyou for the support!
    Cheers
     
  18. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    By dual-link, are you talking about the actual dual-link where you carry a single signal over 2 SDI cables, or just talking about carrying an alpha signal in 1 cable and a fill signal in another? If it's the former, then the image should just work, if the latter, these are read in as 2 separate signals which means that you will need to manually composite it. The issue is that if your image is moving, it will most likely result in the desync between your two input signals as we use different input queues.

    Since you are using a 4k pro, it should be possible to do rgba 4k 30 fps progressive (or maybe even 60 progressive, I forget now) even I believe, so it shouldn't be a problem at all. Instead of setting the external keying on the output, just set the actual pixel mode to rgba, then you can use it directly inside the plugin in Unity without any need to composite things yourself.

    Also I don't think 1080i25 is a mode? I might be mistaken but if I recall, 25fps modes are progressive, so your mode would be probably 1080i50 since it interlaces the frames.

    Kind Regards
    Sunrise
     
  19. lexjay

    lexjay

    Joined:
    Dec 20, 2016
    Posts:
    1
    hello

    I'm a novice user of this plugin and I'm setting it up but I can't get it.In unity, it's always a splash screen.
    upload_2018-3-19_16-40-55.png upload_2018-3-19_16-42-1.png upload_2018-3-19_16-44-55.png upload_2018-3-19_16-46-22.png

     

    Attached Files:

  20. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
  21. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.5.0 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Added support for HLG HDR (high dynamic range) and BT.2020 colour-space, including 10-bit output and internal floating point processing
    • Added support for internal and external keying using YUV and other non-alpha modes
    • Added option to synchronise output to input
    • Massive performance improvements
    • Added support for new video modes
    • Added support for Unity 2018
    Fixes
    • Fixed the device model name always being null
    • Fixed some memory not being released
    • Fixed RGBA shaders to preserve alpha channel
    Upgrade Notes
    • Download the latest version of BlackMagic's Desktop Video when upgrading to this new version.

    Please report any issues here on the forum, or to our customer support email.

    Thanks,
     
  22. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.5.1 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Upgraded from DeckLink SDK 10.9.5 to 10.9.11
    Upgrade Notes
    • Download the latest version of BlackMagic's Desktop Video when upgrading to this new version.

    Please report any issues here on the forum, or to our customer support email.

    Thanks,
     
  23. maddswede

    maddswede

    Joined:
    Apr 12, 2018
    Posts:
    1
    Hi,

    I need to feed greenscreen footage and have it keyed. Does this plugin handle it or does it only work on transparent alpha key?

    Thanks
     
  24. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    This app doesn't do chroma keying. You can however get the texture for the input image streams, so it's possible to either write your own or use another plugin together with this to key things out.

    Kind Regards,
     
  25. ViSoGrafica

    ViSoGrafica

    Joined:
    Dec 14, 2017
    Posts:
    4
    Hi,
    I wish to know if the BM DeckLink Quad 2 is supported and if it possible really to set, configure and use all SDI as input or output independently with this plugin.
    Is it possible also alpha channel for input and output?
    Thanks
    Cheers
     
  26. ViSoGrafica

    ViSoGrafica

    Joined:
    Dec 14, 2017
    Posts:
    4
    Good news for 2018 Unity release, but it'is supported also the hd render pipeline ?
    I ask you this because the SDI video output results vertically inverted to me when I use the Post Process Layer.
    Thx for support
     
  27. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    Hi,

    You can configure the duplex mode using the DeckLinkOptions component.
    I'm not entirely sure what you mean by "also alpha channel for input and output". If the card supports RGBA formats then alpha is supported, otherwise no.

    Kind Regards,
     
  28. SunriseRH

    SunriseRH

    Joined:
    Aug 5, 2016
    Posts:
    107
    I wasn't able to replicate this. Can you either tell me your exact setup (Unity version, graphics API used, effects used, what demo scene you tested on etc.), or even better email us a a sample project?
     
  29. arimacdigital

    arimacdigital

    Joined:
    Nov 27, 2017
    Posts:
    5
    Hi,
    I have a DeckLink Quad 2 Card. Can I give three Camera output to that card from the same scene
     
  30. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi,

    Thanks for getting in touch.

    Yes AVPro DeckLink should be able to output 3 camera views simultaneously using that card.

    If you want to test it, you can download the free trial version from our website. It has no feature limitations, only a watermark overlaid over the output image.

    If you have any questions just let me know.

    Thanks,
     
  31. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.6.0 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Added support for stereo (3D) input and output
    • Added support for DeckLink 8K Pro capture card
    • Upgraded from DeckLink SDK 10.9.11 to 10.11
    Fixes
    • Reduced garbage generation in many components and demos
    • Fixed “synced to input” option, by making it wait for the auto-detection input mode to resolve
    Upgrade Notes
    • Download the latest version of BlackMagic's Desktop Video when upgrading to this new version.

    Please report any issues here on the forum, or to our customer support email.

    Thanks,
     
  32. IlPaC0

    IlPaC0

    Joined:
    Jan 18, 2017
    Posts:
    1
    Hi,

    I am using a Decklink SDI 4K, all the input demo work fine but I cannot get the output signal as 2 different feed (Fill and Key). I thought the demo 08_ExternalKeying was a sample of that but I get only the Fill out of my decklink, is there anything I have to change to get the Key (gray scale) from the other BNC of the card?

    My final goal is to have a (external) visual mixer to do the keying of the gfx over HD camera footage.

    Thanks
     
  33. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Thanks for getting in touch.

    It sounds like you have it set up correctly. It should only be the external keying option that you need to select...

    I don't think the DeckLink 4K SDI supports external keying because it needs more than 1 output. Also in the specs it only mentions internal keying:
    https://www.blackmagicdesign.com/uk/products/decklink/techspecs//W-DLK-11

    If you're trying to just output an RGBA signal over the single SDI connection, then this might work - but it would require disabling the external keying option. It may also require running the DeckLink Configuration tool to set the output up for RGBA output.

    Cheers,
     
  34. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.6.2 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Minor UI and garbage collection improvements
    • Upgraded from DeckLink SDK 10.11 to 10.11.1
    Fixes
    • Fixed a major memory leak when using stereo (3D) mode
    • Fixed some bugs related to 8K resolution selection
    Upgrade Notes
    • Install the latest version of BlackMagic's Desktop Video when upgrading to this new version.

    Please report any issues here on the forum, or to our customer support email.

    Thanks,
     
  35. NolwennB

    NolwennB

    Joined:
    Mar 4, 2014
    Posts:
    15
    Hello,
    I'm using your plugin on Unity 2018.2.8f1 with a DeckLink SDI 4K card (driver 10.11.2). If I run your 05_OutputDemo scene, the output is OK on my SDI monitor. However I've noticed that the Multi Output option is checked in DeckLinkSettings in your scene. As you said it in the user manual, it is "at the cost of some smoothness in the output video stream", which is a problem for me : I don't want any smoothness. So I tried to uncheck the Mutli Output option, but then the SDI output on my monitor is really really slow with an increasing amount of freeze.
    Can you help me with that ?
    Thanks
     
  36. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    By smoothness we mean frame-rate smoothness, which I'm sure you do want...you wouldn't want stuttering?

    That said - it shouldn't become slow when you disable it. We will look into this and get back to you.

    Thanks,
     
  37. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    We can confirm this bug.
    This issue happens in Unity 2018.2.x and above. If you use any Unity version before this then the issue won't be there (eg try 2018.1.9). It seems that Unity changed some behaviour of their Application.targetFrameRate.

    We are still investigating but for now it's best to downgrade to a slightly older Unity version.

    Thanks,
     
  38. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    I've attached a fix here. Just copy this file over the old one and it should work in all Unity versions now.

    Thanks,
     

    Attached Files:

  39. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.6.3 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Fixes
    • Fixed an issue introduces in Unity 2018.2.0 where the timing behaviour has changed which caused the DeckLinkOuptut component to generate too many frames when the multi-output option was disabled
    • Fixed an issue that could cause stereo output rendering to sometimes not set the right eye texture correctly
    • Fixed an issue where RGB input modes would never be auto-detected

    Please report any issues here on the forum, or to our customer support email.

    Thanks,
     
  40. NolwennB

    NolwennB

    Joined:
    Mar 4, 2014
    Posts:
    15
    Hello,
    Yes it works ok now without multi-output checked, thank you very much for the release.
    Nolwenn
     
    AndrewRH likes this.
  41. prototype14

    prototype14

    Joined:
    Aug 20, 2013
    Posts:
    1
    Hey guys, I grabbed the demo version of your DeckLink plugin today and it's solved a lot of problems I was having with writing out to a BlackMagic UltraStudio Express, though as you've mentioned it's only for Windows (which works great)

    Do you have any plans to extend this to have native Mac OSX support?
     
  42. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    229
    Yes, please!!!
     
  43. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.6.6 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Added support for input frame timecodes
    • Added support for input frame ancillary data
    • Improvements made to input frame buffering
    • Upgraded from DeckLink SDK 10.11.1 to 10.11.4
    • Added color tint to IMGUI component
    Fixes
    • Improved accuracy of skipped frame detection
    • Fixed issue where some ARGB sources output 0.0 in the alpha channel

    Please report any issues here on the forum, or to our customer support email.

    ** Please remember to download the latest version of BlackMagic's Desktop Video when upgrading to this new version.


    Thanks,
     
  44. max_at_newgameplus

    max_at_newgameplus

    Joined:
    Apr 24, 2016
    Posts:
    34
    Hello,
    I'm using your plugin to produce an augmented reality broadcast (a tracker tracks a broadcast camera and tells a virtual camera in unity where to move/rotate, and that virtual camera's image is then layered on top of the same broadcast camera image recieved through decklink). Since the broadcast camera will have some amount of delay, while the virtual camera is rendered immediately, the two images will be noticeably out of sync when the camera moves. Does your plugin have a built-in way to set a delay or buffer on a texture in unity that can be overlayed with the decklink input, so these two images can be synchronized?
     
    floatingfactory likes this.
  45. ecj2000

    ecj2000

    Joined:
    Aug 12, 2016
    Posts:
    2
    Hello.
    Do you have any plans to provide chroma key kit like AVPro live?
     
  46. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi,

    Our plugin doesn't have any support to add delays directly. However you can do this manually in Unity without too much difficulty. You just need to get the Texture from the DeckLinkInput component and have an array of RenderTexture. Each frame Graphics.Blit() to the next buffer and display the previous buffer.

    Thanks,
     
  47. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    It should be possible to integrate the same Chroma Key Kit that AVPro Live Camera supports. Both plugins just output a standard unity Texture so you can pass this to the Chroma Key asset for processing. We don't provide any built-in support for this, but it should only take a few lines of scripting.

    Thanks,
     
  48. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.7.2 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Features
    • Upgraded from DeckLink SDK 10.11.4 to 11.1.0
    • Added support for setting the device profile
    • Added support for setting the SMPTE level
    • UI improvements
    • Many minor internal improvements
    Fixes
    • Some configuration settings weren’t being applied

    Please report any issues here on the forum, or to our GitHub Issues.

    ** Please remember to download the latest version of BlackMagic's Desktop Video when upgrading to this new version.


    Thanks,
     
  49. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,805
    Hi All,

    AVPro DeckLink version 1.7.4 has just been released!

    You can find the updated version on the Asset Store and the free trial version on our website.

    Changes include:

    Fixes
    • When using multiple devices, devices after a device with sub-devices would not be usable due to issues with device indices

    Please report any issues here on the forum, or to our GitHub Issues.

    ** Please remember to download the latest version of BlackMagic's Desktop Video when upgrading to this new version.


    Thanks,
     
  50. INGTONY

    INGTONY

    Joined:
    Oct 13, 2014
    Posts:
    24
    hi, testing the demo , does the Avpro Decklink includes the features of Avpro Livecamera? or must purchase both? hwat i mean if i can use both hardware ( top quality Ex; blackmagik and a web cam?) thnx