feat(review): High quality playback switch and per-version ProRes download
Deploy / deploy (push) Successful in 3m23s
Deploy / deploy (push) Successful in 3m23s
Worker 1.7.0 (preview.highQuality, default on) now, after the AE render: - encodes a High quality MP4 from the delivery MOV (full-res H.264 High, CRF 14 capped at 100 Mbps) -> Version.hqFileUrl - uploads the MOV itself -> Version.highResKey/Filename/Size Both best-effort (the preview never fails over them), with a lease keep-alive during the long encode/uploads; the export timeline records what was attached. Player: HQ switch when a High quality source exists; keeps frame, play state, speed and zoom, remembered per browser, falls back to Standard if the file won't load. ProRes itself stays download-only (browser support). Downloads: the client portal's High Res button serves the version's ProRes (client-code filename), falling back to the shot's manual file; staff get a ProRes button on the review page. Housekeeping (lib/render-pipeline/high-res.ts): HQ MP4 + ProRes are kept while a version is latest, client-shared, approved or younger than preview.highResRetentionDays (14); otherwise deleted from storage. Runs per task after finalize and hourly from the reaper; deleting a version or a reslate removes its files. The Standard MP4 is never touched. Also: ProRes/Handles top-bar buttons go icon-only below lg so they don't overlap the version selector. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,18 @@ export const PIPELINE_CONFIG_DEFAULTS = {
|
||||
// names as a warning, so it is a config fix rather than a code change.
|
||||
"preview.slateScopeProp": "Scope",
|
||||
"preview.slateSubmissionProp": "Notes",
|
||||
/**
|
||||
* After the AE render, the worker also encodes a high-bitrate full-res MP4
|
||||
* from the delivery MOV (the player's "High" quality) and uploads the MOV
|
||||
* itself as the version's High Res download. Off = Standard MP4 only.
|
||||
*/
|
||||
"preview.highQuality": "true",
|
||||
/**
|
||||
* Housekeeping (lib/render-pipeline/high-res.ts): a version's High quality
|
||||
* MP4 and ProRes are removed from storage once it is this many days old and
|
||||
* nothing still needs them — not the latest, not shared, not approved.
|
||||
*/
|
||||
"preview.highResRetentionDays": 14,
|
||||
/**
|
||||
* When the dashboard starts calling something stuck. An export waiting on QC
|
||||
* is normal for a day and suspicious after two; an export in a live render
|
||||
@@ -79,7 +91,7 @@ export async function getConfigBoolean(key: PipelineConfigKey): Promise<boolean>
|
||||
export async function getPreviewConfig() {
|
||||
const [
|
||||
enabled, templateAep, templateComp, overlayComp, lutComp, movTemplate, mp4Template,
|
||||
slateScopeProp, slateSubmissionProp,
|
||||
slateScopeProp, slateSubmissionProp, highQuality,
|
||||
] = await Promise.all([
|
||||
getConfigBoolean("preview.enabled"),
|
||||
getConfigValue("preview.templateAep"),
|
||||
@@ -90,10 +102,11 @@ export async function getPreviewConfig() {
|
||||
getConfigValue("preview.mp4Template"),
|
||||
getConfigValue("preview.slateScopeProp"),
|
||||
getConfigValue("preview.slateSubmissionProp"),
|
||||
getConfigBoolean("preview.highQuality"),
|
||||
]);
|
||||
return {
|
||||
enabled, templateAep, templateComp, overlayComp, lutComp, movTemplate, mp4Template,
|
||||
slateScopeProp, slateSubmissionProp,
|
||||
slateScopeProp, slateSubmissionProp, highQuality,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user