You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performs conversion using pre-configured settings.
357
419
358
420
If you specify your own FFmpeg parameters using the <dfn>Robot</dfn>'s \`ffmpeg\` parameter and you have not specified a preset, then the default \`mp3\` preset is not applied. This is to prevent you from having to override each of the MP3 preset's values manually.
@@ -379,9 +441,8 @@ Height of the new video, in pixels.
379
441
If the value is not specified and the \`preset\` parameter is available, the \`preset\`'s [supplied height](/docs/transcoding/video-encoding/video-presets/) will be implemented.
380
442
`),
381
443
preset: z
382
-
.preprocess(
383
-
preprocessPreset,
384
-
z.enum([
444
+
.enum([
445
+
...createPresets([
385
446
'android-high',
386
447
'android-low',
387
448
'android',
@@ -461,9 +522,10 @@ If the value is not specified and the \`preset\` parameter is available, the \`p
461
522
'webm-1080p',
462
523
'webm',
463
524
'wmv',
464
-
...audioPresets,
465
525
]),
466
-
)
526
+
...audioPresets,
527
+
])
528
+
.transform(transformPreset)
467
529
.optional().describe(`
468
530
Converts a video according to [pre-configured settings](/docs/transcoding/video-encoding/video-presets/).
469
531
@@ -834,3 +896,58 @@ While we recommend to use <dfn>Template Credentials</dfn> at all times, some use
z.literal('==').describe('Equals without type check'),
915
+
z.literal('===').describe('Strict equals with type check'),
916
+
z.literal('<').describe('Less than'),
917
+
z.literal('>').describe('Greater than'),
918
+
z.literal('<=').describe('Less or equal'),
919
+
z.literal('>=').describe('Greater or equal'),
920
+
z.literal('!=').describe('Simple inequality check without type check'),
921
+
z.literal('!==').describe('Strict inequality check with type check'),
922
+
z
923
+
.literal('regex')
924
+
.describe(
925
+
'Case-insensitive regular expression based on [RE2](https://github.com/google/re2) `.match()`',
926
+
),
927
+
z
928
+
.literal('!regex')
929
+
.describe(
930
+
'Case-insensitive regular expression based on [RE2](https://github.com/google/re2) `!.match()`',
931
+
),
932
+
z
933
+
.literal('includes')
934
+
.describe(
935
+
'Check if the right element is included in the array, which is represented by the left element',
936
+
),
937
+
z
938
+
.literal('empty')
939
+
.describe(
940
+
'Check if the left element is an empty array, an object without properties, an empty string, the number zero or the boolean false. Leave the third element of the array to be an empty string. It won’t be evaluated.',
941
+
),
942
+
z
943
+
.literal('!empty')
944
+
.describe(
945
+
'Check if the left element is an array with members, an object with at least one property, a non-empty string, a number that does not equal zero or the boolean true. Leave the third element of the array to be an empty string. It won’t be evaluated.',
As indicated, we charge for this via [🤖/script/run](/docs/transcoding/code-evaluation/script-run/). See also [Dynamic Evaluation](/docs/topics/dynamic-evaluation/) for more details on allowed syntax and behavior.
0 commit comments