Skip to content

Commit

Permalink
fix mutability of a var and bump to 30
Browse files Browse the repository at this point in the history
  • Loading branch information
GBeauregard committed Jun 26, 2024
1 parent 6621bc0 commit ea0659d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
name = "pyffstream"
readme = "README.md"
license = {file = "LICENSE"}
version = "0.0.29"
version = "0.0.30"
authors = [{name = "Gregory Beauregard", email = "[email protected]"}]
dynamic = ["description"]
keywords = ["ffmpeg", "streaming", "srt", "rtmp"]
Expand Down
4 changes: 3 additions & 1 deletion src/pyffstream/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,9 @@ class StaticEncodeVars:
bound_h: str = "1080"
kf_target_sec: float = 5.0
clip_length: str | None = None
vencoder: VEncoder = Params.VIDEO_ENCODERS["libx264"]
vencoder: VEncoder = dataclasses.field(
default_factory=lambda: Params.VIDEO_ENCODERS["libx264"]
)
aencoder: str = "aac"
encode_preset: str | None = None
encode_tune: str | None = None
Expand Down

0 comments on commit ea0659d

Please sign in to comment.