diff --git a/unshackle/core/tracks/video.py b/unshackle/core/tracks/video.py index db9d17e1..a3804a41 100644 --- a/unshackle/core/tracks/video.py +++ b/unshackle/core/tracks/video.py @@ -543,6 +543,11 @@ class Video(Track): e.returncode, duration_ms=round((time.monotonic() - cc_start) * 1000, 1), ) + if e.returncode < 0: + logging.getLogger("Video").warning( + f"ccextractor crashed (signal {-e.returncode}) on {self.path.name}; skipping CC extraction" + ) + return out_path.exists() if e.returncode != 10: # 10 = No captions found raise return out_path.exists()