Knowledge Base All Content

Short FAQs about SDK

Article ID: 010020005 SDK V2 , SDK V3

HD or UHD
frame rate
avi
identify
recognize
find
screenshot
brightness
contrast
hue
and saturation
audio and video encoding interface
MWCaptureVideoFrameToPhysicalAddressEx
XICapture
XIS_OpenAudioCaptureEx
Media Foundation
V4L2
eight channel LPCM audio
sudo
root
compressed audio
bmp
color difference
java
C# wpf
overlay text or image
OSD
OpenCV
python
  1. When I use MWCapture SDK’s example codes with Magewell HD (or UHD) capture device to capture 1080p (or 4K) video, the frame rate cannot reach 60fps

    Set the capture color format to RGB24 or YUY2, so that the frame rate can reach 60fps.

  2. Does MWCapture SDK support recording video as a lossless AVI file?

    This feature is not supported, but third-party software such as OBS provides lossless recording.

  3. Pro Capture cards cannot be identified by the example codes in the latest SDKv3, while other capture software, such as OBS and AMCap, can recognize the cards

    Please upgrade the Pro Capture driver to the latest version.

  4. Does SDKv3 have screenshot function?

    Yes. You can save screenshots as BMP images by referring to the "CaptureByInput" example, or as JPEG images by referring to the LowLatency example.

  5. Is there a function in SDKv3 that can set the brightness, contrast, hue, and saturation of images captured by USB Capture (Plus) devices?

    Currently, no function implement this functionality. We will add such function in the next release.

  6. Does SDKv3 provide an audio and video encoding interface?

    Currently, no function implement this functionality. We will add hardware encoding interface in the next release. If you need to implement software encoding functionality, you can refer to the "AVCapture" example.

  7. When using the "MWCaptureVideoFrameToPhysicalAddressEx" function in SDKv3 with a Pro Capture card to capture video, the computer crashes after the program is running for a while

    After calling "MWCaptureVideoFrameToPhysicalAddressEx" to capture a video frame, you must call "MWGetVideoCaptureStatus" to get the status of the current captured frame and release system resources. You can refer to the "CaptureByInput" example for development.

  8. After I set the color format to RGB24 and run the "XICapture" example in SDKv2, the preview image is upside down

    It is normal for an RGB24 image to have its original data upside down. If you want the orientation of the preview image to be normal, you must correct it at rendering. For example, in SDKv2, you can correct the orientation of an image by setting the fourth parameter of the "XIS_VideoRendererDrawImage" function to FALSE.

  9. I use the "XIS_OpenAudioCaptureEx" function in SDKv2 to open the same audio device several times. The first call returns success, but the second call returns failure

    XIS_OpenAudioCaptureEx is an exclusive audio capture interface, so the same audio device can only be opened once. To capture multi-channel audio streams from the same audio channel, you should use the "MWCreateAudioCapture" function in SDKv3, which only supports Pro Capture and Eco Capture cards.

  10. Video capture software developed with Media Foundation framework has compatibility problems with Magewell Pro Capture cards

    There are compatibility problems between Media Foundation framework and Pro Capture cards that support CC (Closed Caption). Disabling the CC feature of the capture card can solve the problem.

  11. How can I use Pro Capture and Eco Capture cards to capture 8-channel LPCM audio?

    You can use the private audio capture interface of the Magewell SDK to capture 8-channel LPCM audio. Please refer to the "AudioCapture" example in SDK for development.

  12. On Linux, how can I set the brightness, contrast, hue and saturation of the image captured by USB Capture (Plus) device through V4L2 interface?

    These color parameters can be set through the ioctl command, the command code can be found in the file “ /usr/src/linux-headers-xxxxx/include/uapi/linux/v4l2-controls.h”.

  13. On Linux, how can I check the status of USB Capture HDMI 4K Plus’s sources through the V4L2 interface?

    V4L2 does not provide this API. It is recommended to use SDKv3 for development.

  14. Can the example codes associated with USB Capture (Plus) devices in SDKv3 work without root authority (sudo) on Linux?

    Yes. Click here to download the file "189-usbdev.rules" , move it to the directory "/etc/udev/rules.d", and then restart your computer.

  15. How can I use Pro Capture or Eco Capture cards to capture compressed audio (non-LPCM format)?

    Only by using the private audio capture interface in Magewell’s SDK, can compressed audio be captured through Pro Capture and Eco Capture products. You can refer to the "MultiAudioCapture" example in SDK for development. Note that Pro Capture and Eco Capture cards do not have audio decoding function, so the captured audio is still compressed, requiring developers to analyze and decode.

  16. A video in YUY2 format is converted to RGB format and then saved as a BMP file. The BMP file has obvious color difference with the original image

    The problem may be caused by improper algorithm selection. There are two standard 8-bit YUV formats: BT601 and BT709. Each standard has two quantization ranges: Limited and Full. So there will be four pair-wise cases, among which the transformation formula is different. It is recommended that you check which combination your acquired images belong to and apply the appropriate algorithm.

  17. How can I compile Java examples in SDKv3?

    In Java, the function in SDKv3 can only be invoked by a Java program through JNI packages, so you need to use VS compiler LibMWCaptureJni project first to generate "LibMWCaptureJnid.dl/LibMWCaptureJni.dll" file, and then compile Java examples. Java examples need to load the "jawt.dll" dynamic link library at run time and make sure the file can be properly searched at run time.

  18. Does SDKv3 support C# WPF applications?

    Currently, the image rendering interface in SDKv3 only supports CSharp Windows Form applications, not WPF and Universal applications.

  19. Can I use Magewell’s SDK to overlay text or images on video that is output from Pro Capture SDI's loop-through interface?

    OSD is not supported for Pro Capture SDI loop-through output.

  20. Do Pro Capture cards support OpenCV or Python?

    Yes.

Has your problem been solved?