mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
feat(engine): render sets a keyframe interval and a peak bitrate cap (#6444)
* feat(engine): encoders cap peak bitrate and place keyframes on a set interval * style(engine): shorten the rate-cap comment * style(engine): drop the doc lines the comment ratchet flagged * feat(producer): mp4 renders honour a keyframe interval and a peak bitrate cap on every encoder path * style(producer): shorten the delivery encoder file headers * style(producer): drop a comment line from the segment manifest * style(producer): shorten the integration test header * test: delivery encoder tests follow the ffprobe argv contract and run in the integration lane * feat: the render request, server and Lambda plan carry the keyframe interval and peak bitrate cap * fix(studio): the Studio render route passes the keyframe interval and bitrate cap to the encoder * chore(studio-server): drop a comment the helper's name already says * feat(cli): render and lambda render take --keyframe-interval, --max-bitrate and --buffer-size
This commit is contained in:
@@ -13,6 +13,7 @@ import type {
|
||||
} from "@hyperframes/aws-lambda/sdk";
|
||||
import type { CanvasResolution, DistributedFps } from "@hyperframes/core";
|
||||
import { c } from "../../ui/colors.js";
|
||||
import type { DeliveryFlagValues } from "../../utils/deliveryFlags.js";
|
||||
import {
|
||||
reportVariableIssues,
|
||||
resolveVariablesArg,
|
||||
@@ -27,7 +28,7 @@ async function loadSDK(): Promise<typeof import("@hyperframes/aws-lambda/sdk")>
|
||||
return import("@hyperframes/aws-lambda/sdk");
|
||||
}
|
||||
|
||||
export interface RenderArgs {
|
||||
export interface RenderArgs extends DeliveryFlagValues {
|
||||
projectDir: string;
|
||||
stackName: string;
|
||||
siteId?: string;
|
||||
@@ -255,6 +256,9 @@ export function buildLambdaRenderConfig(
|
||||
chunkSize: args.chunkSize,
|
||||
maxParallelChunks: args.maxParallelChunks,
|
||||
targetChunkFrames: args.targetChunkFrames,
|
||||
keyframeIntervalSeconds: args.keyframeIntervalSeconds,
|
||||
maxBitrate: args.maxBitrate,
|
||||
bufferSize: args.bufferSize,
|
||||
workerConcurrency,
|
||||
runtimeCap: "lambda",
|
||||
variables,
|
||||
|
||||
Reference in New Issue
Block a user