# File exists but VideoCapture fails to open

**URL:** <https://forum.opencv.org/t/file-exists-but-videocapture-fails-to-open/9659>\
**Category:** Uncategorized\
**Tags:** videoio\
**Created:** [July 28, 2022, 12:37am UTC](https://forum.opencv.org/t/file-exists-but-videocapture-fails-to-open/9659 "2022-07-28T00:37:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddharth\_Das](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/siddharth_das/32/4147_2.png) [@Siddharth\_Das](https://forum.opencv.org/u/Siddharth_Das)\
**Post date:** [July 28, 2022, 12:37am UTC](https://forum.opencv.org/t/file-exists-but-videocapture-fails-to-open/9659/1 "2022-07-28T00:37:38Z")

</div>

I am getting the same error. file exists? True  
OpenCV: Couldn’t read video stream from file “output.mp4”  
Error opening the video file

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [July 28, 2022, 8:32am UTC](https://forum.opencv.org/t/file-exists-but-videocapture-fails-to-open/9659/2 "2022-07-28T08:32:22Z")

</div>

`print(cv.getBuildInformation())`

and post the output please. the Video I/O section is most important.

what’s the result of `vid.isOpened()`?

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 1, 2024, 10:11am UTC](https://forum.opencv.org/t/file-exists-but-videocapture-fails-to-open/9659/3 "2024-06-01T10:11:00Z")

</div>

Split this topic on June 1, 2024, 10:11am UTC

2 posts were split to a new topic: [File exists but VideoCapture fails to open, isOpened() returns False](https://forum.opencv.org/t/file-exists-but-videocapture-fails-to-open-isopened-returns-false/17817)
