Skip to content

Commit a8855b8

Browse files
committed
chore(aws-lambda): shorten comments over the line limit
1 parent 2ede167 commit a8855b8

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

‎packages/aws-lambda/src/sdk/deploySite.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ async function storeAudioSidecars(
234234
}
235235

236236
/**
237-
* Each video's ffprobe JSON, stored beside it, so a render reads a few kilobytes instead of probing the video over the network.
237+
* Each video's ffprobe JSON, stored beside it, so a render reads kilobytes instead of probing the video.
238238
* Optional: a machine without ffprobe leaves the site as it was, and renders probe the video.
239239
*/
240240
async function storeProbeFacts(

‎packages/engine/src/services/videoFrameExtractor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function exactSourceRate(probed: number): number | null {
215215
);
216216
}
217217

218-
/** The slots of a constant-rate window that reach the source's end holding a frame, from the stored final-frame time; null when not certain (callers decode the tail). */
218+
/** Slots of a window reaching the source's end that hold a frame, from the stored final frame; null if unsure. */
219219
export function tailFramesFromFinalFrame(input: {
220220
startTime: number;
221221
firstFrame: number;

‎packages/engine/src/utils/ffprobe.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export function readProbeJson(filePath: string, signal?: AbortSignal): Promise<s
453453
);
454454
}
455455

456-
/** What a site stores beside a video: its ffprobe JSON and the final-frame timestamp a plan would otherwise probe for. */
456+
/** What a site stores beside a video: its ffprobe JSON and the final-frame facts a plan would otherwise probe for. */
457457
export async function buildProbeFactsText(filePath: string, signal?: AbortSignal): Promise<string> {
458458
const facts: StoredProbeFacts = {
459459
ffprobe: parseProbeJson(await runFfprobe(filePath, PROBE_JSON_ARGS, signal)),
@@ -949,7 +949,7 @@ function resolveStreamWindow(
949949
return { videoStreamStartSeconds, videoStreamDurationSeconds, cacheKey };
950950
}
951951

952-
/** The final-frame facts a site stored beside the video for this stream window; none when nothing is declared (no await then, so a probe spawns at once). */
952+
/** Stored final-frame facts for this stream window; none if undeclared (no await then, so a probe spawns at once). */
953953
export function readStoredFinalFrame(
954954
filePath: string,
955955
metadata: Pick<VideoMetadata, "videoStreamDurationSeconds" | "videoStreamStartSeconds">,

‎packages/producer/src/services/distributed/renderChunk.ts‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -870,13 +870,9 @@ export async function renderChunk(
870870

871871
const isPngSequence = plan.dimensions.format === "png-sequence";
872872
outputKind = isPngSequence ? "frame-dir" : "file";
873-
// For mp4 / mov / webm we use the standard preset machinery; the
874-
// locked encoder values come from the plan's encoder metadata and the
875-
// `lockGopForChunkConcat` toggle is the only Phase-2 flag that flips
876-
// on at this site. png-sequence has no encoder, but `runEncodeStage`
877-
// still reads `preset.quality` for bookkeeping (it never reaches
878-
// ffmpeg on the pngseq branch). Fall back to the mp4 preset shape —
879-
// same trick `renderOrchestrator` plays.
873+
// mp4 / mov / webm use the standard preset machinery; locked encoder values come from the plan's
874+
// encoder metadata. png-sequence has no encoder, but `runEncodeStage` still reads `preset.quality`,
875+
// so fall back to the mp4 preset shape, as `renderOrchestrator` does.
880876
const presetFormat: "mp4" | "mov" | "webm" = isPngSequence
881877
? "mp4"
882878
: (plan.dimensions.format as "mp4" | "mov" | "webm");

0 commit comments

Comments
 (0)