Skip to content

best way to save what you love

api/schema: add youtubeVideoContainer

wukko2396462c5c06
diff --git a/api/src/processing/schema.js b/api/src/processing/schema.js
index 701e2df5..ee77ade2 100644
--- a/api/src/processing/schema.js
+++ b/api/src/processing/schema.js
@@ -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"),
diff --git a/docs/api.md b/docs/api.md
index f093e148..cad02519 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -81,15 +81,16 @@ all keys except for `url` are optional. value options are separated by `/`.
| `localProcessing` | `boolean` | remux/transcode files locally instead of the server | `false` |
#### service-specific options
-| key | type | description/value | default |
-|:-----------------------|:----------|:--------------------------------------------------|:--------|
-| `youtubeVideoCodec` | `string` | `h264 / av1 / vp9` | `h264` |
-| `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` |
-| `tiktokFullAudio` | `boolean` | download the original sound used in a video | `false` |
-| `youtubeBetterAudio` | `boolean` | prefer higher quality youtube audio if possible | `false` |
-| `youtubeHLS` | `boolean` | use HLS formats when downloading from youtube | `false` |
+| 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` |
+| `tiktokFullAudio` | `boolean` | download the original sound used in a video | `false` |
+| `youtubeBetterAudio` | `boolean` | prefer higher quality youtube audio if possible | `false` |
+| `youtubeHLS` | `boolean` | use HLS formats when downloading from youtube | `false` |
### response
body type: `application/json`