# 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:** ffmpeg, cuda, videoio, cudacodec
**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:** 5

<div class="post-metadata">

### Author: ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)
#### Post date: [July 25, 2022, 8:44am 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/5 "2022-07-25T08:44:43Z")

</div>

It definitely won’t work with directshow, but you can try it with V4L2 see the [FFMpeg docs](https://ffmpeg.org/ffmpeg-devices.html#video4linux2_002c-v4l2). I don’t know if this will work but you can give it a shot and instead of

> [@VideoCapture from camera with CAP\_PROP\_FORMAT -1 (raw) and DSHOW/FFMPEG/windows](https://forum.opencv.org/t/videocapture-from-camera-with-cap-prop-format-1-raw-and-dshow-ffmpeg-windows/7448/6):
>
> OPENCV\_FFMPEG\_CAPTURE\_OPTIONS=input\_format;dshow

you could try

> OPENCV\_FFMPEG\_CAPTURE\_OPTIONS=input\_format;v4l2

---

_[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)._
