Hi,
I developed an application for capturing the desktop screen by referring sample_decode example. What I am observing is that:
1. While using HW Decoding + System Memory option, my capture rate is around 250 FPS. But if I start playing any video file (checked with a .mp4 file having 1280x720 AVC video) in Windows Media Player while capturing is ON, then capture rate is dropped to 15-20 FPS only.
2. While using HW Decoding + D3D11 Memory option, my capture rate is around 90-100 FPS. And if I start playing video file in Windows Media Player while capturing is ON, then capture rate is dropped to 10-12 FPS only.
Note: this capture rate drop does not occur if I play same file in VLC player.
So my question is:
1. Why capture rate is dropped when media player is running? Is capture decoder using any resource which is being used by windows media player also? How to avoid this frame drop?
2. Why capture speed is slow with video memory, but faster with system memory? I was assuming that HW decoding + D3D11 memory combination would be best in performance.
To reproduce this issue, please run the sample_decode.exe with following option in both case (when media player is running and when media player is not running)
[sample_decode.exe capture -w 1920 -h 1080 -p "22d62c07e672408fbb4cc20ed7a053e4" -r]
you can observe the frame drop scenario.
My environment details:
IMSDK version: 6.0.0.349
Sample decode version: 6.0.0.49
OS: Windows 8.1
Desktop resolution: 1920x1080
System analyzer log is attached.