Coder Social home page Coder Social logo

Comments (4)

gpp8p avatar gpp8p commented on August 22, 2024

I am also getting this error:

gpp8p@woozel:/media/gpp8p/ExtraDrive1/scene/PySceneDetect-0.4$ scenedetect -i testvideo.mp4 -d content -t 30 -o output_scene.mkv
[PySceneDetect] Detecting scenes (content mode)...
[PySceneDetect] FATAL ERROR - could not open video testvideo.mp4.
Traceback (most recent call last):
File "/usr/local/bin/scenedetect", line 11, in
load_entry_point('PySceneDetect==0.3.6', 'console_scripts', 'scenedetect')()
File "build/bdist.linux-x86_64/egg/scenedetect/init.py", line 302, in main
ValueError: need more than 2 values to unpack

from pyscenedetect.

xufuou avatar xufuou commented on August 22, 2024

I didn't tried to replicate the error but according the setup.py pyscenedetect is should be only compatible with python versions below 3.3. Although is listed with higher versions.

from pyscenedetect.

Breakthrough avatar Breakthrough commented on August 22, 2024

Hello all;

The real issue here is the video is not able to be opened by the OpenCV library:

[PySceneDetect] Detecting scenes (content mode)...
[PySceneDetect] FATAL ERROR - could not open video /dev/input.mp4.

All information after this is generated due to the above error, and can be safely ignored. Double-check that you've installed the Python OpenCV libraries correctly, and failing that, try building and installing from source (thus ensuring all dependencies are compiled).

Note that although this issue has the same cause as #16 (see the issue for some workarounds). It will not be marked as a duplicate, however, as better error handling by PySceneDetect will be implemented in these cases, thus generating more useful (or, rather, less useless) text upon error. I will leave this issue open until it has been fixed, and am open to any comments regarding what user feedback should be given in this case.

from pyscenedetect.

Breakthrough avatar Breakthrough commented on August 22, 2024

Hello all;

This should be fixed in the latest release of v0.5-beta, which has significantly improved error reporting facilities and support for Python 3.6+. Please upgrade to the beta whenever you can, and the release of v0.5 is scheduled to be later this month. If you notice any issues with the new version, please feel free to bring them to my attention.

Lastly, thank you for your submission/report, and for helping to make PySceneDetect even better - I really appreciate it! 👍

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.