This commit is contained in:
2025-11-09 10:40:35 +03:00
parent 3086d6907c
commit 8c61e0e9db
6 changed files with 352 additions and 27 deletions

View File

@@ -14,6 +14,9 @@ export interface DashConvertOptions {
/** Video quality profiles to generate */
profiles?: VideoProfile[];
/** Custom resolution profiles as strings (e.g., ['360p', '480p', '720p@60']) */
customProfiles?: string[];
/** Enable NVENC hardware acceleration (auto-detect if undefined) */
useNvenc?: boolean;
@@ -23,6 +26,12 @@ export interface DashConvertOptions {
/** Thumbnail sprite configuration */
thumbnailConfig?: ThumbnailConfig;
/** Generate poster image (default: true) */
generatePoster?: boolean;
/** Poster timecode in format HH:MM:SS or seconds (default: 00:00:01) */
posterTimecode?: string;
/** Parallel encoding (default: true) */
parallel?: boolean;
@@ -103,6 +112,9 @@ export interface DashConvertResult {
/** Path to thumbnail VTT file (if generated) */
thumbnailVttPath?: string;
/** Path to poster image (if generated) */
posterPath?: string;
/** Video duration in seconds */
duration: number;