Skip to content

Commit b2dda48

Browse files
committed
Time to use newer PyAV
1 parent 210beea commit b2dda48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
]
3535
requires-python = ">= 3.10"
3636
dependencies = [
37-
"av<14",
37+
"av",
3838
"glfw",
3939
"lark",
4040
"loguru",

src/flitter/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def write_video_frame(self, frame, timestamp, codec='h264', pixfmt='yuv420p', fp
428428
options.setdefault('alpha_quality', '1')
429429
self._path.parent.mkdir(parents=True, exist_ok=True)
430430
container = av.open(str(self._path), mode='w')
431-
stream = container.add_stream(av_codec, rate=fps, options=options)
431+
stream = container.add_stream(codec, rate=fps, options=options)
432432
except Exception as exc:
433433
logger.opt(exception=exc).error("Unable to open video output: {}", self._path)
434434
self._cache[key] = False, None, timestamp

0 commit comments

Comments
 (0)