Short FAQs about SDK
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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”.
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.
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.
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.
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.
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.
Does SDKv3 support C# WPF applications?
Currently, the image rendering interface in SDKv3 only supports CSharp Windows Form applications,
not WPF and Universal applications.
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.
Do Pro Capture cards support OpenCV or Python?
Yes.
Article ID: 010020005
> Get Started
> Get Started