Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2935 Discussions

How to realize the screen capture for extended screen by VGA using MSDK

lin_z_
Beginner
173 Views

Dear Sir

I want to capure the screen extened by the VGA cable connected my laptop.

I use the sample code provided by Intel, and use the sample of decode.When I use the parameter of MFX_CODEC_CAPTURE as my input videotype.

I have sucessfuly to get the screen capture of the laptop main screen, but I have test a lot also failed to capture the extend screen which is connected the laptop by VGA cable.

Although I have changed the parameter of screen-width and screen-height to cover that extend screen, finally that extend area is still black in decode YUV result.

Can you help me out?

thank you!

0 Kudos
1 Solution
Ramashankar
New Contributor III
173 Views

Hi Lin z.

I am also looking for this feature from long time, but as much I have explored, IMSDK doesn't support capture of secondary/extended screen. Don't know why.

I had one interesting observation last time that, if you set your extended screen as primary display by using Intel Graphics card manager (NOT by using Windows control panel setting), then plugin will start capturing this new primary screen rect (which was extended screen earlier). 

So plugin is able to access all screen content (rect) internally but somehow its exposing to user only the one screen content.

I am expecting from Intel to provide this support as early as they can.

Thanks,

View solution in original post

3 Replies
Ramashankar
New Contributor III
174 Views

Hi Lin z.

I am also looking for this feature from long time, but as much I have explored, IMSDK doesn't support capture of secondary/extended screen. Don't know why.

I had one interesting observation last time that, if you set your extended screen as primary display by using Intel Graphics card manager (NOT by using Windows control panel setting), then plugin will start capturing this new primary screen rect (which was extended screen earlier). 

So plugin is able to access all screen content (rect) internally but somehow its exposing to user only the one screen content.

I am expecting from Intel to provide this support as early as they can.

Thanks,

lin_z_
Beginner
173 Views

Hi,Ramashankar

I have done this task by other method.Frankly speaking, finally I use GDI and FFMPEG to decode the all screen captrued, then encode this YUV frame by the MSDK encoder. It works very well.

But I also expect Intel to provide this support as they can.

Thanks

 

Ramashankar wrote:

Hi Lin z.

I am also looking for this feature from long time, but as much I have explored, IMSDK doesn't support capture of secondary/extended screen. Don't know why.

I had one interesting observation last time that, if you set your extended screen as primary display by using Intel Graphics card manager (NOT by using Windows control panel setting), then plugin will start capturing this new primary screen rect (which was extended screen earlier). 

So plugin is able to access all screen content (rect) internally but somehow its exposing to user only the one screen content.

I am expecting from Intel to provide this support as early as they can.

Thanks,

Ramashankar
New Contributor III
173 Views

Hi Lin,

Yes, as an alternative to Intel hw accelerated screen capture, you can use Microsoft's GDI or Desktop Duplication APIs for capturing primary and extended screens both. Desktop Duplication APIs are faster but they are available from Windows 8 onward only.

Thanks,

Reply