Coder Social home page Coder Social logo

Comments (3)

Breakthrough avatar Breakthrough commented on August 22, 2024

Hi @chakree30584 it looks like the OpenCV FFMPEG module isn't loading the video file properly. There's two possibilities here, the first is a corrupted video file, the second is using an outdated version of OpenCV or FFMPEG.

Are you able to run PySceneDetect on other videos fine, or do you get the same output each time (with resolution/framerate returned as 0)? What version of OpenCV are you running on your system?

If you suspect the video is the problem, you can try putting it into an mkv container by running mkvmerge on it. If the video has no problems, try using a different version of OpenCV, and if possible, compile OpenCV manually from source, ensuring you have the latest version of ffmpeg.

from pyscenedetect.

chakree30584 avatar chakree30584 commented on August 22, 2024

OpenCV version from base repo is 2.4.5

i couldn't find a way to compile the newer OpenCV 3.1 on CentOS7.0, stuck in lots of dependency error
so I move to ubuntu 14.04.3 by following your guide in documentation
and it's working now with Python 2.7.6 and OpenCV 3.1

Thanks for your help

from pyscenedetect.

Breakthrough avatar Breakthrough commented on August 22, 2024

Glad you got it worked out @chakree30584. I didn't realize the repo version was so old...

Thanks for bringing this to my attention, I'll make sure this behaviour is detected in the future, and that PySceneDetect exits properly, displaying an error message and a notification to update the installed version of OpenCV.

from pyscenedetect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.