feat(transcode): add hardware-accelerated video transcoding support (#352)

* feat(transcode): add hardware-accelerated video transcoding support

* feat(transcode): use encoder quality modes and source-capped maxrate for video transcode

* fix(transcode): scale max bitrate for downsampled preview framerates

* fix(transcode): propagate videoBitRate in getMediaInfoActivity and update auto description
This commit is contained in:
Yiling-J
2026-08-26 16:28:14 +08:00
committed by GitHub
parent 7b1428bf51
commit 8f55ba1d37
29 changed files with 1272 additions and 11 deletions
+4
View File
@@ -46,6 +46,7 @@ declare global {
// Team Settings
// ----------------------------------------------------------------------
export type VideoTranscodeStrategy = 'best_match' | 'all'
export type HardwareAcceleration = 'off' | 'auto'
// ----------------------------------------------------------------------
// Collection Filter
@@ -54,6 +55,7 @@ declare global {
export interface TranscodeSettings {
videoStrategy: VideoTranscodeStrategy
hardwareAcceleration?: HardwareAcceleration
}
export interface Settings {
@@ -103,6 +105,7 @@ declare global {
hasAudio: boolean
duration: number
bitRate: number
videoBitRate?: number
frameRate: number
totalFrames: number
startTimecode: string
@@ -290,6 +293,7 @@ declare global {
export interface TaskSpec {
videoStrategy?: VideoTranscodeStrategy
hardwareAcceleration?: HardwareAcceleration
thumbnail?: boolean
sprite?: boolean
poster?: boolean