vidfix 0.4.2__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vidfix-0.4.3/.github/dependabot.yml +30 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/CHANGELOG.md +19 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/PKG-INFO +2 -2
- {vidfix-0.4.2 → vidfix-0.4.3}/README.md +1 -1
- {vidfix-0.4.2 → vidfix-0.4.3}/pyproject.toml +1 -1
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/__init__.py +1 -1
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/caption.py +4 -1
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_caption.py +3 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_integration.py +1 -1
- vidfix-0.4.3/uv.lock +1253 -0
- vidfix-0.4.2/.github/dependabot.yml +0 -10
- vidfix-0.4.2/uv.lock +0 -892
- {vidfix-0.4.2 → vidfix-0.4.3}/.github/workflows/ci.yml +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/.github/workflows/publish.yml +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/.gitignore +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/.python-version +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/LICENSE +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/__main__.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/cli.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/__init__.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/attach.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/capabilities.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/convert.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/duration.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/ffmpeg.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/formats.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/generate.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/matrix.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/presets.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/probe.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/core/verify.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/data/presets.yaml +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/exceptions.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/interactive.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/src/vidfix/py.typed +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/e2e/test_cli_journey.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/smoke/test_cli_boots.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_attach.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_capabilities.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_cli.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_convert.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_duration.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_ffmpeg.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_formats.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_generate.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_guards.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_interactive.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_matrix.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_presets.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_probe.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_public_api.py +0 -0
- {vidfix-0.4.2 → vidfix-0.4.3}/tests/test_verify.py +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Keep dependencies current without anyone having to remember to check.
|
|
2
|
+
# Security updates arrive as their own PRs the moment an advisory lands;
|
|
3
|
+
# the weekly schedule below is for ordinary version drift.
|
|
4
|
+
version: 2
|
|
5
|
+
updates:
|
|
6
|
+
- package-ecosystem: "uv"
|
|
7
|
+
directory: "/"
|
|
8
|
+
schedule:
|
|
9
|
+
interval: "weekly"
|
|
10
|
+
day: "monday"
|
|
11
|
+
open-pull-requests-limit: 5
|
|
12
|
+
groups:
|
|
13
|
+
# One PR for the dev toolchain: these never affect what users install.
|
|
14
|
+
dev-tooling:
|
|
15
|
+
patterns: ["pytest*", "ruff", "mypy", "types-*", "coverage"]
|
|
16
|
+
update-types: ["minor", "patch"]
|
|
17
|
+
# Runtime patches together; a minor or major gets its own PR, because
|
|
18
|
+
# imageio-ffmpeg ships the FFmpeg binary and a bump can change which
|
|
19
|
+
# filters and codecs are available.
|
|
20
|
+
runtime-patches:
|
|
21
|
+
patterns: ["*"]
|
|
22
|
+
exclude-patterns: ["pytest*", "ruff", "mypy", "types-*", "coverage"]
|
|
23
|
+
update-types: ["patch"]
|
|
24
|
+
|
|
25
|
+
- package-ecosystem: "github-actions"
|
|
26
|
+
directory: "/"
|
|
27
|
+
schedule:
|
|
28
|
+
interval: "weekly"
|
|
29
|
+
day: "monday"
|
|
30
|
+
open-pull-requests-limit: 3
|
|
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.3] - 2026-11-30
|
|
9
|
+
|
|
10
|
+
### What's new
|
|
11
|
+
|
|
12
|
+
- **Safer captions: a `%` or `{` in your text stays your text.** Captions
|
|
13
|
+
reading `50% off` or `{draft}` now burn in exactly as typed (the text is no
|
|
14
|
+
longer read as a drawtext expression).
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Captions containing `%` failed outright on the newest bundled FFmpeg
|
|
19
|
+
("Stray %"), so `vidfix caption`, `convert --text` and `generate --text`
|
|
20
|
+
wrote nothing for that text.
|
|
21
|
+
|
|
22
|
+
### Internal
|
|
23
|
+
|
|
24
|
+
- Every dependency moved to its current release (pydantic, typer, ruff, mypy,
|
|
25
|
+
pytest, imageio-ffmpeg and the rest).
|
|
26
|
+
|
|
8
27
|
## [0.4.2] - 2026-10-31
|
|
9
28
|
|
|
10
29
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vidfix
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: CLI toolkit to convert, generate, and verify videos and images to exact specs (fps, duration, resolution, format) — test fixtures, CI checks, and everyday conversions.
|
|
5
5
|
Project-URL: Homepage, https://github.com/gouravrana7/vidfix
|
|
6
6
|
Project-URL: Issues, https://github.com/gouravrana7/vidfix/issues
|
|
@@ -131,7 +131,7 @@ Same features, one import, the same spec forms as the command line:
|
|
|
131
131
|
from vidfix import convert, generate, verify, probe
|
|
132
132
|
|
|
133
133
|
generate("fixture.mp4", fps="59.94", duration="30s", res="720p")
|
|
134
|
-
info = probe("fixture.mp4")
|
|
134
|
+
info = probe("fixture.mp4") # MediaInfo (pydantic)
|
|
135
135
|
result = verify("fixture.mp4", duration=30.0)
|
|
136
136
|
assert result.passed
|
|
137
137
|
```
|
|
@@ -98,7 +98,7 @@ Same features, one import, the same spec forms as the command line:
|
|
|
98
98
|
from vidfix import convert, generate, verify, probe
|
|
99
99
|
|
|
100
100
|
generate("fixture.mp4", fps="59.94", duration="30s", res="720p")
|
|
101
|
-
info = probe("fixture.mp4")
|
|
101
|
+
info = probe("fixture.mp4") # MediaInfo (pydantic)
|
|
102
102
|
result = verify("fixture.mp4", duration=30.0)
|
|
103
103
|
assert result.passed
|
|
104
104
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "vidfix"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.3"
|
|
4
4
|
description = "CLI toolkit to convert, generate, and verify videos and images to exact specs (fps, duration, resolution, format) — test fixtures, CI checks, and everyday conversions."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { text = "MIT" }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"""Burn text captions into videos (existing files or freshly generated ones).
|
|
2
2
|
|
|
3
3
|
Caption text goes through drawtext's ``textfile=`` option — writing the text to
|
|
4
|
-
a temp file sidesteps every filter-graph escaping rule for user content
|
|
4
|
+
a temp file sidesteps every filter-graph escaping rule for user content — and
|
|
5
|
+
``expansion=none``, so a stray ``%`` or ``{`` in the text stays literal instead
|
|
6
|
+
of being read as a drawtext expression.
|
|
5
7
|
"""
|
|
6
8
|
|
|
7
9
|
from __future__ import annotations
|
|
@@ -87,6 +89,7 @@ def caption_filter(
|
|
|
87
89
|
if font:
|
|
88
90
|
parts.append(f"fontfile='{escape_filter_path(font)}'")
|
|
89
91
|
parts += [
|
|
92
|
+
"expansion=none",
|
|
90
93
|
f"fontsize={size}",
|
|
91
94
|
f"fontcolor={color}",
|
|
92
95
|
"box=1",
|
|
@@ -19,6 +19,9 @@ class TestCaptionFilter:
|
|
|
19
19
|
assert "y=h-text_h-h/20" in f
|
|
20
20
|
assert "enable=" not in f
|
|
21
21
|
|
|
22
|
+
def test_text_expansion_is_off(self) -> None:
|
|
23
|
+
assert "expansion=none" in caption_filter("/tmp/c.txt")
|
|
24
|
+
|
|
22
25
|
@pytest.mark.parametrize(
|
|
23
26
|
("position", "fragment"),
|
|
24
27
|
[
|
|
@@ -113,7 +113,7 @@ class TestCaption:
|
|
|
113
113
|
if not drawtext_available():
|
|
114
114
|
pytest.skip("no drawtext-capable FFmpeg on this machine")
|
|
115
115
|
out = tmp_path / "cap.mp4"
|
|
116
|
-
caption(tiny_clip, out, "hello: it's 100% 'fine'", start=0.2, end=0.8)
|
|
116
|
+
caption(tiny_clip, out, "hello: it's 100% 'fine' %{pts}", start=0.2, end=0.8)
|
|
117
117
|
info = probe(out)
|
|
118
118
|
assert (info.width, info.height) == (160, 120)
|
|
119
119
|
assert info.duration == pytest.approx(1.0, abs=0.1)
|