Ask Your Question
2

VideoCapture problem - Inappropriate ioctl for device

asked Aug 5 '16

thxmxx gravatar image

I'm trying to open a video

VideoCapture video_source; 
video_source = VideoCapture(); 
video_source.open("/home/thom/Downloads/output.mp4");

and I'm getting this message:

Unable to stop the stream: Inappropriate ioctl for device Could not open the stream file.

Any clue?

Preview: (hide)

Comments

I am having a similar problem after installing on CentOS. cmake/installation completes without any errors.

import cv2 cv2.VideoCapture('path/to/video')

Unable to stop the stream: Inappropriate ioctl for device

danMorozoff gravatar imagedanMorozoff (Jan 14 '17)edit

same problem here anyone give us a hint?My system is CentOS 6 GCC 4.8.2 OPENCV 3.2

open_ranger gravatar imageopen_ranger (Feb 10 '17)edit

Same here. Debian 7 and contrib_modules installed.

Argos gravatar imageArgos (Mar 29 '17)edit

Same for me. Centos7 OpenCV 3.2...

sylweb gravatar imagesylweb (Apr 13 '17)edit

Having same problem. Can anyone help? OpenCV 3.2, Ubuntu 17.04

Aritra gravatar imageAritra (Oct 3 '17)edit

2 answers

Sort by » oldest newest most voted
0

answered Apr 13 '17

sylweb gravatar image

Maybe this might not be the best answer but it worked for me for OpenCV 3.1 instead of 3.2

Preview: (hide)

Comments

1

how to solve this issue :Unable to stop the stream: Inappropriate ioctl for device

aditya2695 gravatar imageaditya2695 (May 24 '17)edit
0

answered May 9 '18

Mary-Ann gravatar image

Take a look at this thread: https://github.com/opencv/opencv/issu... , it solved the problem my similar me. Basically you only need to rebuild OpenCV with FFMPEG and it should work.

Preview: (hide)

Question Tools

2 followers

Stats

Asked: Aug 5 '16

Seen: 15,466 times

Last updated: May 09 '18