Skip to content

Commit

Permalink
[release] Release v0.6.5.1 to fix #466
Browse files Browse the repository at this point in the history
PyPI only release, no changes to Windows builds.
  • Loading branch information
Breakthrough committed Dec 17, 2024
1 parent fbffe4c commit 608c335
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#
# PySceneDetect Requirements
#
# TODO(#466): Make av work with av >= 14.
av >=9.2, <14.0
av>=9.2
click>=8.0
numpy
opencv-python
Expand Down
3 changes: 1 addition & 2 deletions requirements_headless.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#
# PySceneDetect Requirements for Headless Machines
#
# TODO(#466): Make av work with av >= 14.
av >=9.2, <14.0
av>=9.2
click>=8.0
numpy
opencv-python-headless
Expand Down
16 changes: 7 additions & 9 deletions scenedetect/backends/pyav.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@

logger = getLogger("pyscenedetect")

VALID_THREAD_MODES = [
av.codec.context.ThreadType.NONE,
av.codec.context.ThreadType.SLICE,
av.codec.context.ThreadType.FRAME,
av.codec.context.ThreadType.AUTO,
]
VALID_THREAD_MODES = ["NONE", "SLICE", "FRAME", "AUTO"]


class VideoStreamAv(VideoStream):
Expand Down Expand Up @@ -88,9 +83,12 @@ def __init__(
self._reopened = True

if threading_mode:
threading_mode = threading_mode.upper()
if threading_mode not in VALID_THREAD_MODES:
raise ValueError("Invalid threading mode! Must be one of: %s" % VALID_THREAD_MODES)
try:
threading_mode = av.codec.context.ThreadType[threading_mode.upper()]
except KeyError as _:
raise ValueError(
"Invalid threading mode! Must be one of: %s" % VALID_THREAD_MODES
) from None

if not suppress_output:
logger.debug("Restoring default ffmpeg log callbacks.")
Expand Down
4 changes: 4 additions & 0 deletions website/pages/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ This release brings crop support, performance improvements to save-images, lots
- OpenCV 4.10.0.82 -> 4.10.0.84
- Ffmpeg 6.0 -> 7.1

#### Python Distribution Changes

* *v0.6.5.1* - Fix compatibility issues with PyAV 14+ [#466](https://github.com/Breakthrough/PySceneDetect/issues/466)


### 0.6.4 (June 10, 2024)

Expand Down

0 comments on commit 608c335

Please sign in to comment.