Community plugin

averyjohnkucan-arch / dsh-media-tools

Portable audio and native temporal video tools, Cordis plugins, agent skills, CLI and MCP server

  • JavaScript
  • MIT
  • 0 stars
  • Nov 20, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-media-tools is a DSH plugin published from the averyjohnkucan-arch/dsh-media-tools repository.

  • Listing statusManifest verified
  • Manifest checkedNov 22, 2026
  • Packagedsh-media-tools
  • Package version0.2.7
  • DSH engine>=0.2.2-rc.1 <0.3.0-0
  • Source commitb662ab3
  • Repository createdOct 20, 2026

Capabilities and topics

agent-skillsaudio-analysismcp-servervideo-analysis
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

dsh-media-tools

Two independent DSH/Cordis plugins, agent skills, a CLI and a stdio MCP server, with included on-demand Omni listening and native temporal video backends. The old Local AI v2 application does not need to run.

PluginSelectable tools
Audioanalyze_audio, edit_audio, convert_audio, transcribe_audio, listen_audio
Videoprobe_video, convert_video, analyze_video

Audio analysis returns inline waveform/FFT/spectrogram and waterfall plots, measured digital levels, and numerical spectrum data. Editing creates a new WAV. Conversion supports audio extraction plus WAV/FLAC/MP3/M4A/OGG and MP4/WebM/GIF. CPU Whisper supplies timestamped speech. Omni supplies fallible sound descriptions. Native video preserves temporal frames, aligned audio and engine evidence.

Find existing media models

Open Settings → Media Tools, choose the parent folder containing your model assets and select Scan folder and subfolders. Review and save detected Whisper and Qwen3 Omni selections. The runtime panel shows which processing features are available. For native temporal video or Omni inference, also provision the standalone backend in the backend guide.

Install in DSH

In Plugins → Add plugin, paste https://github.com/averyjohnkucan-arch/dsh-media-tools. Verified with DeepSeek Harness 0.2.2-rc.4 and Node.js 24.9 or newer. If DSH asks for build approval, allow ffmpeg-static and the @ffprobe-installer package for your platform, then continue in the same dialog. The FFmpeg download can take a minute.

The bundle adds separate Media Audio and Media Video components. Set up the Python and model backends below for tools that require them.

Standalone runtime and skill setup

git clone https://github.com/averyjohnkucan-arch/dsh-media-tools.git
cd dsh-media-tools
npm ci
node src/install.mjs --setup-python \
  --include-backends --local-ai '/path/to/Local AI version 2'

This installs both skills into ~/.agents/skills, copies the runtime into a versioned directory under ~/.local/share/dsh-media-tools, and configures ~/.config/dsh-media/config.json. It uses V2 once as an import source, copies native executables into its own cache, and reuses the model store. The old V2 application and inference companion can stay stopped. On Linux, an available standalone Python distribution is also imported into package-owned storage when no --python is specified. Moving the plugin checkout does not break the installed skills.

FFmpeg and FFprobe binaries install automatically through pinned npm dependencies. Python 3.12 with venv/pip and an NVIDIA driver are host prerequisites. Setup installs the CUDA user-space runtime libraries. The native executable bundle currently targets Linux x64/CUDA 13; Windows/macOS GPU execution is not qualified. CPU tools use the platform FFmpeg dependencies where available.

For a fresh machine with separately selected models, replace --local-ai with --backend-config /path/to/backend-models.json. Setup downloads and SHA256-verifies this repo's versioned native runtime asset. Model weights are large and remain separate: Omni plus its projector is about 21 GB; native video may need considerably more. See standalone backend setup.

For CPU tools only, omit --include-backends and --local-ai; configure --whisper-model /path/to/faster-whisper-model for speech. Existing unowned or locally edited skills are preserved; upgrades stop before replacing them. Previous runtime releases remain for rollback. node src/install.mjs --uninstall removes only owned, unchanged skills and preserves models, config and workspace outputs.

DSH

The package inserts dsh-media-audio and dsh-media-video as independently switchable plugins. They use DSH tool registration, attachments, prompt sections and Cordis lifecycle cleanup; no host source patch is needed. Disabling either cancels its owned work and removes its registrations. It never deletes generated files or models. Individual inserts are also in audio.patch.yml and video.patch.yml.

Where installed, DSH's modelScheduler service handles GPU admission so managed models can unload before media inference and resume afterward. The workers also hold a package-owned lock and refuse to collide with an unrelated GPU owner. MCP clients cannot control another application's private scheduler: unload an unrelated resident model before standalone GPU inference.

Do not register duplicate tool names through both the direct plugins and MCP in one DSH profile. The installer does not modify a live DSH profile or reload DSH.

MCP

The installer prints the runtime path. Add this server to your MCP client:

{
  "mcpServers": {
    "dsh-media": {
      "command": "node",
      "args": ["/installed/runtime/src/mcp.mjs", "--workspace", "/authorized/workspace"]
    }
  }
}

The official MCP SDK server exposes all eight tools and returns plot image blocks, saved files and report JSON. Select tools normally in your client. Audio playback uses returned WAV paths where the client supports it. Allow a long tool timeout for GPU jobs. For Codex, the setup syntax is documented in official MCP configuration.

CLI

node src/cli.mjs doctor
node src/cli.mjs analyze_audio --workspace /path/to/workspace \
  --args '{"source_path":"recording.mp3","duration_seconds":30,"fft_size":8192}'
node src/cli.mjs listen_audio --workspace /path/to/workspace \
  --args '{"source_path":"recording.mp3"}'
node src/cli.mjs analyze_video --workspace /path/to/workspace \
  --args '{"source_path":"clip.mp4","question":"Describe the events in timestamp order."}'

CLI/MCP paths are relative to the explicitly authorized workspace. DSH can use the latest single media upload or an attachment ID. Outputs are unique .dsh-media directories; originals stay unchanged. See conversion recipes.

Model requirement: analyze_video is specifically for models with native temporal video support and a compatible engine/projector. User deployment examples include Flash 3.8, Flash Next, Qwen 3.6 35B-A3B and Qwen 27B. These are deployment labels, not a tested compatibility matrix. Each model/engine/projector combination needs qualification. The bundled native path preserves 6 FPS, 15-second windows, 3-second overlap, SVE2 records and M-RoPE traces. It never replaces temporal video with independent still frames.

Numerical audio segments are at most 120 seconds and 25 million channel-samples. Input size is at most 2 GiB. CPU transcription and conversions/edits are bounded to two hours; conversions default to the first 30 seconds. Numerical levels are dBFS, not calibrated SPL. Whisper likelihoods are not correctness percentages. Omni captions can hallucinate; compare descriptions with measured evidence.

Development and provenance

Run npm ci && npm test with the pinned Python requirements; DSH_MEDIA_PYTHON selects the interpreter. Optional live inference checks are separate from the normal CPU/MCP/Cordis suite. See validation, advanced backends, source provenance and third-party notices.

The portable CPU runner enforces path checks, not an OS sandbox. The included Linux GPU backend runs owned processes with per-job scratch, bounded inputs and cancellation. Native executable assets and vendored Strata/llama components keep their licenses. Private settings, credentials, chat histories, recordings and model weights are not checked into this repository.

Recommended models and exact identities

Run npm run models -- list to inspect the configured Omni, Whisper and native-video model identities and exact hashes/revisions. To fetch a complete pinned set, run npm run models -- download omni-captioner /absolute/model/storage or use whisper-small. The command resumes partial files, verifies content, prints progress and writes download-receipt.json. Configure the resulting paths using the standalone backend setup instructions above. Model download does not launch inference or change private settings. Native video additionally requires a compatible complete checkpoint, projector and prepared runtime pack; a projector alone is insufficient.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/averyjohnkucan-arch/dsh-media-tools)