Comments (8)
I'm not sure this is enough information to go by, could you please provide:
Description:
Describe what the bug or issue is (e.g. crashes when setting X) and how it can be reproduced.
Command:
Place a full copy of the command line options you are using here, for example:
scenedetect -i some_video.mp4 -s some_video.stats.csv -o outdir detect-content --threshold 28 list-scenes save-images
Output:
Copy the output of running the application here. Where possible, generate a debug log by adding -v debug -l BUG_REPORT.txt
to the beginning of your command, and attach BUG_REPORT.txt
to your issue.
Environment:
The operating system and how you installed PySceneDetect may be relevant to the issue. Please run scenedetect version --all
and copy the output here, or provide other details on how PySceneDetect was installed.
Media/Files:
Attach or link to any files relevant to the issue, including videos (or YouTube links), scene files, stats files, and log output.
from pyscenedetect.
from pyscenedetect.
https://drive.google.com/file/d/1h5tztZkpV6ziJzgtVieJqcnhF4Bo82f_/view?usp=sharing
=================This is the url
=================This is a speed comparison. The URL input is very slow, but the same video is downloaded locally as input and the strips are split very quickly.
from scenedetect import open_video, SceneManager, split_video_ffmpeg
from scenedetect.detectors import ContentDetector
from scenedetect.video_splitter import split_video_ffmpeg
video_path = '1080pvdieo.mp4'
threshold=27.0
Open our video, create a scene manager, and add a detector.
video = open_video(video_path)
scene_manager = SceneManager()
scene_manager.add_detector(
ContentDetector(threshold=threshold))
scene_manager.detect_scenes(video, show_progress=True)
scene_list = scene_manager.get_scene_list()
================= this is code
from pyscenedetect.
URL input is handled by OpenCV if you don't change anything, have you tried using a different backend? https://www.scenedetect.com/docs/0.6.2/api/backends.html
from pyscenedetect.
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\test.py", line 9, in
video = open_video(video_path, backend='pyav')
File "D:\ProgramData\miniconda3\envs\py39pt1121\lib\site-packages\scenedetect_init_.py", line 143, in open_video
return backend_type(path, framerate, **kwargs)
File "D:\ProgramData\miniconda3\envs\py39pt1121\lib\site-packages\scenedetect\backends\pyav.py", line 107, in init
self._io = open(path_or_io, 'rb')
OSError: [Errno 22] Invalid argument
from pyscenedetect.
When I use pyav as backends, I get an error directly.
from pyscenedetect.
cv2.VideoCapture When reading a URL, if the video resolution corresponding to the URL is very high and the data rate is very high, it will be very slow.
from pyscenedetect.
Thank you for following up on this, I appreciate it. If you suspect this is due to OpenCV and isn't just an issue with using ffmpeg
(or which ever backend OpenCV itself is using to process the stream), you might want to reach out in their repo.
Best regards!
from pyscenedetect.
Related Issues (20)
- Cannot find reference 'open_video' in 'scenedetect.py' on Windows 10 HOT 1
- Incorrect FrameTimecode conversion to string HOT 1
- webm files don't work correctly HOT 4
- `list-scenes` option `-q`/`--quiet` does not suppress all output HOT 3
- Output File Name Change HOT 2
- Extraction half of frames HOT 5
- split_video_ffmpeg error HOT 1
- split_video_ffmpeg lib function update HOT 1
- Update issue creation templates to use new forms feature
- Fix Github license detection
- How run it with asyncio and fastapi
- The performance of detecting shot changes is poor HOT 5
- Change `list-scenes` defaults: don't output file, skip cuts
- [Bug] memory leak HOT 9
- Ignore time intervals HOT 5
- Remove this issue please
- How to detect entire scenes and not only shot changes? HOT 1
- Add StreamJoiner to concatenate multiple videos
- Inconsistent error handling when start time exceeds video length
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.