# Not able to read Video from Capture Card with GPU (Unsupported Format) while Reading with CPU works fine

**URL:** <https://forum.opencv.org/t/not-able-to-read-video-from-capture-card-with-gpu-unsupported-format-while-reading-with-cpu-works-fine/9506>\
**Category:** C++\
**Tags:** cuda, ffmpeg, cudacodec, videoio\
**Created:** [July 14, 2022, 1:50pm UTC](https://forum.opencv.org/t/not-able-to-read-video-from-capture-card-with-gpu-unsupported-format-while-reading-with-cpu-works-fine/9506 "2022-07-14T13:50:03Z")\
**Posts on this page:** 1\
**Showing post:** 41

<div class="post-metadata">

**Author:** ![data](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@data](https://forum.opencv.org/u/data)\
**Post date:** [August 23, 2022, 10:22am UTC](https://forum.opencv.org/t/not-able-to-read-video-from-capture-card-with-gpu-unsupported-format-while-reading-with-cpu-works-fine/9506/41 "2022-08-23T10:22:59Z")

</div>

> [@cudawarped](#):
>
> Either way if you haven’t added the bin directory to your path you need to.

Thanks a lot, that fixed the problem with the `cv::VideoCapture()`. I can now open the Camera like this:

```auto
cv::VideoCapture cam("video=Microsoft® LifeCam HD-3000", cv::CAP_FFMPEG);
// cam.set(cv::CAP_PROP_FORMAT, -1); // If activated camera Window is about 1 px high and as wide as my screen

```

I tested also with `cv::cudacodec::VideoReader()` and there I get:

```auto
OpenCV(4.6.0) C:\...\private.cuda.hpp:112: error: (-213:The function/feature is not implemented) The called functionality is disabled for current build or platform in function 'throw_no_cuda'

```

I also looked up the post from @alex to this problem:

> [@Error: (-213:The function/feature is not implemented)](https://forum.opencv.org/t/error-213-the-function-feature-is-not-implemented/3523/8):
>
> In windows you can simply copy the libs and headers into the cuda directory

I did that, but it still gives me the error message.  
Should I open up a new thread for this problem or could this be related?

---

_[View the full topic](https://forum.opencv.org/t/not-able-to-read-video-from-capture-card-with-gpu-unsupported-format-while-reading-with-cpu-works-fine/9506)._
