mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(server): accepted video containers (#11274)
* add accepted container config * update api * mp4 option makes no sense * add to transcoding settings * wording * updated spec config * formatting
This commit is contained in:
parent
7ecdcb3bc0
commit
9d2d556200
16 changed files with 234 additions and 30 deletions
|
|
@ -10691,6 +10691,12 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"acceptedContainers": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/VideoContainer"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"acceptedVideoCodecs": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/VideoCodec"
|
||||
|
|
@ -10762,6 +10768,7 @@
|
|||
"accel",
|
||||
"accelDecode",
|
||||
"acceptedAudioCodecs",
|
||||
"acceptedContainers",
|
||||
"acceptedVideoCodecs",
|
||||
"bframes",
|
||||
"cqMode",
|
||||
|
|
@ -11847,6 +11854,15 @@
|
|||
"av1"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"VideoContainer": {
|
||||
"enum": [
|
||||
"mov",
|
||||
"mp4",
|
||||
"ogg",
|
||||
"webm"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -960,6 +960,7 @@ export type SystemConfigFFmpegDto = {
|
|||
accel: TranscodeHWAccel;
|
||||
accelDecode: boolean;
|
||||
acceptedAudioCodecs: AudioCodec[];
|
||||
acceptedContainers: VideoContainer[];
|
||||
acceptedVideoCodecs: VideoCodec[];
|
||||
bframes: number;
|
||||
cqMode: CQMode;
|
||||
|
|
@ -3178,6 +3179,12 @@ export enum AudioCodec {
|
|||
Aac = "aac",
|
||||
Libopus = "libopus"
|
||||
}
|
||||
export enum VideoContainer {
|
||||
Mov = "mov",
|
||||
Mp4 = "mp4",
|
||||
Ogg = "ogg",
|
||||
Webm = "webm"
|
||||
}
|
||||
export enum VideoCodec {
|
||||
H264 = "h264",
|
||||
Hevc = "hevc",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue