Skip to content

could not jump to middle of MKV file and loop forever #302

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

Closed
tiantian1645 opened this issue Mar 20, 2020 · 0 comments
Closed

could not jump to middle of MKV file and loop forever #302

tiantian1645 opened this issue Mar 20, 2020 · 0 comments

Comments

@tiantian1645
Copy link

tiantian1645 commented Mar 20, 2020

Expected behaviour

Jump to middle of a mkv video

Actual behaviour

loop forever with hight cpu usage

Steps to reproduce

import cv2

vcap = cv2.VideoCapture(file_path)
video_length = int(vcap.get(cv2.CAP_PROP_FRAME_COUNT)) - 1
vcap.set(cv2.CAP_PROP_POS_FRAMES, video_length // 2)

Ubunru 18.04 x64

python 3.8.2

Name: opencv-contrib-python-headless
Version: 4.2.0.32
Summary: Wrapper package for OpenCV python bindings.
Home-page: https://github.com/skvark/opencv-python
Author: None
Author-email: None
License: MIT
Location: /usr/local/lib/python3.8/dist-packages
Requires: numpy
Required-by:

video magnet info hash d6a0fcd196a17341a60bb30e121bf1f18499b58d

@skvark skvark closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants