Skip to content

Wire CLI encode to ConversionHandler / EncodeForgeCore - #15

Merged
cursor[bot] merged 1 commit into
0.5.0from
cursor/cli-encode-wire-bc41
Nov 22, 2026
Merged

cursor[bot] merged 1 commit into
0.5.0from
cursor/cli-encode-wire-bc41

Conversation

@SirStig

@SirStig SirStig commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

Implements P4-A / EF-18: replace the CLI encode stub (SystemExit(2)) with a real path through EncodeForgeCore.convert_file → ConversionHandler.

  • Maps --codec / --crf / --preset / --use-nvenc|--use-qsv|--use-amf / --format / --overwrite into ConversionSettings
  • Software encode by default (HW flags are opt-in)
  • --dry-run sets ConversionSettings.dry_run; handler returns planned output/encoder without running FFmpeg
  • Folder inputs, recursive scan, -o file or directory, confirmation unless -y / dry-run
  • Unit tests (tests/test_cli_encode.py) + integration dry-run + one-file encode
  • Docs: README / CLAUDE / CHANGELOG

Test plan

  • pytest tests/test_cli_encode.py
  • pytest tests/integration/test_cli_encode_integration.py (local FFmpeg)
  • CI marker suite: pytest -m "not integration and not requires_network and not requires_ffmpeg"
Open in Web Open in Cursor 

@cursor
cursor Bot force-pushed the cursor/cli-encode-wire-bc41 branch 3 times, most recently from 4848d48 to a5a74a7 Compare November 22, 2026 19:43
Replace the encode stub (exit 2) with a real command that maps codec/CRF/
preset/HW flags into ConversionSettings and calls convert_file. Honour
ConversionSettings.dry_run after the FFmpeg command is built. Add unit and
integration coverage; update README/CLAUDE/CHANGELOG.

Co-authored-by: Joshua Kac <joshua@ironcoffee.com>
@cursor
cursor Bot force-pushed the cursor/cli-encode-wire-bc41 branch from a5a74a7 to 13fd40d Compare November 22, 2026 19:44
@cursor
cursor Bot merged commit 1bddec6 into 0.5.0 Nov 22, 2026
16 checks passed
@cursor
cursor Bot deleted the cursor/cli-encode-wire-bc41 branch November 22, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants