av1 кодек

This commit is contained in:
2025-11-11 21:07:51 +03:00
parent b843bdf897
commit 2da2b584fa
9 changed files with 274 additions and 98 deletions

View File

@@ -1,3 +1,8 @@
/**
* Video codec type for encoding
*/
export type CodecType = 'av1' | 'h264' | 'dual';
/**
* Configuration options for DASH conversion
*/
@@ -17,6 +22,9 @@ export interface DashConvertOptions {
/** Custom resolution profiles as strings (e.g., ['360p', '480p', '720p@60']) */
customProfiles?: string[];
/** Video codec to use: 'av1', 'h264', or 'dual' for both (default: 'dual') */
codec?: CodecType;
/** Enable NVENC hardware acceleration (auto-detect if undefined) */
useNvenc?: boolean;
@@ -123,6 +131,9 @@ export interface DashConvertResult {
/** Whether NVENC was used */
usedNvenc: boolean;
/** Codec type used for encoding */
codecType: CodecType;
}
/**