CapturePreviewCSharp

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

skbrown

  • Posts: 4
  • Joined: Fri Apr 14, 2023 1:41 pm
  • Real Name: Simon Brown

CapturePreviewCSharp

PostFri Apr 14, 2023 1:46 pm

I'm trying to build CapturePreviewCSharp solution using Visual Studio 2022 version 17.5.4.
The project and files are from the 12.4.2 SDK, and when I hit "build" I get the following compiler error:
Error CS0246 The type or namespace name 'IDeckLinkWPFDX9ScreenPreviewHelper' could not be found (are you missing a using directive or an assembly reference?) \Blackmagic_DeckLink_SDK_12.4.2\Blackmagic DeckLink SDK 12.4.2\Win\Samples\SignalGenCSharp\PreviewCallback.cs 56
What am I missing?
Offline

Cameron Nichols

Blackmagic Design

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

Re: CapturePreviewCSharp

PostTue Apr 18, 2023 12:39 am

Hi Simon,

Please check that you have minimum Desktop Video 12.3 installed. The IDeckLinkWPFDX9ScreenPreviewHelper interface was added in that release, so an earlier installation will not have this interface registered.

Regards
Cameron
Offline

skbrown

  • Posts: 4
  • Joined: Fri Apr 14, 2023 1:41 pm
  • Real Name: Simon Brown

Re: CapturePreviewCSharp

PostTue Apr 18, 2023 8:27 am

Thank you, that has worked. I must have had an older version installed.
Offline

skbrown

  • Posts: 4
  • Joined: Fri Apr 14, 2023 1:41 pm
  • Real Name: Simon Brown

Re: CapturePreviewCSharp

PostTue Apr 18, 2023 9:26 am

Having said that, the project now builds as expected, and it finds an input on Decklink Quad (2) however nothing is drawn in the preview frame. Is the preview frame likely to work if the frame data is YUV?

Thanks,
Simon
Offline

Cameron Nichols

Blackmagic Design

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

Re: CapturePreviewCSharp

PostThu Apr 20, 2023 6:48 am

Hi Simon,

Yes, the CapturePreviewCSharp preview will work for both YUV 422 and RGB 444 inputs.

It is best to use DeviceStatus/DeviceStatusCSharp to check the input state of the capture when CapturePreviewCSharp is running. Pay particular attention to "Video Input Locked" and also the other detected video input fields.

Regards
Cameron
Offline

skbrown

  • Posts: 4
  • Joined: Fri Apr 14, 2023 1:41 pm
  • Real Name: Simon Brown

Re: CapturePreviewCSharp

PostThu Apr 20, 2023 10:43 am

Hi Cameron,
This is the output of both CapturePreviewCSharp and DeciceStatusCSharp
Image
It clearly shows 1080p60 coming in, and I am not seeing any errors, input is locked, etc.

But you can also see there is no preview.

Any help is greatly appreciated.
Thanks,
Simon

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 20 guests