Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a workaround rather than a solution, but it does help: install scikit-video (for example with pip install scikit-video) and either avconv or ffmpeg, then use skvideo.io.VideoCapture in place of cv2.VideoCapture. #10488

Closed
aruna09 opened this issue Jan 7, 2019 · 2 comments

Comments

@aruna09
Copy link

aruna09 commented Jan 7, 2019

This is a workaround rather than a solution, but it does help: install scikit-video (for example with pip install scikit-video) and either avconv or ffmpeg, then use skvideo.io.VideoCapture in place of cv2.VideoCapture.

import sys
import skvideo.io
cap = skvideo.io.VideoCapture(sys.argv[1])
ret, frame = cap.read()

API is a drop-in replacement.

Originally posted by @aizvorski in #121 (comment)

@aruna09
Copy link
Author

aruna09 commented Jan 7, 2019

I am facing the same error, however that is due to the cv2.namedWindow() and cv2.destroyWindow() command. I tried the above and also tried to look through the documentation of scikit-vedio( http://www.scikit-video.org/stable/examples.html ) for a replacement of the namedWindow command, however I couldn't find anything that would turn out to be useful. Any suggestions on this one?

@csoja
Copy link
Contributor

csoja commented Jan 24, 2019

This is the wrong forum/audience for your question. I'd recommend opening an issue here: https://github.com/scikit-video/scikit-video/issues/new

@csoja csoja closed this as completed Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants