Repository: opencv
Issue: Several test cases in videoio/videocapture_acceleration.read fail on Windows (VP9)
Labels: category: videoio

<!--
If you have a question rather than reporting a bug please go to https://forum.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)

- OpenCV => 4.5.2-dev
- Operating System / Platform => Windows 10 64 Bit
- Compiler => Visual Studio 2019 + Ninja
- Hardware: Xeon® Silver 4210 + Quadro P2000 (CUDA 11.2).

##### Detailed description

```
[ RUN      ] videoio/videocapture_acceleration.read/61, where GetParam() = (sample_322x242_15frames.yuv420p.libvpx-vp9.mp4, FFMPEG, ANY, false)
VideoCapture FFMPEG:D3D11
VideoCapture with acceleration = D3D11  @ FFMPEG     on sample_322x242_15frames.yuv420p.libvpx-vp9.mp4 with PSNR-original = 2.37643
C:\Slave\workspace\nightly-master\windows10\opencv\modules\videoio\test\test_video_io.cpp(764): error: Expected: (min_psnr_original) >= (psnr_threshold), actual: 2.37643 vs 30
[  FAILED  ] videoio/videocapture_acceleration.read/61, where GetParam() = (sample_322x242_15frames.yuv420p.libvpx-vp9.mp4, FFMPEG, ANY, false) (187 ms)
[ RUN      ] videoio/videocapture_acceleration.read/62, where GetParam() = (sample_322x242_15frames.yuv420p.libvpx-vp9.mp4, FFMPEG, MFX, false)
[ERROR:0] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1103) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture
[     SKIP ] FFMPEG VideoCapture on sample_322x242_15frames.yuv420p.libvpx-vp9.mp4 not supported with HW acceleration, skipping
[       OK ] videoio/videocapture_acceleration.read/62 (3 ms)
[ RUN      ] videoio/videocapture_acceleration.read/63, where GetParam() = (sample_322x242_15frames.yuv420p.libvpx-vp9.mp4, FFMPEG, D3D11, false)
VideoCapture FFMPEG:D3D11
VideoCapture with acceleration = D3D11  @ FFMPEG     on sample_322x242_15frames.yuv420p.libvpx-vp9.mp4 with PSNR-original = 2.37643
C:\Slave\workspace\nightly-master\windows10\opencv\modules\videoio\test\test_video_io.cpp(764): error: Expected: (min_psnr_original) >= (psnr_threshold), actual: 2.37643 vs 30
[  FAILED  ] videoio/videocapture_acceleration.read/63, where GetParam() = (sample_322x242_15frames.yuv420p.libvpx-vp9.mp4, FFMPEG, D3D11, false) (186 ms)
```

The issue is reproducible with OpenCV CN Jenkins, e.g. :
- https://build.opencv.org.cn/job/precommit/job/windows10/1092/
- https://build.opencv.org.cn/job/nightly-master/job/windows10/94/consoleFull

I'll add extended log later.

##### Issue submission checklist

 - [ ] I report the issue, it's not a question
   <!--
   OpenCV team works with forum.opencv.org, Stack Overflow and other communities
   to discuss problems. Tickets with question without real issue statement will be
   closed.
   -->
 - [ ] I checked the problem with documentation, FAQ, open issues,
       forum.opencv.org, Stack Overflow, etc and have not found solution
   <!--
   Places to check:
   * OpenCV documentation: https://docs.opencv.org
   * FAQ page: https://github.com/opencv/opencv/wiki/FAQ
   * OpenCV forum: https://forum.opencv.org
   * OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
   * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
   -->
 - [ ] I updated to latest OpenCV version and the issue is still there
   <!--
   master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
   OpenCV team supports only latest release for each branch.
   The ticket is closed, if the problem is not reproduced with modern version.
   -->
 - [ ] There is reproducer code and related data files: videos, images, onnx, etc
   <!--
   The best reproducer -- test case for OpenCV that we can add to the library.
   Recommendations for media files and binary files:
   * Try to reproduce the issue with images and videos in opencv_extra repository
     to reduce attachment size
   * Use PNG for images, if you report some CV related bug, but not image reader
     issue
   * Attach the image as archive to the ticket, if you report some reader issue.
     Image hosting services compress images and it breaks the repro code.
   * Provide ONNX file for some public model or ONNX file with with random weights,
     if you report ONNX parsing or handling issue. Architecture details diagram
     from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
   -->