mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
api/schema: add youtubeVideoContainer
This commit is contained in:
parent
4da95e0a2b
commit
2396462c5c
@ -26,6 +26,10 @@ export const apiSchema = z.object({
|
||||
["h264", "av1", "vp9"]
|
||||
).default("h264"),
|
||||
|
||||
youtubeVideoContainer: z.enum(
|
||||
["auto", "mp4", "webm", "mkv"]
|
||||
).default("auto"),
|
||||
|
||||
videoQuality: z.enum(
|
||||
["max", "4320", "2160", "1440", "1080", "720", "480", "360", "240", "144"]
|
||||
).default("1080"),
|
||||
|
@ -82,8 +82,9 @@ all keys except for `url` are optional. value options are separated by `/`.
|
||||
|
||||
#### service-specific options
|
||||
| key | type | description/value | default |
|
||||
|:-----------------------|:----------|:--------------------------------------------------|:--------|
|
||||
|:------------------------|:----------|:--------------------------------------------------|:--------|
|
||||
| `youtubeVideoCodec` | `string` | `h264 / av1 / vp9` | `h264` |
|
||||
| `youtubeVideoContainer` | `string` | `auto / mp4 / webm / mkv` | `auto` |
|
||||
| `youtubeDubLang` | `string` | any valid language code, such as: `en` or `zh-CN` | *none* |
|
||||
| `convertGif` | `boolean` | convert twitter gifs to the actual GIF format | `true` |
|
||||
| `allowH265` | `boolean` | allow H265/HEVC videos from tiktok/xiaohongshu | `false` |
|
||||
|
Loading…
Reference in New Issue
Block a user