Code Monkey home page Code Monkey logo

Comments (8)

Breakthrough avatar Breakthrough commented on June 11, 2024

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.

babyta avatar babyta commented on June 11, 2024

from pyscenedetect.

babyta avatar babyta commented on June 11, 2024

https://drive.google.com/file/d/1h5tztZkpV6ziJzgtVieJqcnhF4Bo82f_/view?usp=sharing
=================This is the url
image
=================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.

Breakthrough avatar Breakthrough commented on June 11, 2024

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.

babyta avatar babyta commented on June 11, 2024

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.

babyta avatar babyta commented on June 11, 2024

When I use pyav as backends, I get an error directly.

from pyscenedetect.

babyta avatar babyta commented on June 11, 2024

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.

Breakthrough avatar Breakthrough commented on June 11, 2024

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)

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.