media-command-guide/generate-pdf.js
Zach Gaetano 23b631e66f docs: corrected guide — removed hallucinations, applied BMG branding (Montserrat/Nunito, BMG Red, light-mode body with dark screenshots)
Corrections from source code audit:
- Tech stack: esbuild JSX (not React 18 SPA), ESM JS (not TypeScript)
- Auth: bcrypt cost 12 (not PBKDF2/Argon2)
- Roles: admin/operator/viewer (no 'editor' role)
- Recorder codecs: H.264 intra + HEVC intra only (ProRes/DNx removed)
- Cloud Import: Google Drive + Dropbox (not Frame.io)
- Smart Bins → Saved Searches
- Correct plugin versions: Premiere 2.27.6, Resolve 0.1.2
- Removed internal IP addresses from customer-facing doc
2026-10-02 07:24:38 -04:00

498 lines
26 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 `<p class="missing">Screenshot: ${filename} (not available)</p>`;
return `<figure>
<img src="${shots[filename]}" alt="${caption}" />
<figcaption>${caption}</figcaption>
</figure>`;
}
// 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 = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Nunito:wght@400;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<style>
@page { size: letter landscape; margin: 18mm 16mm 20mm 16mm; }
* { box-sizing: border-box; }
body {
font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
color: #0f172a; background: #ffffff;
line-height: 1.6; font-size: 11pt; margin: 0; padding: 0;
}
.cover {
page-break-after: always; height: 100vh;
display: flex; flex-direction: column; justify-content: center; align-items: center;
text-align: center;
background: linear-gradient(155deg, #0a0d14 0%, #141923 40%, #0a0d14 100%);
color: #e2e8f0; padding: 60px;
margin: -18mm -16mm; width: calc(100% + 32mm);
}
.cover-logo { width: 120px; height: auto; margin-bottom: 32px; opacity: 0.9; }
.cover h1 {
font-family: 'Montserrat', sans-serif; font-weight: 800;
font-size: 44pt; letter-spacing: -1.5px; margin: 0 0 6px; color: #EC1313;
}
.cover .subtitle {
font-family: 'Montserrat', sans-serif; font-weight: 600;
font-size: 13pt; color: #94a3b8; letter-spacing: 3px; text-transform: uppercase;
margin-bottom: 40px;
}
.cover .meta { font-size: 10.5pt; color: #64748b; line-height: 2; }
.cover .meta strong { color: #94a3b8; }
.cover .badge {
display: inline-block; padding: 6px 18px;
border: 1px solid #2a3346; border-radius: 20px;
font-size: 9pt; color: #EC1313; margin-top: 28px; letter-spacing: 1.5px;
font-family: 'Montserrat', sans-serif; font-weight: 600;
}
.toc { page-break-after: always; padding-top: 20px; }
.toc h2 {
font-family: 'Montserrat', sans-serif; font-weight: 700;
font-size: 22pt; color: #0f172a; border-bottom: 3px solid #c61010; padding-bottom: 8px;
}
.toc ul { list-style: none; padding: 0; }
.toc li { padding: 5px 0; border-bottom: 1px solid #e2e8f0; font-size: 10.5pt; }
.toc .section-header {
font-family: 'Montserrat', sans-serif; font-weight: 700;
color: #c61010; margin-top: 14px; font-size: 11pt; border-bottom: none;
}
h1 {
font-family: 'Montserrat', sans-serif; font-weight: 700;
font-size: 22pt; color: #0f172a;
border-bottom: 3px solid #c61010; padding-bottom: 8px;
margin-top: 36px; page-break-before: always;
}
h1:first-of-type { page-break-before: avoid; }
h2 {
font-family: 'Montserrat', sans-serif; font-weight: 700;
font-size: 16pt; color: #0f172a;
margin-top: 28px; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px;
}
h3 {
font-family: 'Montserrat', sans-serif; font-weight: 600;
font-size: 13pt; color: #475569; margin-top: 18px;
}
p { margin: 6px 0; }
strong { color: #0f172a; }
figure {
margin: 14px 0; page-break-inside: avoid;
background: #141923; border-radius: 10px; padding: 8px; border: 1px solid #2a3346;
}
figure img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 6px; }
figcaption { font-size: 8.5pt; color: #94a3b8; text-align: center; margin-top: 6px; font-style: italic; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 10pt; }
th {
background: #f1f5f9; color: #0f172a; font-weight: 600;
text-align: left; padding: 7px 10px; border-bottom: 2px solid #cbd5e1;
font-family: 'Montserrat', sans-serif;
}
td { padding: 5px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
ul { padding-left: 20px; } li { margin: 3px 0; }
code {
font-family: 'Fira Code', monospace; font-size: 9pt;
background: #f1f5f9; padding: 1px 4px; border-radius: 3px;
}
pre {
background: #0f172a; color: #e2e8f0; padding: 12px 16px;
border-radius: 8px; font-size: 8.5pt; line-height: 1.6;
font-family: 'Fira Code', monospace;
}
pre code { background: none; padding: 0; color: inherit; }
.callout {
background: #fef2f2; border-left: 4px solid #c61010;
padding: 10px 14px; margin: 12px 0; border-radius: 0 6px 6px 0; font-size: 10pt;
}
.missing { color: #94a3b8; font-style: italic; font-size: 9pt; }
</style>
</head>
<body>
<div class="cover">
${logoB64 ? `<img class="cover-logo" src="${logoB64}" alt="BMG" />` : ''}
<h1>Media Command™</h1>
<div class="subtitle">Operator &amp; Engineering Guide</div>
<div class="meta">
<strong>Organization:</strong> Broadcast Management Group (BMG)<br>
<strong>Version:</strong> Media Command™ v0.91<br>
<strong>Reference Data:</strong> 12,353 Indexed Broadcast Assets<br>
<strong>Date:</strong> October 2026
</div>
<div class="badge">PRODUCTION · VERIFIED WITH REAL MEDIA</div>
</div>
<div class="toc">
<h2>Table of Contents</h2>
<ul>
<li class="section-header">Foundation</li>
<li>1. System Overview</li>
<li>2. Authentication &amp; Access Control</li>
<li>3. Dashboard</li>
<li class="section-header">Live Ingest &amp; Control</li>
<li>4. Recorders</li><li>5. Schedule</li><li>6. Live Graphics</li><li>7. Monitor Wall</li>
<li class="section-header">Media</li>
<li>8. Projects</li><li>9. Library</li><li>10. Asset Detail &amp; Player</li>
<li>11. Upload</li><li>12. Contribution</li><li>13. YouTube Ingest</li><li>14. Cloud Import</li>
<li class="section-header">Operations</li>
<li>15. Jobs</li><li>16. Staging</li><li>17. Playout</li><li>18. Clip Server</li>
<li>19. Editor</li><li>20. Engineering</li><li>21. Applications &amp; Downloads</li>
<li class="section-header">Administration</li>
<li>22. Users &amp; Groups</li><li>23. API Tokens</li><li>24. Containers</li><li>25. Logs</li>
<li>26. Audit Log</li><li>27. Cluster</li><li>28. Alerts</li><li>29. Settings</li>
<li class="section-header">Plugins &amp; Applications</li>
<li>30. Premiere Pro UXP Plugin</li><li>31. DaVinci Resolve Plugin</li>
<li>32. Media Command Transfer</li><li>33. Media Command REMI</li><li>34. Dragon-ISO</li>
</ul>
</div>
<h1>1. System Overview</h1>
<p><strong>Media Command</strong> is a broadcast media asset management, live capture, and playout platform.</p>
<h3>Architecture</h3>
<pre><code>┌──────────────────────────────────────────────────────────────┐
│ MEDIA COMMAND™ │
│ Web UI (esbuild JSX / nginx) │
└─────────────────────────┬────────────────────────────────────┘
│ REST / WebSocket / HTTPS
┌─────────────────────────┴────────────────────────────────────┐
│ MAM-API Cluster Gateway │
│ (Node.js / Express / BullMQ / pg) │
└───┬──────────────────────┬────────────────────────────┬──────┘
│ │ │
┌───┴──────────┐ ┌─────────┴──────────┐ ┌──────────────┴─────┐
│ Worker Fleet │ │ PostgreSQL 16 │ │ Playout &amp; Ingest │
│ GPU (NVENC) │ │ pgvector · Redis 7 │ │ CasparCG / AMCP │
└──────────────┘ └────────────────────┘ └────────────────────┘</code></pre>
<h3>Technology Stack</h3>
<ul>
<li><strong>Web UI:</strong> JSX components bundled by esbuild, served by nginx. HLS.js for adaptive playback, WebRTC (WHEP) for sub-second monitoring.</li>
<li><strong>API:</strong> Node.js / Express (ESM), PostgreSQL 16 with pgvector, Redis 7, BullMQ job queues.</li>
<li><strong>Workers:</strong> GPU-accelerated transcoding (NVIDIA NVENC/NVDEC) across a distributed compute fleet.</li>
<li><strong>Playout:</strong> CasparCG sidecar containers driven over AMCP, with HTML graphics overlay layers.</li>
</ul>
<h3>TAMS fMP4 Master Flows</h3>
<p>Media Command records into <strong>fragmented MP4 (CMAF)</strong> 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.</p>
<h1>2. Authentication &amp; Access Control</h1>
${img('01-login-page.png', 'Media Command — Login')}
<h3>Authentication Methods</h3>
<ul>
<li><strong>Local credentials:</strong> bcrypt-hashed passwords (cost 12).</li>
<li><strong>SSO via Authentik:</strong> OAuth2/OIDC brokering @broadcastmgmt.com (M365) and @bmgremi.com (Google Workspace).</li>
<li><strong>MFA:</strong> TOTP enforcement available for administrative accounts.</li>
</ul>
<p><strong>Session:</strong> <code>express-session</code> with <code>connect-pg-simple</code> store. Cookie: <code>dragonflight.sid</code>, httpOnly, 30-day lifetime.</p>
<h3>Roles</h3>
<table>
<tr><th>Role</th><th>Scope</th></tr>
<tr><td><strong>Admin</strong> (<code>platform_admin</code>)</td><td>Full cluster control, user/token provisioning, container management, storage configuration.</td></tr>
<tr><td><strong>Operator</strong></td><td>Recorder control, schedule automation, playout queue manipulation, graphics triggering.</td></tr>
<tr><td><strong>Viewer</strong></td><td>Read-only access to metadata and proxy streams. Default for new SSO users.</td></tr>
</table>
<p>Per-project and per-organization permissions provide granular access beyond the global role.</p>
<h1>3. Dashboard</h1>
${img('02-dashboard-home.png', 'Operations Dashboard — system vitals, recent activity, and quick navigation')}
<ul>
<li><strong>Asset count:</strong> total indexed assets across all projects.</li>
<li><strong>Queue status:</strong> running and failed BullMQ worker tasks.</li>
<li><strong>Recorder summary:</strong> enabled and configured capture ports.</li>
<li><strong>Recent activity:</strong> files ingested in the last 24 hours.</li>
</ul>
<p>Quick-access tiles link to Library, Recorders, Playout, Jobs, Downloads, and Settings.</p>
<h1>4. Recorders</h1>
${img('05-live-recorders.png', 'Recorders — capture ports and network ingest engines')}
<ul>
<li><strong>Port cards:</strong> each card represents a capture port (Blackmagic, AJA, or Deltacast).</li>
<li><strong>Signal detection:</strong> real-time input format (<code>1080i59.94</code>, <code>1080p29.97</code>, <code>2160p59.94</code>).</li>
<li><strong>Codec selection:</strong> H.264 intra (35/50/75/100 Mbps tiers) and HEVC intra. Per-port configuration.</li>
<li><strong>Actions:</strong> <code>Create Recording</code>, <code>Add Stream</code> (SRT/RTMP), <code>Reset to Default</code>.</li>
</ul>
<h1>5. Schedule</h1>
${img('06-live-schedule.png', 'Schedule — automated event-driven recording calendar')}
<ul>
<li>Grid-based calendar with per-port timeline lanes.</li>
<li>Traffic schedule and CSV run-sheet import.</li>
<li>Configurable pre/post-roll padding.</li>
</ul>
<h1>6. Live Graphics</h1>
${img('07-live-graphics.png', 'Live Graphics — HTML5 broadcast overlay engine')}
<ul>
<li>Sandboxed Chromium offscreen rendering for lower-thirds, scoreboards, and bugs.</li>
<li>DSK layer stacking over playout or recorder preview streams.</li>
</ul>
<h1>7. Monitor Wall</h1>
${img('08-live-monitor-wall.png', 'Monitor Wall — high-density WebRTC multiviewer')}
<ul>
<li>Grid layouts: <code>Auto</code>, <code>2×2</code>, <code>3×3</code>, <code>4×4</code>, <code>6×6</code>.</li>
<li>Feed filters: Recorders, WebRTC, Playout Channels.</li>
<li>WHEP/WebRTC with sub-second latency.</li>
<li>Multi-channel audio meters on active tiles.</li>
</ul>
<h1>8. Projects</h1>
${img('03-projects.png', 'Projects — workspace directory')}
${img('04-project-bmg-overview.png', 'Broadcast Managment Group — bins and folders')}
<p>Projects isolate media, permissions, and bins. Active projects include Broadcast Management Group (12,353 assets), UBS, Protour, First We Feast, and others.</p>
<ul>
<li><strong>Project creation:</strong> define name, storage allocation, and assigned user groups.</li>
<li><strong>Recycle Bin:</strong> deleted assets quarantine separately per project.</li>
</ul>
<h1>9. Library</h1>
${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')}
<ul>
<li><strong>Project switcher:</strong> dropdown to switch between assigned projects or <code>★ All Projects (Admin View)</code>.</li>
<li><strong>Search:</strong> full-text across filenames, tags, and metadata.</li>
<li><strong>Faceted filters:</strong> file type, codec, resolution, date range.</li>
<li><strong>Display modes:</strong> list view and thumbnail grid.</li>
<li><strong>Bins:</strong> hierarchical folders. Saved searches provide per-user named filter presets.</li>
</ul>
<h1>10. Asset Detail &amp; Player</h1>
${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')}
<ul>
<li><strong>Video player:</strong> proxy playback with timecode scrubbing, J-K-L shuttle, in/out points (<code>I</code>/<code>O</code>).</li>
<li><strong>TAMS adaptive playback:</strong> scrubbing works on multi-hour growing files.</li>
<li><strong>Tabs:</strong> Files, Metadata, Transcript, AI Analysis &amp; Faces, Versions, Comments, Review.</li>
<li><strong>Technical metadata:</strong> container, codec, resolution, frame rate, bit rate, storage path, checksums.</li>
<li><strong>Actions:</strong> Review, Edit, Share, Pull Hi-Res, Reframe &amp; Social, Clip.</li>
</ul>
<h1>11. Upload</h1>
${img('10-media-upload.png', 'Upload — chunked resumable web ingest')}
<p>Chunked resumable upload with target bin selection. Proxy, thumbnail, and waveform generation trigger automatically on completion.</p>
<h1>12. Contribution</h1>
${img('11-media-contribution.png', 'Contribution — SRT/RTMP ingest for remote broadcast feeds')}
<ul>
<li><strong>SRT:</strong> caller/listener mode with passphrase and adjustable latency.</li>
<li><strong>RTMP/RTMPS:</strong> custom streaming keys for OBS, vMix, Wirecast.</li>
<li><strong>Auto-recording:</strong> starts a TAMS recording when a contribution stream connects.</li>
</ul>
<h1>13. YouTube Ingest</h1>
${img('12-media-youtube.png', 'YouTube — paste a URL to archive video or live stream')}
<p>Paste any YouTube video or live stream URL for background download into the Library.</p>
<h1>14. Cloud Import</h1>
${img('13-media-cloud-import.png', 'Cloud Import — Google Drive, Dropbox, and S3 connectors')}
<ul>
<li><strong>Google Drive</strong> and <strong>Dropbox</strong> connectors.</li>
<li><strong>S3-compatible storage:</strong> Amazon S3, Wasabi, Backblaze B2, MinIO.</li>
</ul>
<h1>15. Jobs</h1>
${img('14-ops-jobs.png', 'Jobs — BullMQ distributed task pipeline')}
<p>Queues cover transcoding, thumbnail/waveform generation, conform/export, and cloud sync. Per-job controls: progress, error log, retry, priority, flush.</p>
<h1>16. Staging</h1>
${img('15-ops-staging.png', 'Staging — NVMe scratch storage monitoring')}
<p>Tracks free space across cluster scratch disks and enforces retention policies.</p>
<h1>17. Playout</h1>
${img('16-ops-playout.png', 'Playout — master control channel automation')}
<ul>
<li>CasparCG sidecar containers driven over AMCP, one per channel.</li>
<li>Drag-and-drop rundown builder with CUE, PLAY, PAUSE, STOP, LOOP.</li>
<li>Program and preview confidence monitoring.</li>
</ul>
${img('29-playout-rundown.png', 'Playout — Rundown view')}
<h1>18. Clip Server</h1>
${img('17-ops-clip-server.png', 'Clip Server — instant-access cart for live replay')}
<p>Pre-loaded frames in shared memory (<code>/dev/shm</code>) for frame-accurate playback.</p>
<h1>19. Editor</h1>
${img('18-ops-editor.png', 'Editor — browser-based NLE (/editor.html)')}
<ul>
<li>Multi-track timeline (V1, V2, A1–A5).</li>
<li>In/out trimming on TAMS master flows.</li>
<li>Export to Library with codec presets and crop-to-fill options.</li>
</ul>
<h1>20. Engineering</h1>
${img('19-ops-engineering.png', 'Engineering — capture card, GPU, and network diagnostics')}
<p>Broadcast engineering diagnostics: capture card status, GPU acceleration metrics, and network interface statistics.</p>
<h1>21. Applications &amp; Downloads</h1>
${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')}
<table>
<tr><th>Application</th><th>Platform</th><th>Installer</th></tr>
<tr><td>Premiere Pro UXP Plugin</td><td>macOS / Windows</td><td><code>dragonflight-mam-2.27.6.ccx</code></td></tr>
<tr><td>DaVinci Resolve Plugin</td><td>macOS / Windows</td><td><code>dragonflight-resolve-0.1.2.zip</code></td></tr>
<tr><td>Media Command Transfer</td><td>macOS / Windows</td><td><code>Media-Command-Transfer-0.2.1</code></td></tr>
<tr><td>Media Command REMI</td><td>macOS / Windows</td><td><code>Media-Command-REMI-0.3.3</code></td></tr>
<tr><td>Dragon-ISO</td><td>Windows</td><td><code>Dragon-ISO-Setup-1.1.0.msi</code></td></tr>
</table>
<h1>22. Users &amp; Groups</h1>
${img('21-admin-users-groups.png', 'Users & Groups — provisioning and role assignment')}
<p>User provisioning, group management, and role assignment with per-project access boundaries.</p>
<h1>23. API Tokens</h1>
${img('22-admin-api-tokens.png', 'API Tokens — scoped automation keys')}
<p>Scoped API keys for automation pipelines. Supports expiration and instant revocation.</p>
<h1>24. Containers</h1>
${img('23-admin-containers.png', 'Containers — Docker fleet status')}
<p>Docker container fleet status across all cluster nodes with resource metrics and lifecycle controls.</p>
<h1>25. Logs</h1>
${img('24-admin-logs.png', 'Logs — centralized aggregation with severity filtering')}
<p>Centralized log aggregation from all nodes with severity filtering and regex search.</p>
<h1>26. Audit Log</h1>
${img('25-admin-audit-log.png', 'Audit Log — immutable action history')}
<p>Immutable record of all user actions. Captures user ID, IP, timestamp, and state changes.</p>
<h1>27. Cluster</h1>
${img('26-admin-cluster.png', 'Cluster — multi-node topology and heartbeat monitoring')}
<p>Cluster topology visualizer with heartbeat and connectivity monitoring.</p>
<h1>28. Alerts</h1>
${img('27-admin-alerts.png', 'Alerts — operational incident monitoring')}
<p>Active alerts (storage thresholds, signal loss, worker heartbeat drops). Webhook notifications to Discord, Slack, or email.</p>
<h1>29. Settings</h1>
${img('28-admin-settings.png', 'Settings — storage, encoders, and playout configuration')}
${img('28-settings-tab-storage.png', 'Settings — Storage tab')}
<p>Central configuration for storage paths, S3 endpoints, transcoder profiles, and playout channel topologies.</p>
<h1>30. Adobe Premiere Pro UXP Plugin</h1>
<p><strong>Package:</strong> <code>dragonflight-mam-2.27.6.ccx</code> · <strong>Requires:</strong> Premiere Pro 2026 (v26+)</p>
<h3>Installation</h3>
<ol>
<li>Download the <code>.ccx</code> from the Downloads menu.</li>
<li>Double-click to install via Creative Cloud, or use the UXP Developer Tool.</li>
<li>In Premiere: <strong>Window → Extensions → Media Command™</strong>.</li>
</ol>
<h3>Capabilities</h3>
<ul>
<li>Browse the MAM library, search assets, import proxy or hi-res renditions.</li>
<li>Mount live growing TAMS capture streams for edit-while-record.</li>
<li>Relink proxy edits to full-resolution masters.</li>
<li>Export sequences directly to MAM project bins.</li>
</ul>
<h1>31. DaVinci Resolve Studio Plugin</h1>
<p><strong>Package:</strong> <code>dragonflight-resolve-0.1.2.zip</code> · <strong>Requires:</strong> Resolve Studio 18.5+</p>
<h3>Installation</h3>
<ol>
<li>Download and extract to the Workflow Integration Plugins directory.</li>
<li>In Resolve Studio: <strong>Workspace → Workflow Integrations → Media Command™ MAM</strong>.</li>
</ol>
<h3>Capabilities</h3>
<ul>
<li>Browse and search the MAM catalog.</li>
<li>Import assets directly into the Resolve Media Pool.</li>
</ul>
<h1>32. Media Command Transfer</h1>
<table>
<tr><th>Platform</th><th>File</th></tr>
<tr><td>macOS Apple Silicon</td><td><code>Media-Command-Transfer-0.2.1-mac-arm64.zip</code></td></tr>
<tr><td>macOS Intel</td><td><code>Media-Command-Transfer-0.2.1-mac-x64.zip</code></td></tr>
<tr><td>Windows x64</td><td><code>Media-Command-Transfer-0.2.1-win-x64.exe</code></td></tr>
</table>
<p>High-speed desktop uploader with watch folder automation, drag-and-drop upload, and <code>mediacommand://</code> deep-link protocol for browser-initiated downloads. Builds are unsigned.</p>
<h1>33. Media Command REMI</h1>
<table>
<tr><th>Platform</th><th>File</th></tr>
<tr><td>macOS Apple Silicon</td><td><code>Media-Command-REMI-0.3.3-mac-arm64.zip</code></td></tr>
<tr><td>macOS Intel</td><td><code>Media-Command-REMI-0.3.3-mac-x64.zip</code></td></tr>
<tr><td>Windows x64</td><td><code>Media-Command-REMI-0.3.3-win-x64.exe</code></td></tr>
</table>
<ul>
<li>Up to 8 tiles per window with configurable grid layouts.</li>
<li>Proxy / QC mode toggle for full-quality NVENC streams.</li>
<li>Audio metering with channel pair selection, solo, and mute.</li>
<li>Broadcast OSD overlays (tally, timecode, safe area, crosshairs).</li>
<li>Multi-window, multi-display support.</li>
<li>HTTP REST API and WebSocket for Bitfocus Companion / Stream Deck.</li>
<li>Builds are unsigned.</li>
</ul>
<h1>34. Dragon-ISO</h1>
<p><strong>Package:</strong> <code>Dragon-ISO-Setup-1.1.0.msi</code> · <strong>Platform:</strong> Windows 10/11</p>
<p>Microsoft Teams NDI ISO controller. Extracts individual participant streams, normalizes to broadcast standards, and re-emits as clean NDI sources with optional disk recording.</p>
<ul>
<li>REST &amp; WebSocket on <code>127.0.0.1:9755</code>.</li>
<li>OSC server on UDP <code>127.0.0.1:9000</code> for Companion and TouchOSC.</li>
<li>Mobile web controller at <code>http://localhost:9755/ui</code>.</li>
</ul>
<h1>35. Safety &amp; Runbooks</h1>
<div class="callout">
<strong>Media Deletion Protocol:</strong> Deleting an asset moves it to the project's Recycle Bin. Permanent purge requires admin credentials and confirmation dialogs.
</div>
<h3>Live Growing File Editing</h3>
<ol>
<li>In <strong>Recorders</strong>, select the target port and set codec to H.264 intra or HEVC intra.</li>
<li>Click <strong>Create Recording</strong>.</li>
<li>In the <strong>Premiere Pro plugin</strong>, locate the active recording (red <code>LIVE</code> badge) and click <strong>Mount Growing File</strong>.</li>
<li>Edit immediately — new segments are recognized dynamically.</li>
</ol>
<p style="text-align:center; color:#94a3b8; margin-top:40px; font-size:8.5pt; font-family:'Montserrat',sans-serif;">
Broadcast Management Group — Media Command · October 2026
</p>
</body>
</html>`;
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: '<span></span>',
footerTemplate: '<div style="font-size:7.5pt; width:100%; padding:0 16mm; display:flex; justify-content:space-between; color:#475569; font-family:Montserrat,sans-serif;"><span>Broadcast Management Group — Media Command</span><span>Page <span class="pageNumber"></span> of <span class="totalPages"></span></span></div>'
});
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();
})();