Replies: 8 comments 1 reply
-
I did a quick test, and you can use the MoviePy backend to do this, as it uses the ffmpeg executable on your system for this purpose. Right now it will print some warnings about being unable to determine aspect ratio, but these can be ignored for most purposes. This requires you to have MoviePy installed on your system as well as the latest version of PySceneDetect. This option isn't documented right now since it's under development, but you can try it out as follows with the latest version of PySceneDetect:
Note this isn't included in Windows builds yet, so you'll need to install PySceneDetect from |
Beta Was this translation helpful? Give feedback.
-
Thanks for the information! I did a quick test as well, and got it running. I got a couple of other errors but at least it's scanning right now. In fact that first line is the same error I got when trying to use the API with Avisynth script as video source.
|
Beta Was this translation helpful? Give feedback.
-
Pixel aspect ratio is queried using OpenCV when the video loads since MoviePy doesn't support it yet, so the same messages will show up currently. In the next release I'll make it so this is only done when required (for Thanks for the report! |
Beta Was this translation helpful? Give feedback.
-
One more question regarding the detection: does detect-adaptive do a 2-pass process internally or is it supposed to scan the source twice? I tried it shortly and it (visibly) ran one pass and then printed out the scene change list. This test source I'm using has some luma flicker between frames and triggers false detections easily so I thought the adaptive method might be a best general option to use. |
Beta Was this translation helpful? Give feedback.
-
I guess that the automatic calculation of kernel-size is also not working, seems to be None in the debug output. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I possibly found a bug while testing my script.
It might also be better to use 0 as the first frame since that is probably the most common way. |
Beta Was this translation helpful? Give feedback.
-
@Breakthrough +1 for AVS+ support Case scenario: a video has to be ivtced or decimated to be at the correct frame rate, giving us a proper scene detection. Or it can be level adjusted to add sensitivity to special colors or luma levels. Big plus: you can offload video decoding to gpu thru avs script. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use an Avisynth script for input? FFmpeg can decode them, but I'm not sure if raw data can be input directly for analysis or if the module always expects an actual video clip. I'd like to use PySceneDetect for replacing scene change detection by ffmpeg, which is quite flaky it seems.
Beta Was this translation helpful? Give feedback.
All reactions