Description:
When I use a 'for' loop to cut a sequence of videos, the memory raise all the time.
Command:
for video_path in video_lists:
video = open_video(video_path)
scene_manager = SceneManager()
scene_manager.add_detector(ContentDetector(threshold=27))
scene_manager.detect_scenes(video, show_progress=False)
Description: When I use a 'for' loop to cut a sequence of videos, the memory raise all the time.
Command:
for video_path in video_lists: video = open_video(video_path) scene_manager = SceneManager() scene_manager.add_detector(ContentDetector(threshold=27)) scene_manager.detect_scenes(video, show_progress=False)
Output:
Environment:
boto3 | 1.34.31 | 1.29.1 -- | -- | -- botocore | 1.34.31 | 1.32.1 bzip2 | 1.0.8 | 1.0.8 ca-certificates | 2023.12.12 | 2023.12.12 click | 8.1.7 | 8.1.7 jmespath | 1.0.1 | 1.0.1 libffi | 3.4.4 | 3.4.4 ncurses | 6.4 | 6.4 numpy | 1.26.3 | 1.26.3 objgraph | 3.6.0 | opencv-python | 4.9.0.80 | openssl | 3.0.12 | 3.0.12 pip | 23.3.1 | 23.3.1 platformdirs | 4.1.0 | 3.10.0 python | 3.10.13 | 3.12.1 python-dateutil | 2.8.2 | 2.8.2 readline | 8.2 | 8.2 s3transfer | 0.10.0 | 0.7.0 scenedetect | 0.6.2 | setuptools | 68.2.2 | 68.2.2 six | 1.16.0 | 1.16.0 sqlite | 3.41.2 | 3.41.2 tk | 8.6.12 | 8.6.12 tqdm | 4.66.1 | 4.65.0 tzdata | 2023d | 2023d urllib3 | 2.0.7 | 2.1.0 wheel | 0.41.2 | 0.41.2 xz | 5.4.5 | 5.4.5 zlib | 1.2.13 | 1.2.13