-
Notifications
You must be signed in to change notification settings - Fork 474
Closed
Description
I may be doing this wrong, but when I add "detect-threshold" to the command line, I get the following error:
Traceback (most recent call last):
File "/usr/local/bin/scenedetect", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/scenedetect/__main__.py", line 58, in main
cli.main(obj=cli_ctx) # Parse CLI arguments with registered callbacks.
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 727, in main
ctx.exit()
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 351, in __exit__
self.close()
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 440, in close
cb()
File "/usr/local/lib/python3.6/site-packages/scenedetect/cli/context.py", line 342, in process_input
show_progress=not self.quiet_mode)
File "/usr/local/lib/python3.6/site-packages/scenedetect/scene_manager.py", line 469, in detect_scenes
self._process_frame(self._num_frames + start_frame, frame_im)
File "/usr/local/lib/python3.6/site-packages/scenedetect/scene_manager.py", line 366, in _process_frame
self._add_cuts(detector.process_frame(frame_num, frame_im))
File "/usr/local/lib/python3.6/site-packages/scenedetect/detectors/threshold_detector.py", line 177, in process_frame
frame_avg = compute_frame_average(frame_img)
File "/usr/local/lib/python3.6/site-packages/scenedetect/detectors/threshold_detector.py", line 54, in compute_frame_average
frame.shape[0] * frame.shape[1] * frame.shape[2])
AttributeError: 'NoneType' object has no attribute 'shape'
Command line:
scenedetect --input D-2019-2.mp4 --output D-2019-2 --stats D-stats.csv detect-content list-scenes save-images detect-threshold
Computing Environment:
- OS: macOS 10.13.6
- Python Version: 3.6.5
- OpenCV Version: 4.1.1
Additional
I tried following the instructions here:
But it seems like something is missing. How do I determine "an optimal value"? I.e., which file should I be looking at for this, and what am I supposed to look for in that file?
Reactions are currently unavailable