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')}`; } // Build screenshots map 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 found)

`; return `
${caption}
${caption}
`; } const html = `

Media Command™

End-to-End System & Operations Guide
Organization: Broadcast Management Group (BMG)
System Version: Media Command™ v0.91 · Dragonflight Architecture
Reference Data: 12,353 Indexed Broadcast Assets
Cluster Topology: 6-Node Distributed (dragon1 – dragon6)
Date: October 2026
PRODUCTION · TOOL-VERIFIED WITH REAL MEDIA

Table of Contents

1. Executive Overview & System Architecture

Media Command™ is an enterprise-grade broadcast Media Asset Management (MAM), live capture, signal routing, and playout automation platform developed by Wild Dragon LLC for high-velocity broadcast environments.

System Architecture

┌──────────────────────────────────────────────────────────────────────────┐
│                            MEDIA COMMAND™                                │
│                     Web UI (React 18 / Nginx)                            │
└─────────────────────────────────┬────────────────────────────────────────┘
                                  │ REST / WebSocket (Port 47432 / HTTPS)
┌─────────────────────────────────┴────────────────────────────────────────┐
│                       MAM-API Cluster Gateway                            │
│                 (Node.js / Express / BullMQ / pg)                        │
└────┬───────────────────────────┬──────────────────────────────────┬──────┘
     │                           │                                  │
┌────┴──────────────┐ ┌──────────┴──────────────┐ ┌────────────────┴──────┐
│ Distributed Worker│ │   Database Cluster      │ │  Playout & Ingest    │
│ Fleet (GPU/CMAF)  │ │ PostgreSQL 16 / Redis 7 │ │ CasparCG / Deltacast │
│ dragon2,3,4,6     │ │      (dragon1)          │ │ SDI / SRT / WebRTC   │
└───────────────────┘ └─────────────────────────┘ └──────────────────────┘

Technology Stack

TAMS CMAF/fMP4 Master Flow Paradigm

Media Command uses Fragmented MP4 (fMP4 / CMAF) master flows for live ingest. Unlike traditional monolithic files that require finalization before reading:

2. Authentication & Workspace Access

${img('01-login-page.png', 'Media Command™ Login Screen — Broadcast Management Group tenant')}

Authentication Channels

Role-Based Access Control (RBAC)

RoleScope & Permissions
AdminFull cluster control, user/token provisioning, container restart, S3 and storage configuration.
OperatorRecorder control, schedule automation, playout queue manipulation, graphics triggering.
EditorLibrary browsing, bin curation, rough-cut editor, NLE plugin connectivity, upload/import.
ViewerRead-only access to metadata and proxy streams. Cannot modify content.

3. Global Operations Dashboard

${img('02-dashboard-home.png', 'Media Command™ Operations Dashboard — Real-time system overview')}

The Operations Dashboard is the command center, providing unified visibility into system vitals, recent activity, and quick access navigation.

Dashboard Components

Quick navigation tiles provide one-click access to Library, Recorders, Playout, Jobs, Downloads, and Settings.

4. Recorders

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

The Recorders interface controls physical SDI capture ports (Deltacast PCIe) and network ingest engines across the distributed cluster.

5. Schedule

${img('06-live-schedule.png', 'Schedule — Automated broadcast event capture calendar')}

The Schedule module automates recurring broadcast captures and satellite/fiber ingest events.

6. Live Graphics & HTML Overlays

${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 for control rooms')}

8. Projects Management

${img('03-projects.png', 'Projects — Workspace directory showing all active productions')}

Projects are top-level workspaces isolating media, permissions, bins, and storage quotas. The BMG production environment hosts 8 active projects including Broadcast Management Group (12,353 assets), UBS (3,447 assets), Protour, and others.

${img('04-project-bmg-overview.png', 'Broadcast Managment Group project opened — bins and folders (Marketing Google Drive 11,458 items, Los Angeles 380, FX3 Ground 162)')}

9. Media Library

${img('09-media-library-bmg.png', 'Media Library — Broadcast Managment Group: bins (4.15.26 Rehearsals, Chicago, Dallas, Dearborn, Exterior Drone) and folders')} ${img('09a-library-grid-thumbnails.png', 'Media Library — folder grid with real thumbnails (FX3 Ground, Los Angeles, Marketing Google Drive)')}

10. Asset Inspector & Player

${img('09b-media-library-asset-inspector.png', 'Asset Detail — BMG Al Jazeera Sizzle v2.mp4 (1920x1080 HEVC, 0:49) paused at 00:00:17; Proxy, Hi-Res Master (TAMS) and Thumbnail renditions READY')} ${img('09c-asset-metadata.png', 'Asset Detail: Metadata tab — technical and descriptive metadata')} ${img('09c-asset-transcript.png', 'Asset Detail: Transcript tab — speech-to-text transcript')} ${img('09c-asset-ai.png', 'Asset Detail: AI Analysis & Faces tab')} ${img('09c-asset-versions.png', 'Asset Detail: Versions tab')} ${img('09c-asset-comments.png', 'Asset Detail: Comments tab — review annotations')}

11. Media Upload

${img('10-media-upload.png', 'Media Upload — Chunked resumable web ingest into target project bins')}

12. Contribution Feeds

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

13. YouTube Direct Ingest

${img('12-media-youtube.png', 'YouTube Ingest — Archive public/unlisted videos and live streams')}

14. Cloud Import

${img('13-media-cloud-import.png', 'Cloud Import — S3 bucket sync and Frame.io integration')}

15. Background Jobs

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

16. Staging

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

17. Playout

${img('16-ops-playout.png', 'Playout — Master control channel automation and CasparCG NDI output')} ${img('29-playout-rundown.png', 'Playout: Rundown (#rundown)')} ${img('30-playout-schedule.png', 'Playout: Playout Schedule (#playout-schedule)')} ${img('31-playout-ads.png', 'Playout: Ad Break (#playout-ads)')}

18. Clip Server

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

19. Web Editor

${img('18-ops-editor.png', 'Web Editor (/editor.html) — BMG project media bin loaded; source monitor, V1-V2/A1-A5 timeline, EDL / Save / Export to Library')}

20. Engineering

${img('19-ops-engineering.png', 'Engineering — Broadcast signal flow, GPU diagnostics, and timing infrastructure')}

21. Applications & Downloads Hub

${img('20-ops-applications.png', 'Applications — Central distribution portal for client tools and plugins')} ${img('20b-downloads-modal.png', 'Downloads: Editing plugins tab — Premiere Pro UXP v2.27.6 and DaVinci Resolve panel v0.1.0 beta')} ${img('20c-downloads-desktop-apps.png', 'Downloads: Desktop apps tab — Dragon-ISO v1.1.0, Media Command Transfer v0.2.1, Media Command REMI v0.3.3 (Apple silicon, Intel, Windows x64)')}
ApplicationPlatformInstaller
Adobe Premiere Pro UXP PluginmacOS / Windowsdragonflight-mam-2.27.6.ccx
DaVinci Resolve Studio PluginmacOS / Windowsdragonflight-resolve-0.1.0.zip
Media Command TransfermacOS / WindowsMedia-Command-Transfer-0.2.1-{platform}.{ext}
Media Command REMImacOS / WindowsMedia-Command-REMI-0.3.3-{platform}.{ext}
Dragon-ISOWindowsDragon-ISO-Setup-1.1.0.msi

22. Users & Groups

${img('21-admin-users-groups.png', 'Users & Groups — Multi-tenant user provisioning with RBAC role enforcement')}

23. API Tokens

${img('22-admin-api-tokens.png', 'API Tokens — Scoped service automation keys with revocation controls')}

24. Containers & Fleet Health

${img('23-admin-containers.png', 'Containers — Docker fleet status across the 6-node cluster')}

25. System Logs

${img('24-admin-logs.png', 'Logs — Centralized log aggregation with severity filtering and regex search')}

26. Audit Trail

${img('25-admin-audit-log.png', 'Audit Log — Immutable record of all user actions for security compliance')}

27. Cluster Topology

${img('26-admin-cluster.png', 'Cluster — Distributed 6-node topology visualizer with heartbeat monitoring')}

28. System Alerts

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

29. System Settings

${img('28-admin-settings.png', 'Settings — Central configuration for storage, encoders, and SDK bridges')} ${img('28-settings-tab-storage.png', 'Settings: Storage Tab — S3 endpoint credentials, NFS/CIFS mounts, scratch paths')}

30. Adobe Premiere Pro UXP Plugin

The Media Command UXP Plugin provides deep bidirectional NLE integration directly inside Adobe Premiere Pro 2026 (v26+).

Installation

  1. Download dragonflight-mam-2.27.6.ccx from the Downloads menu in Media Command.
  2. Double-click the .ccx file to install via Adobe Creative Cloud / UPI.
  3. In Premiere Pro: Window → Extensions → Media Command™.

Key Capabilities

31. DaVinci Resolve Studio Plugin

Native DaVinci Resolve Studio 18.5+ Workflow Integration for browsing and importing media directly into the Resolve Media Pool.

Installation

  1. Download dragonflight-resolve-0.1.0.zip.
  2. Extract to the Workflow Integration Plugins directory:
  3. In Resolve: Workspace → Workflow Integrations → Media Command™ MAM.

Key Capabilities

32. Media Command Transfer

High-speed desktop utility for bulk broadcast file ingest with accelerated multi-threaded transfers.

PlatformPackage
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

Key Features

33. Media Command REMI

Low-latency hardware-accelerated broadcast multiviewer and monitor wall application for remote control rooms.

PlatformPackage
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 (portable, unsigned — SmartScreen: More info → Run anyway)

Key Features

34. Dragon-ISO

Enterprise automation tool for capturing individual Microsoft Teams and NDI participants into isolated broadcast feeds.

PlatformPackage
Windows 10/11 x64Dragon-ISO-Setup-1.1.0.msi

Key Features

35. Safety Protocols & Operational Runbooks

MEDIA DELETION SAFETY PROTOCOL — TRIPLE CONFIRMATION REQUIRED
Under no circumstances may raw media files, S3 objects, or database records be purged without explicit, multi-step authorization. Deleted assets first enter the project's isolated Recycle Bin. Permanent purging from physical storage requires administrative credentials and double confirmation dialogs.

Live Growing File Workflow

  1. In Recorders, enable the target capture port and set container format to fMP4/CMAF (HEVC/H.264) or ProRes (Segmented).
  2. Click Create Recording to begin the live feed.
  3. Open Adobe Premiere Pro and launch the Media Command UXP Plugin.
  4. Locate the active recording (tagged with red LIVE badge) and click Mount Growing File.
  5. Edit immediately — new video segments are dynamically recognized without re-importing.

Media Command™ End-to-End System Guide · Broadcast Management Group · Wild Dragon LLC · October 2026

`; // Write the HTML const htmlPath = '/home/zgaetano/media-command-guide/guide.html'; fs.writeFileSync(htmlPath, html); console.log('HTML written to', htmlPath); // Generate PDF using Playwright (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(3000); // allow images to decode await page.pdf({ path: OUTPUT_PDF, format: 'A4', landscape: true, printBackground: true, margin: { top: '18mm', right: '20mm', bottom: '20mm', left: '20mm' }, displayHeaderFooter: true, headerTemplate: '', footerTemplate: '
Media Command™ End-to-End Guide · Broadcast Management Group · Page 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(); })();