610 lines
36 KiB
JavaScript
610 lines
36 KiB
JavaScript
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 & 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 & Access Control</li>
|
||
<li>3. Dashboard</li>
|
||
<li class="section-header">Live Ingest & 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 & Player</li><li>10a. AI Analysis</li><li>10b. Reframe & Social Publisher</li>
|
||
<li>11. Upload</li><li>12. Contribution (Client Uploads)</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 & Downloads</li>
|
||
<li class="section-header">Administration</li>
|
||
<li>22. Users & 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 & 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 & 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 & 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>
|
||
<p>One card per physical capture port (Blackmagic SDI and Deltacast) plus network streams, grouped by node. The header shows <em>enabled · configured</em> counts (e.g. 24 enabled · 29 configured).</p>
|
||
<h3>Toolbar</h3>
|
||
<ul>
|
||
<li><strong>Density toggle:</strong> <em>Dense list</em> (one line per recorder) or <em>Cards</em> (full preview + stats per recorder).</li>
|
||
<li><strong>Refresh</strong>, <strong>Reset to Default</strong> (disabled while anything is recording), <strong>Add Stream</strong>, <strong>Create Recording</strong>.</li>
|
||
</ul>
|
||
${img('05-recorders-dense.png', 'Recorders — Dense list view')}
|
||
<h3>Cards view — previews broken out</h3>
|
||
${img('05-recorders-cards.png', 'Recorders — Cards view: one preview tile per port with signal, TAMS/HDR and loudness stats')}
|
||
${img('05b-recorders-previews.png', 'Recorders — preview tiles per node (NO SIGNAL shown when the SDI source is idle)')}
|
||
<p>Each card shows the live preview, detected input signal, elapsed record time, TAMS / HDR badges, loudness, router crosspoint, and a per-recorder <strong>Take project</strong> picker. A <strong>NO SIGNAL</strong> badge means the port has no SDI input; if it appears mid-recording, recording continues but writes no frames.</p>
|
||
<h3>Configure recorder (gear icon)</h3>
|
||
${img('05d-recorder-configure.png', 'Configure recorder — label, clip-name date placement, recording mode')}
|
||
${img('05e-recorder-configure-codec.png', 'Configure recorder — growing master codec tiers')}
|
||
<ul>
|
||
<li><strong>Label:</strong> friendly name (blank = hardware name, e.g. <code>dragon2-bmd0</code>).</li>
|
||
<li><strong>Auto clip name date placement:</strong> Global default · Date first · Date end.</li>
|
||
<li><strong>Recording mode:</strong> <em>TAMS</em> (proxy + hi-res segments, 6 s segment cuts) or <em>Intra Growing</em> (grows live on the SMB share for edit-while-record).</li>
|
||
<li><strong>Growing master codec:</strong> H.264 all-intra (h264_nvenc, 8-bit SDR) at 35 / 50 / 75 / 100 Mbps, or HEVC long-GOP (hevc_nvenc, 10-bit HDR, ~60 Mbps VBR, ~30% smaller).</li>
|
||
<li><strong>TAMS hi-res codec:</strong> HEVC long-GOP or AV1 long-GOP (~15% smaller than HEVC; needs an AV1-capable NLE), plus rate control and bitrate.</li>
|
||
</ul>
|
||
<h3>Create Recording (batch start)</h3>
|
||
${img('05c-create-recording-dialog.png', 'Create Recording — batch-start multiple ports under one crash name')}
|
||
<ul>
|
||
<li><strong>Crash recorder name</strong> (optional) with a <strong>Date end</strong> toggle for date placement.</li>
|
||
<li><strong>Project</strong> applied to all selected ports.</li>
|
||
<li><strong>Ports:</strong> check each port to include and name it; clips are named <code>name_YYYYMMDD_HHMMSS</code>.</li>
|
||
</ul>
|
||
|
||
<h1>5. Schedule</h1>
|
||
${img('06-schedule-day.png', 'Schedule — Day view: one timeline lane per recorder')}
|
||
<p>The status strip at the top shows what is recording now and what's next. The legend covers <em>Growing (edit-while-record)</em>, <em>On air now</em>, <em>Failed</em> and <em>Past</em>; block colour = project.</p>
|
||
<h3>Toolbar</h3>
|
||
<ul>
|
||
<li><strong>Date:</strong> previous / next day arrows and <strong>Today</strong>.</li>
|
||
<li><strong>Views:</strong> Day · Week · List.</li>
|
||
<li><strong>Refresh</strong>, <strong>Record now</strong> (start recording on multiple recorders immediately), <strong>New schedule</strong>.</li>
|
||
</ul>
|
||
${img('06-schedule-week.png', 'Schedule — Week view')}
|
||
${img('06c-schedule-list.png', 'Schedule — List view (Upcoming · Past · All filters)')}
|
||
<p>List view columns: Name, Recorder, Starts, Duration, Recurrence, Status (pending · recording · completed · cancelled · failed).</p>
|
||
<h3>Event menu (right-click a block)</h3>
|
||
${img('06e-schedule-context-menu.png', 'Schedule — right-click menu on a completed event (Copy schedule ID, Delete schedule)')}
|
||
<ul>
|
||
<li><strong>Edit…</strong> (pending or failed events) · <strong>Cancel run</strong> (pending or recording) · <strong>Copy schedule ID</strong> · <strong>Delete schedule</strong> (anything not currently recording). The menu only shows actions valid for the event's state; the example is a completed event.</li>
|
||
<li>Left-click a block to open the inspector panel; blocks can be resized on the timeline to change start/end. Marquee and Shift/Ctrl multi-select are supported.</li>
|
||
</ul>
|
||
${img('06f-schedule-inspector.png', 'Schedule — event inspector')}
|
||
<h3>New schedule</h3>
|
||
${img('06b-schedule-new.png', 'New scheduled recording')}
|
||
<ul>
|
||
<li><strong>Name</strong>, <strong>Recorders</strong> (multi-select with Select all), <strong>Project</strong> (default: recorder's own project), <strong>Bin</strong>, start/end time and recurrence.</li>
|
||
</ul>
|
||
<h3>Record now</h3>
|
||
${img('06d-schedule-record-now.png', 'Record now — opens the same batch Create Recording dialog as Recorders')}
|
||
|
||
<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 are opened from the Library project switcher and breadcrumbs (there is no Projects button in the sidebar). They 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 & 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>Tabs:</strong> Files, Metadata, Transcript, AI Analysis & Faces, Versions, Comments, Review.</li>
|
||
<li><strong>Actions:</strong> Review, Edit, Share, Pull Hi-Res, Reframe & Social, Clip. <em>Reframe & Social</em> and <em>AI Analysis</em> open in their own windows (sections 10a and 10b).</li>
|
||
</ul>
|
||
|
||
<h1>10a. AI Analysis</h1>
|
||
<p>Opened from an asset (or the Analysis screen) as a dedicated window. Example asset: <code>GH020022.MP4</code> (Broadcast Management Group, NS32 launch coverage). Each tab can be run on its own or with <strong>Analyze All</strong>; previous runs are kept and can be re-run.</p>
|
||
${img('42-ai-analysis-overview.png', 'AI Analysis — GH020022.MP4')}
|
||
<h3>Story & Editorial</h3>
|
||
${img('42-ai-editorial.png', 'Story & Editorial — summary, chapters, soundbites, topics')}
|
||
<p>Executive summary, chapters, key soundbites & quotes, topics & entities and Q&A in one brief.</p>
|
||
<h3>Clips & Moments</h3>
|
||
${img('42-ai-clips.png', 'Clips & Moments — ranked social clip suggestions')}
|
||
<p>Ranked social clip suggestions. Each clip can be previewed, cut as a <strong>Subclip</strong> (an instant TAMS subclip, no render), or sent to Reframe in <strong>9:16</strong> or <strong>1:1</strong>.</p>
|
||
<h3>People & Faces</h3>
|
||
${img('42-ai-faces.png', 'People & Faces — 57 unrecognized faces clustered per person')}
|
||
<ul>
|
||
<li>Faces are clustered per person within the video, with appearance counts and timestamps.</li>
|
||
<li><strong>Identify faces:</strong> step through unrecognized faces and name them (Name this person · Not a face).</li>
|
||
<li><strong>Enroll from photo:</strong> upload a reference photo to recognise a person across the library.</li>
|
||
<li>Per person: <strong>Rename</strong>, <strong>AI Web Match</strong>, <strong>Merge</strong>.</li>
|
||
</ul>
|
||
<h3>In Picture</h3>
|
||
${img('42-ai-visual.png', 'In Picture — search keyframes by visual content')}
|
||
<p>Search keyframes and visual elements by picture content, with a frame log.</p>
|
||
<h3>Ask AI</h3>
|
||
${img('42-ai-ask.png', 'Ask AI — natural-language questions across the transcript')}
|
||
<p>Natural-language search and custom questions answered from the transcript.</p>
|
||
|
||
<h1>10b. Reframe & Social Publisher</h1>
|
||
${img('41-reframe.png', 'Reframe & Social Publisher — GH020022.MP4 at 9:16 with AI face tracking')}
|
||
<ul>
|
||
<li><strong>Live Reframed Video Monitor:</strong> real-time crop preview with the tracked face highlighted, a play/scrub timeline, and <strong>Set In / Set Out / Clear In-Out</strong>.</li>
|
||
<li><strong>Index Faces (AI):</strong> runs face recognition on the video so the crop can follow a person.</li>
|
||
<li><strong>Aspect Ratio:</strong> 9:16 Vertical · 1:1 Square · 16:9 HD.</li>
|
||
<li><strong>Framing Mode:</strong> AI Face · Center · Left · Right.</li>
|
||
<li><strong>Overlay Graphics Template:</strong> Clean (No Overlay) · Lower-Third Speaker Badge · Headline Title Banner, with Headline / Title, Subtitle / Description and Accent Bar Color fields.</li>
|
||
<li><strong>Output:</strong> <em>Create reframed TAMS subclip</em> (lands in the Library).</li>
|
||
<li><strong>Publish Targets:</strong> YouTube Shorts · TikTok · Instagram · X (Twitter), then <em>Publish to Social Outlets</em>.</li>
|
||
</ul>
|
||
${img('41b-reframe-full.png', 'Reframe — full control panel')}
|
||
|
||
<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 (Client Uploads)</h1>
|
||
${img('11-contribution.png', 'Contribution — Client Uploads: upload links and received files')}
|
||
<p>Contribution is for <strong>file deliveries from clients</strong>. You create a link, send it to the client, and they upload through a branded drop page; no Media Command account is needed. Received files land in the chosen project and are checked against a delivery spec.</p>
|
||
<h3>Create link</h3>
|
||
${img('11b-contribution-create-link.png', 'Create link — name, project, expiry, password, max uploads')}
|
||
<ul>
|
||
<li><strong>Name</strong> (e.g. "Client B-roll drop"), <strong>Project</strong>, <strong>Expires</strong> (default 7 days, or Never), <strong>Max uploads</strong> (optional, default unlimited), <strong>Password</strong> (optional), and the delivery spec to check against.</li>
|
||
<li>Copy the link and share it. The client sees "Drop files here", plus a password prompt if one was set.</li>
|
||
</ul>
|
||
<h3>Delivery specs</h3>
|
||
${img('11c-contribution-specs.png', 'Delivery specs — Broadcast default (EBU R128), 8 rules')}
|
||
<p>A spec defines what a client is asked to send ("What to send"), e.g. the shared <em>Broadcast default (EBU R128)</em> template with 8 rules, including a loudness target and tolerance. Specs can be created, edited and deleted.</p>
|
||
<h3>Received files</h3>
|
||
${img('11d-contribution-received.png', 'GamesTV link — 51 files received, each checked against spec')}
|
||
<ul>
|
||
<li>Each file shows its size and a spec verdict: <strong>MEETS SPEC</strong> or <strong>NEEDS REVIEW</strong> (with "What differs from the spec").</li>
|
||
<li>Per file: <strong>Accept</strong>, <strong>Reject</strong>, <strong>Check against spec</strong>.</li>
|
||
<li><strong>Inactive links:</strong> expired or turned-off links are kept in a collapsed list, along with the files already received.</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 — GamesTV on air')}
|
||
<p>Master control for 24/7 channels. These screenshots show the <strong>GamesTV</strong> channel live on air.</p>
|
||
<ul>
|
||
<li><strong>Header:</strong> channel selector, <strong>Channel</strong> (create), <strong>Overview</strong>, <strong>Schedule prep</strong>, ON AIR count and station clock.</li>
|
||
<li><strong>Readiness banner:</strong> warnings to clear before air, e.g. ad breaks that still hold the slate.</li>
|
||
<li><strong>On-air strip:</strong> timecode, current item, remaining time, next SCTE cue, and transport — Play, Pause, Next (cut to next item), Stop (channel stays on), Channel off. Pause is disabled while an ad break is on air.</li>
|
||
<li><strong>PGM monitor:</strong> live confidence picture of the channel output.</li>
|
||
<li><strong>Timeline:</strong> 24-hour strip with SCTE-104 cue, graphics and audio tracks.</li>
|
||
<li><strong>Media Bin:</strong> Clips, Breaks and Live inputs. <strong>Convert</strong> renders a new TAMS flow in the channel's format.</li>
|
||
<li><strong>Rundown:</strong> start, duration, time-of-day start/end, type and state (On Air, Next, Scheduled).</li>
|
||
</ul>
|
||
<p><strong>Caution:</strong> on a live channel, Next, Stop and Channel off affect air immediately.</p>
|
||
<h2>Live inputs</h2>
|
||
${img('16b-playout-live-inputs.png', 'Playout — Live SDI inputs')}
|
||
<p>SDI inputs that can be cued into the rundown. Only inputs on the channel's node are listed; others are hidden because SDI can only be cued locally.</p>
|
||
<h2>Overview</h2>
|
||
${img('16d-playout-overview.png', 'Playout — Multi-channel overview')}
|
||
<p>One card per channel with live program thumbnail, ON AIR state and output format.</p>
|
||
<h2>As-Run log</h2>
|
||
${img('16e-playout-asrun.png', 'Playout — As-Run log')}
|
||
<p>What actually went to air: time, clip, duration, result. Export as CSV or BXF for traffic reconciliation.</p>
|
||
<h2>Staging</h2>
|
||
${img('16g-playout-staging.png', 'Playout — Staging playlist (not on air)')}
|
||
<p><strong>Staging</strong> edits a non-air playlist without touching the live rundown; the program monitor and on-air strip keep running above it. Shown: a 60-item playlist, <em>Staging — Tomorrow</em>, built from GamesTV content.</p>
|
||
<ul>
|
||
<li>Pick an existing staged playlist or create a new one.</li>
|
||
<li>Fill it by dragging clips from the Media Bin, <strong>Search</strong>, <strong>Import CSV</strong>, or <strong>Paste list</strong>.</li>
|
||
<li><strong>Export CSV</strong> to share; <strong>Load onto channel</strong> puts it on air when ready.</li>
|
||
</ul>
|
||
<h2>Schedule prep</h2>
|
||
${img('16f-playout-schedule-prep.png', 'Playout — Schedule prep')}
|
||
<p>Offline drafting: pick a draft or create one with <strong>+ New day</strong>, then publish it to the channel.</p>
|
||
|
||
<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 & 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 & 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 & 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 & 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();
|
||
})();
|