Comments (3)
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.
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.
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)
- Use csv as input for scene splitting HOT 1
- No output to list-scenes HOT 3
- horizontal wipe cuts
- ffmpeg segment_times options HOT 4
- QP file output HOT 6
- Can't get save_images to work HOT 1
- 'Error splitting video (ffmpeg returned 1) ' occurs while using 'split_video_ffmpeg' HOT 11
- Define minimum and maximum number of splits in split-video HOT 1
- Extend image_name_template to allow timestamp HOT 1
- Add Project Gallery to Website
- CITATION.cff file for citing repository HOT 1
- Return SyntaxWarning errors HOT 2
- Remove downscaling for perceptual hash
- Support histograms/hashes with AdaptiveDetector
- Group similar scenes together HOT 3
- The speed at which different backends run. HOT 2
- Two-Phase Command Architecture
- `min_scene_len` parameter isn't respected with AdaptiveDetector HOT 5
- Find start and end of black frame sequences HOT 1
- Get the progress in real time for scene_manager.detect_scenes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscenedetect.