Skip to content

Commit c466d1a

Browse files
Merge pull request #107 from cbusillo/fix-bakeoff-auto-boost-metric-support
Fix auto-boost bakeoff metric support
2 parents 9e260a5 + d5d4687 commit c466d1a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

mediaforce/encoding/bakeoff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _engine_candidate(
245245
category="scene-aware-candidate",
246246
maturity="research-candidate",
247247
required_tools=("Auto-Boost-Essential script", "SVT-AV1-Essential or compatible SVT-AV1"),
248-
metric_support=("script-defined"),
248+
metric_support=("script-defined",),
249249
command=tuple(command),
250250
command_status="research-template-needs-script-validation",
251251
sources=("https://github.com/nekotrix/auto-boost-algorithm/tree/main/Auto-Boost-Essential",),

tests/test_bakeoff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def test_build_bakeoff_plan_uses_size_first_defaults_and_candidates(self) -> Non
7777
self.assertIn("ssimulacra2", av1an["command"])
7878
self.assertEqual(av1an["command_status"], "template-needs-host-validation")
7979
self.assertIn("https://rust-av.github.io/Av1an/Features/TargetQuality", av1an["sources"])
80+
auto_boost = item["engines"][3]
81+
self.assertEqual(auto_boost["metric_support"], ["script-defined"])
8082

8183
def test_build_bakeoff_plan_can_limit_engines(self) -> None:
8284
config = load_config(Path("config/defaults.toml"))

0 commit comments

Comments
 (0)