const { chromium } = require('playwright'); const fs = require('fs'); const path = require('path'); const SCREENSHOTS_DIR = '/home/zgaetano/media-command-guide/screenshots'; const OUTPUT_PDF = '/home/zgaetano/media-command-guide/Media-Command-Guide.pdf'; // Read all screenshots as base64 function imgBase64(filename) { const fpath = path.join(SCREENSHOTS_DIR, filename); if (!fs.existsSync(fpath)) return ''; const data = fs.readFileSync(fpath); return `data:image/png;base64,${data.toString('base64')}`; } const shots = {}; const files = fs.readdirSync(SCREENSHOTS_DIR).filter(f => f.endsWith('.png')); for (const f of files) { shots[f] = imgBase64(f); } console.log(`Loaded ${Object.keys(shots).length} screenshots`); function img(filename, caption) { if (!shots[filename]) return `

Screenshot: ${filename} (not available)

`; return `
${caption}
${caption}
`; } // BMG logo as base64 const logoPath = '/home/zgaetano/wilddragon-site/images/clients/bmg.png'; const logoB64 = fs.existsSync(logoPath) ? `data:image/png;base64,${fs.readFileSync(logoPath).toString('base64')}` : ''; const html = `
${logoB64 ? `` : ''}

Media Command™

Operator & Engineering Guide
Organization: Broadcast Management Group (BMG)
Version: Media Command™ v0.91
Reference Data: 12,353 Indexed Broadcast Assets
Date: October 2026
PRODUCTION · VERIFIED WITH REAL MEDIA

Table of Contents

1. System Overview

Media Command is a broadcast media asset management, live capture, and playout platform.

Architecture

┌──────────────────────────────────────────────────────────────┐
│                       MEDIA COMMAND™                         │
│                  Web UI (esbuild JSX / nginx)                │
└─────────────────────────┬────────────────────────────────────┘
                          │ REST / WebSocket / HTTPS
┌─────────────────────────┴────────────────────────────────────┐
│                    MAM-API Cluster Gateway                    │
│              (Node.js / Express / BullMQ / pg)               │
└───┬──────────────────────┬────────────────────────────┬──────┘
    │                      │                            │
┌───┴──────────┐ ┌─────────┴──────────┐ ┌──────────────┴─────┐
│ Worker Fleet │ │ PostgreSQL 16      │ │ Playout & Ingest   │
│ GPU (NVENC)  │ │ pgvector · Redis 7 │ │ CasparCG / AMCP    │
└──────────────┘ └────────────────────┘ └────────────────────┘

Technology Stack

TAMS fMP4 Master Flows

Media Command records into fragmented MP4 (CMAF) containers. Segments are written sequentially to NVMe, allowing editors to scrub up to the live record edge while capture is still in progress. H.264 and HEVC feeds are stream-copied directly — no transcode required.

2. Authentication & Access Control

${img('01-login-page.png', 'Media Command — Login')}

Authentication Methods

Session: express-session with connect-pg-simple store. Cookie: dragonflight.sid, httpOnly, 30-day lifetime.

Roles

RoleScope
Admin (platform_admin)Full cluster control, user/token provisioning, container management, storage configuration.
OperatorRecorder control, schedule automation, playout queue manipulation, graphics triggering.
ViewerRead-only access to metadata and proxy streams. Default for new SSO users.

Per-project and per-organization permissions provide granular access beyond the global role.

3. Dashboard

${img('02-dashboard-home.png', 'Operations Dashboard — system vitals, recent activity, and quick navigation')}

Quick-access tiles link to Library, Recorders, Playout, Jobs, Downloads, and Settings.

4. Recorders

${img('05-live-recorders.png', 'Recorders — capture ports and network ingest engines')}

5. Schedule

${img('06-live-schedule.png', 'Schedule — automated event-driven recording calendar')}

6. Live Graphics

${img('07-live-graphics.png', 'Live Graphics — HTML5 broadcast overlay engine')}

7. Monitor Wall

${img('08-live-monitor-wall.png', 'Monitor Wall — high-density WebRTC multiviewer')}

8. Projects

${img('03-projects.png', 'Projects — workspace directory')} ${img('04-project-bmg-overview.png', 'Broadcast Managment Group — bins and folders')}

Projects isolate media, permissions, and bins. Active projects include Broadcast Management Group (12,353 assets), UBS, Protour, First We Feast, and others.

9. Library

${img('09-media-library-bmg.png', 'Library — BMG workspace with bins and folder hierarchy')} ${img('09a-library-grid-thumbnails.png', 'Library — folder grid with real asset thumbnails')}

10. Asset Detail & Player

${img('09b-media-library-asset-inspector.png', 'Asset Detail — BMG Al Jazeera Sizzle v2.mp4 (1080p HEVC, 0:49)')} ${img('09c-asset-metadata.png', 'Asset Detail — Metadata tab')}

11. Upload

${img('10-media-upload.png', 'Upload — chunked resumable web ingest')}

Chunked resumable upload with target bin selection. Proxy, thumbnail, and waveform generation trigger automatically on completion.

12. Contribution

${img('11-media-contribution.png', 'Contribution — SRT/RTMP ingest for remote broadcast feeds')}

13. YouTube Ingest

${img('12-media-youtube.png', 'YouTube — paste a URL to archive video or live stream')}

Paste any YouTube video or live stream URL for background download into the Library.

14. Cloud Import

${img('13-media-cloud-import.png', 'Cloud Import — Google Drive, Dropbox, and S3 connectors')}

15. Jobs

${img('14-ops-jobs.png', 'Jobs — BullMQ distributed task pipeline')}

Queues cover transcoding, thumbnail/waveform generation, conform/export, and cloud sync. Per-job controls: progress, error log, retry, priority, flush.

16. Staging

${img('15-ops-staging.png', 'Staging — NVMe scratch storage monitoring')}

Tracks free space across cluster scratch disks and enforces retention policies.

17. Playout

${img('16-ops-playout.png', 'Playout — master control channel automation')} ${img('29-playout-rundown.png', 'Playout — Rundown view')}

18. Clip Server

${img('17-ops-clip-server.png', 'Clip Server — instant-access cart for live replay')}

Pre-loaded frames in shared memory (/dev/shm) for frame-accurate playback.

19. Editor

${img('18-ops-editor.png', 'Editor — browser-based NLE (/editor.html)')}

20. Engineering

${img('19-ops-engineering.png', 'Engineering — capture card, GPU, and network diagnostics')}

Broadcast engineering diagnostics: capture card status, GPU acceleration metrics, and network interface statistics.

21. Applications & Downloads

${img('20-ops-applications.png', 'Applications — plugin and desktop app distribution')} ${img('20b-downloads-modal.png', 'Downloads — Editing plugins tab')} ${img('20c-downloads-desktop-apps.png', 'Downloads — Desktop apps tab')}
ApplicationPlatformInstaller
Premiere Pro UXP PluginmacOS / Windowsdragonflight-mam-2.27.6.ccx
DaVinci Resolve PluginmacOS / Windowsdragonflight-resolve-0.1.2.zip
Media Command TransfermacOS / WindowsMedia-Command-Transfer-0.2.1
Media Command REMImacOS / WindowsMedia-Command-REMI-0.3.3
Dragon-ISOWindowsDragon-ISO-Setup-1.1.0.msi

22. Users & Groups

${img('21-admin-users-groups.png', 'Users & Groups — provisioning and role assignment')}

User provisioning, group management, and role assignment with per-project access boundaries.

23. API Tokens

${img('22-admin-api-tokens.png', 'API Tokens — scoped automation keys')}

Scoped API keys for automation pipelines. Supports expiration and instant revocation.

24. Containers

${img('23-admin-containers.png', 'Containers — Docker fleet status')}

Docker container fleet status across all cluster nodes with resource metrics and lifecycle controls.

25. Logs

${img('24-admin-logs.png', 'Logs — centralized aggregation with severity filtering')}

Centralized log aggregation from all nodes with severity filtering and regex search.

26. Audit Log

${img('25-admin-audit-log.png', 'Audit Log — immutable action history')}

Immutable record of all user actions. Captures user ID, IP, timestamp, and state changes.

27. Cluster

${img('26-admin-cluster.png', 'Cluster — multi-node topology and heartbeat monitoring')}

Cluster topology visualizer with heartbeat and connectivity monitoring.

28. Alerts

${img('27-admin-alerts.png', 'Alerts — operational incident monitoring')}

Active alerts (storage thresholds, signal loss, worker heartbeat drops). Webhook notifications to Discord, Slack, or email.

29. Settings

${img('28-admin-settings.png', 'Settings — storage, encoders, and playout configuration')} ${img('28-settings-tab-storage.png', 'Settings — Storage tab')}

Central configuration for storage paths, S3 endpoints, transcoder profiles, and playout channel topologies.

30. Adobe Premiere Pro UXP Plugin

Package: dragonflight-mam-2.27.6.ccx · Requires: Premiere Pro 2026 (v26+)

Installation

  1. Download the .ccx from the Downloads menu.
  2. Double-click to install via Creative Cloud, or use the UXP Developer Tool.
  3. In Premiere: Window → Extensions → Media Command™.

Capabilities

31. DaVinci Resolve Studio Plugin

Package: dragonflight-resolve-0.1.2.zip · Requires: Resolve Studio 18.5+

Installation

  1. Download and extract to the Workflow Integration Plugins directory.
  2. In Resolve Studio: Workspace → Workflow Integrations → Media Command™ MAM.

Capabilities

32. Media Command Transfer

PlatformFile
macOS Apple SiliconMedia-Command-Transfer-0.2.1-mac-arm64.zip
macOS IntelMedia-Command-Transfer-0.2.1-mac-x64.zip
Windows x64Media-Command-Transfer-0.2.1-win-x64.exe

High-speed desktop uploader with watch folder automation, drag-and-drop upload, and mediacommand:// deep-link protocol for browser-initiated downloads. Builds are unsigned.

33. Media Command REMI

PlatformFile
macOS Apple SiliconMedia-Command-REMI-0.3.3-mac-arm64.zip
macOS IntelMedia-Command-REMI-0.3.3-mac-x64.zip
Windows x64Media-Command-REMI-0.3.3-win-x64.exe

34. Dragon-ISO

Package: Dragon-ISO-Setup-1.1.0.msi · Platform: Windows 10/11

Microsoft Teams NDI ISO controller. Extracts individual participant streams, normalizes to broadcast standards, and re-emits as clean NDI sources with optional disk recording.

35. Safety & Runbooks

Media Deletion Protocol: Deleting an asset moves it to the project's Recycle Bin. Permanent purge requires admin credentials and confirmation dialogs.

Live Growing File Editing

  1. In Recorders, select the target port and set codec to H.264 intra or HEVC intra.
  2. Click Create Recording.
  3. In the Premiere Pro plugin, locate the active recording (red LIVE badge) and click Mount Growing File.
  4. Edit immediately — new segments are recognized dynamically.

Broadcast Management Group — Media Command · October 2026

`; const htmlPath = '/home/zgaetano/media-command-guide/guide.html'; fs.writeFileSync(htmlPath, html); console.log('HTML written to', htmlPath); (async () => { const browser = await chromium.launch({ headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'] }); const context = await browser.newContext(); const page = await context.newPage(); await page.goto(`file://${htmlPath}`, { waitUntil: 'load' }); await page.waitForTimeout(5000); await page.pdf({ path: OUTPUT_PDF, format: 'Letter', landscape: true, printBackground: true, margin: { top: '18mm', right: '16mm', bottom: '20mm', left: '16mm' }, displayHeaderFooter: true, headerTemplate: '', footerTemplate: '
Broadcast Management Group — Media CommandPage of
' }); console.log('PDF generated at:', OUTPUT_PDF); const stats = fs.statSync(OUTPUT_PDF); console.log('PDF size:', (stats.size / 1024 / 1024).toFixed(1), 'MB'); await browser.close(); })();