Skip to content

feat(media-merge): add optional official audio video merger - #5

Merged
agalwood merged 2 commits into
mainfrom
feat/media_merge_20261003
Oct 3, 2026
Merged

agalwood merged 2 commits into
mainfrom
feat/media_merge_20261003

Conversation

@agalwood

@agalwood agalwood commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Add motrix.media-merge as an optional official plugin for manually combining separate video and audio files into MP4 or MKV. The plugin probes track types, swaps unambiguously reversed inputs, and copies tracks without re-encoding through the host's FFmpeg capability.

This repository owns the source and signed release pipeline. The plugin is installed separately and must remain outside Motrix's default scripts/builtins.lock.json.

Changes

  • Move the prototype command into the shared plugin workspace under the official ID, with English/Chinese metadata and usage guides.
  • Use the existing command contract, build configuration, manifest validation, deterministic packer, and signing workflow. Request only ffmpeg, with no network permissions or download lifecycle hooks.
  • Update repository and release documentation to distinguish official maintenance from default bundling.
  • Document the required host security boundary: absolute canonical paths, standalone media only, and host-authorized manual command invocation. Cross-plugin/generic execution is rejected by the companion host PR; playlist-relative references never inherit file authorization.
  • Verify asynchronous operation completion/failure, reversed inputs, dual-track files, MKV output, invalid selections, and deterministic packaging. Check current artifact versions even when older local packages remain.

Dependencies and release order

Requires agalwood/Motrix#2308. The manifest initially targets >=2.0.0-beta.47 <3.0.0; confirm that the actual minimum released host includes that PR before creating the plugin release tag.

After the protected signing workflow publishes motrix.media-merge@0.1.0, regenerate the registry package from the verified release. The registry and website listing are prepared without a fabricated package URL or signature; they will advertise availability once the signed package is registered.

Validation

  • pnpm install --offline --frozen-lockfile
  • pnpm lint
  • pnpm -r build
  • pnpm -r typecheck
  • pnpm test — 70 tests passed, including archive validation and deterministic rebuild.
  • Local unsigned .moext: 2,155 bytes, SHA-256 a92407c70c61d758f078e9b2badea32fbd3faf4f890ffb5890c258abcef3f452.

@agalwood
agalwood merged commit 3936c4a into main Oct 3, 2026
1 check passed
@agalwood
agalwood deleted the feat/media_merge_20261003 branch October 3, 2026 16:23
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.

1 participant