@remotion/renderer 4.0.508 → 4.0.509
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +16 -0
- package/dist/esm/client.mjs +602 -564
- package/dist/options/experimental-keep-audio-context-alive.d.ts +16 -0
- package/dist/options/experimental-keep-audio-context-alive.js +32 -0
- package/dist/options/index.d.ts +16 -0
- package/dist/options/index.js +2 -0
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -1926,23 +1926,60 @@ var everyNthFrameOption = {
|
|
|
1926
1926
|
id: cliFlag31
|
|
1927
1927
|
};
|
|
1928
1928
|
|
|
1929
|
-
// src/options/
|
|
1929
|
+
// src/options/experimental-keep-audio-context-alive.tsx
|
|
1930
1930
|
import { jsx as jsx29, jsxs as jsxs21, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
1931
|
+
var experimentalKeepAudioContextAlive = false;
|
|
1932
|
+
var cliFlag32 = "experimental-keep-audio-context-alive";
|
|
1933
|
+
var experimentalKeepAudioContextAliveOption = {
|
|
1934
|
+
name: "Keep AudioContext alive (experimental)",
|
|
1935
|
+
cliFlag: cliFlag32,
|
|
1936
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment29, {
|
|
1937
|
+
children: [
|
|
1938
|
+
"Keeps the shared ",
|
|
1939
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1940
|
+
children: "AudioContext"
|
|
1941
|
+
}),
|
|
1942
|
+
" running while the Remotion Studio is paused."
|
|
1943
|
+
]
|
|
1944
|
+
}),
|
|
1945
|
+
ssrName: null,
|
|
1946
|
+
docLink: "https://www.remotion.dev/docs/config#setexperimentalkeepaudiocontextalive",
|
|
1947
|
+
type: false,
|
|
1948
|
+
getValue: ({ commandLine }) => {
|
|
1949
|
+
if (commandLine[cliFlag32] !== undefined && commandLine[cliFlag32] !== null) {
|
|
1950
|
+
return {
|
|
1951
|
+
value: commandLine[cliFlag32],
|
|
1952
|
+
source: "cli"
|
|
1953
|
+
};
|
|
1954
|
+
}
|
|
1955
|
+
return {
|
|
1956
|
+
value: experimentalKeepAudioContextAlive,
|
|
1957
|
+
source: "config"
|
|
1958
|
+
};
|
|
1959
|
+
},
|
|
1960
|
+
setConfig(value) {
|
|
1961
|
+
experimentalKeepAudioContextAlive = value;
|
|
1962
|
+
},
|
|
1963
|
+
id: cliFlag32
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
// src/options/folder-expiry.tsx
|
|
1967
|
+
import { jsx as jsx30, jsxs as jsxs22, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
1931
1968
|
var enableFolderExpiry = null;
|
|
1932
|
-
var
|
|
1969
|
+
var cliFlag33 = "enable-folder-expiry";
|
|
1933
1970
|
var folderExpiryOption = {
|
|
1934
1971
|
name: "Lambda render expiration",
|
|
1935
|
-
cliFlag:
|
|
1972
|
+
cliFlag: cliFlag33,
|
|
1936
1973
|
description: () => {
|
|
1937
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ jsxs22(Fragment30, {
|
|
1938
1975
|
children: [
|
|
1939
1976
|
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
|
|
1940
1977
|
" ",
|
|
1941
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ jsx30("code", {
|
|
1942
1979
|
children: "null"
|
|
1943
1980
|
}),
|
|
1944
1981
|
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
1945
|
-
/* @__PURE__ */
|
|
1982
|
+
/* @__PURE__ */ jsx30("a", {
|
|
1946
1983
|
href: "/docs/lambda/autodelete",
|
|
1947
1984
|
children: "Lambda autodelete"
|
|
1948
1985
|
}),
|
|
@@ -1954,10 +1991,10 @@ var folderExpiryOption = {
|
|
|
1954
1991
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1955
1992
|
type: false,
|
|
1956
1993
|
getValue: ({ commandLine }) => {
|
|
1957
|
-
if (commandLine[
|
|
1994
|
+
if (commandLine[cliFlag33] !== undefined) {
|
|
1958
1995
|
return {
|
|
1959
1996
|
source: "cli",
|
|
1960
|
-
value: commandLine[
|
|
1997
|
+
value: commandLine[cliFlag33]
|
|
1961
1998
|
};
|
|
1962
1999
|
}
|
|
1963
2000
|
if (enableFolderExpiry !== null) {
|
|
@@ -1974,28 +2011,28 @@ var folderExpiryOption = {
|
|
|
1974
2011
|
setConfig: (value) => {
|
|
1975
2012
|
enableFolderExpiry = value;
|
|
1976
2013
|
},
|
|
1977
|
-
id:
|
|
2014
|
+
id: cliFlag33
|
|
1978
2015
|
};
|
|
1979
2016
|
|
|
1980
2017
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
1981
|
-
import { jsx as
|
|
2018
|
+
import { jsx as jsx31, jsxs as jsxs23, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
1982
2019
|
var DEFAULT3 = false;
|
|
1983
2020
|
var forSeamlessAacConcatenation = DEFAULT3;
|
|
1984
|
-
var
|
|
2021
|
+
var cliFlag34 = "for-seamless-aac-concatenation";
|
|
1985
2022
|
var forSeamlessAacConcatenationOption = {
|
|
1986
2023
|
name: "For seamless AAC concatenation",
|
|
1987
|
-
cliFlag:
|
|
1988
|
-
description: () => /* @__PURE__ */
|
|
2024
|
+
cliFlag: cliFlag34,
|
|
2025
|
+
description: () => /* @__PURE__ */ jsxs23(Fragment31, {
|
|
1989
2026
|
children: [
|
|
1990
2027
|
"If enabled, the audio is trimmed to the nearest AAC frame, which is required for seamless concatenation of AAC files. This is a requirement if you later want to combine multiple video snippets seamlessly.",
|
|
1991
|
-
/* @__PURE__ */
|
|
1992
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx31("br", {}),
|
|
2029
|
+
/* @__PURE__ */ jsx31("br", {}),
|
|
1993
2030
|
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
|
|
1994
2031
|
]
|
|
1995
2032
|
}),
|
|
1996
2033
|
docLink: "https://remotion.dev/docs/renderer",
|
|
1997
2034
|
getValue: ({ commandLine }) => {
|
|
1998
|
-
if (commandLine[
|
|
2035
|
+
if (commandLine[cliFlag34]) {
|
|
1999
2036
|
return {
|
|
2000
2037
|
source: "cli",
|
|
2001
2038
|
value: true
|
|
@@ -2017,26 +2054,26 @@ var forSeamlessAacConcatenationOption = {
|
|
|
2017
2054
|
},
|
|
2018
2055
|
ssrName: "forSeamlessAacConcatenation",
|
|
2019
2056
|
type: false,
|
|
2020
|
-
id:
|
|
2057
|
+
id: cliFlag34
|
|
2021
2058
|
};
|
|
2022
2059
|
|
|
2023
2060
|
// src/options/force-new-studio.tsx
|
|
2024
|
-
import { jsx as
|
|
2061
|
+
import { jsx as jsx32, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2025
2062
|
var forceNewEnabled = false;
|
|
2026
|
-
var
|
|
2063
|
+
var cliFlag35 = "force-new";
|
|
2027
2064
|
var forceNewStudioOption = {
|
|
2028
2065
|
name: "Force New Studio",
|
|
2029
|
-
cliFlag:
|
|
2030
|
-
description: () => /* @__PURE__ */
|
|
2066
|
+
cliFlag: cliFlag35,
|
|
2067
|
+
description: () => /* @__PURE__ */ jsx32(Fragment32, {
|
|
2031
2068
|
children: "Forces starting a new Studio instance even if one is already running on the same port for the same project."
|
|
2032
2069
|
}),
|
|
2033
2070
|
ssrName: null,
|
|
2034
2071
|
docLink: "https://www.remotion.dev/docs/config#setforcenewstudioenabled",
|
|
2035
2072
|
type: false,
|
|
2036
2073
|
getValue: ({ commandLine }) => {
|
|
2037
|
-
if (commandLine[
|
|
2074
|
+
if (commandLine[cliFlag35] !== undefined && commandLine[cliFlag35] !== null) {
|
|
2038
2075
|
return {
|
|
2039
|
-
value: commandLine[
|
|
2076
|
+
value: commandLine[cliFlag35],
|
|
2040
2077
|
source: "cli"
|
|
2041
2078
|
};
|
|
2042
2079
|
}
|
|
@@ -2048,7 +2085,7 @@ var forceNewStudioOption = {
|
|
|
2048
2085
|
setConfig(value) {
|
|
2049
2086
|
forceNewEnabled = value;
|
|
2050
2087
|
},
|
|
2051
|
-
id:
|
|
2088
|
+
id: cliFlag35
|
|
2052
2089
|
};
|
|
2053
2090
|
|
|
2054
2091
|
// src/frame-range.ts
|
|
@@ -2167,8 +2204,8 @@ var validateSelectedFrames = ({
|
|
|
2167
2204
|
};
|
|
2168
2205
|
|
|
2169
2206
|
// src/options/frames.tsx
|
|
2170
|
-
import { jsx as
|
|
2171
|
-
var
|
|
2207
|
+
import { jsx as jsx33, jsxs as jsxs24, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2208
|
+
var cliFlag36 = "frames";
|
|
2172
2209
|
var frameSelection = null;
|
|
2173
2210
|
var parseFrameRangeFromCli = (newFrameRange) => {
|
|
2174
2211
|
if (typeof newFrameRange === "number") {
|
|
@@ -2245,16 +2282,16 @@ var parseFrameRangeFromCli = (newFrameRange) => {
|
|
|
2245
2282
|
};
|
|
2246
2283
|
var framesOption = {
|
|
2247
2284
|
name: "Frame Range",
|
|
2248
|
-
cliFlag:
|
|
2249
|
-
description: () => /* @__PURE__ */
|
|
2285
|
+
cliFlag: cliFlag36,
|
|
2286
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment33, {
|
|
2250
2287
|
children: [
|
|
2251
2288
|
"Render a subset of a video. Pass a single number to render a still, or a range (e.g. ",
|
|
2252
|
-
/* @__PURE__ */
|
|
2289
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2253
2290
|
children: "0-9"
|
|
2254
2291
|
}),
|
|
2255
2292
|
") to render a subset of frames. Pass",
|
|
2256
2293
|
" ",
|
|
2257
|
-
/* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2258
2295
|
children: "100-"
|
|
2259
2296
|
}),
|
|
2260
2297
|
" to render from frame 100 to the end."
|
|
@@ -2264,8 +2301,8 @@ var framesOption = {
|
|
|
2264
2301
|
docLink: "https://www.remotion.dev/docs/config#setframerange",
|
|
2265
2302
|
type: null,
|
|
2266
2303
|
getValue: ({ commandLine }) => {
|
|
2267
|
-
if (commandLine[
|
|
2268
|
-
const value = parseFrameRangeFromCli(commandLine[
|
|
2304
|
+
if (commandLine[cliFlag36] !== undefined) {
|
|
2305
|
+
const value = parseFrameRangeFromCli(commandLine[cliFlag36]);
|
|
2269
2306
|
if (typeof value === "object" && !Array.isArray(value)) {
|
|
2270
2307
|
validateSelectedFrames({
|
|
2271
2308
|
frames: value.frames,
|
|
@@ -2292,12 +2329,12 @@ var framesOption = {
|
|
|
2292
2329
|
}
|
|
2293
2330
|
frameSelection = value;
|
|
2294
2331
|
},
|
|
2295
|
-
id:
|
|
2332
|
+
id: cliFlag36
|
|
2296
2333
|
};
|
|
2297
2334
|
|
|
2298
2335
|
// src/options/gl.tsx
|
|
2299
2336
|
import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
|
|
2300
|
-
import { jsx as
|
|
2337
|
+
import { jsx as jsx34, jsxs as jsxs25, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2301
2338
|
var validOpenGlRenderers = [
|
|
2302
2339
|
"swangle",
|
|
2303
2340
|
"angle",
|
|
@@ -2312,42 +2349,42 @@ var getDefaultOpenGlRenderer = (enableV5BreakingChanges) => {
|
|
|
2312
2349
|
var DEFAULT_OPENGL_RENDERER = getDefaultOpenGlRenderer(NoReactInternals2.ENABLE_V5_BREAKING_CHANGES);
|
|
2313
2350
|
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
|
|
2314
2351
|
var AngleChangelog = () => {
|
|
2315
|
-
return /* @__PURE__ */
|
|
2352
|
+
return /* @__PURE__ */ jsxs25("details", {
|
|
2316
2353
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
2317
2354
|
children: [
|
|
2318
|
-
/* @__PURE__ */
|
|
2355
|
+
/* @__PURE__ */ jsx34("summary", {
|
|
2319
2356
|
children: "Changelog"
|
|
2320
2357
|
}),
|
|
2321
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ jsxs25("ul", {
|
|
2322
2359
|
children: [
|
|
2323
|
-
/* @__PURE__ */
|
|
2360
|
+
/* @__PURE__ */ jsxs25("li", {
|
|
2324
2361
|
children: [
|
|
2325
2362
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
2326
2363
|
" ",
|
|
2327
|
-
/* @__PURE__ */
|
|
2364
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2328
2365
|
children: "swiftshader"
|
|
2329
2366
|
}),
|
|
2330
2367
|
", but from v3.0.8 the default is",
|
|
2331
2368
|
" ",
|
|
2332
|
-
/* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2333
2370
|
children: "swangle"
|
|
2334
2371
|
}),
|
|
2335
2372
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
2336
2373
|
]
|
|
2337
2374
|
}),
|
|
2338
|
-
/* @__PURE__ */
|
|
2375
|
+
/* @__PURE__ */ jsxs25("li", {
|
|
2339
2376
|
children: [
|
|
2340
2377
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
2341
|
-
/* @__PURE__ */
|
|
2378
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2342
2379
|
children: "angle"
|
|
2343
2380
|
}),
|
|
2344
2381
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
2345
2382
|
]
|
|
2346
2383
|
}),
|
|
2347
|
-
NoReactInternals2.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */
|
|
2384
|
+
NoReactInternals2.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs25("li", {
|
|
2348
2385
|
children: [
|
|
2349
2386
|
"From Remotion v5.0, the default is ",
|
|
2350
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2351
2388
|
children: "angle"
|
|
2352
2389
|
}),
|
|
2353
2390
|
". If no compatible GPU is available, Chromium automatically falls back to SwiftShader."
|
|
@@ -2358,65 +2395,65 @@ var AngleChangelog = () => {
|
|
|
2358
2395
|
]
|
|
2359
2396
|
});
|
|
2360
2397
|
};
|
|
2361
|
-
var
|
|
2398
|
+
var cliFlag37 = "gl";
|
|
2362
2399
|
var glOption = {
|
|
2363
|
-
cliFlag:
|
|
2400
|
+
cliFlag: cliFlag37,
|
|
2364
2401
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
2365
2402
|
name: "OpenGL renderer",
|
|
2366
2403
|
type: "angle",
|
|
2367
2404
|
ssrName: "gl",
|
|
2368
2405
|
description: () => {
|
|
2369
|
-
return /* @__PURE__ */
|
|
2406
|
+
return /* @__PURE__ */ jsxs25(Fragment34, {
|
|
2370
2407
|
children: [
|
|
2371
|
-
/* @__PURE__ */
|
|
2372
|
-
/* @__PURE__ */
|
|
2408
|
+
/* @__PURE__ */ jsx34(AngleChangelog, {}),
|
|
2409
|
+
/* @__PURE__ */ jsxs25("p", {
|
|
2373
2410
|
children: [
|
|
2374
2411
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
2375
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ jsx34("br", {}),
|
|
2376
2413
|
"Accepted values:"
|
|
2377
2414
|
]
|
|
2378
2415
|
}),
|
|
2379
|
-
/* @__PURE__ */
|
|
2416
|
+
/* @__PURE__ */ jsxs25("ul", {
|
|
2380
2417
|
children: [
|
|
2381
|
-
/* @__PURE__ */
|
|
2382
|
-
children: /* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ jsx34("li", {
|
|
2419
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2383
2420
|
children: '"angle"'
|
|
2384
2421
|
})
|
|
2385
2422
|
}),
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
children: /* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ jsx34("li", {
|
|
2424
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2388
2425
|
children: '"egl"'
|
|
2389
2426
|
})
|
|
2390
2427
|
}),
|
|
2391
|
-
/* @__PURE__ */
|
|
2392
|
-
children: /* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ jsx34("li", {
|
|
2429
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2393
2430
|
children: '"swiftshader"'
|
|
2394
2431
|
})
|
|
2395
2432
|
}),
|
|
2396
|
-
/* @__PURE__ */
|
|
2397
|
-
children: /* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ jsx34("li", {
|
|
2434
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2398
2435
|
children: '"swangle"'
|
|
2399
2436
|
})
|
|
2400
2437
|
}),
|
|
2401
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsxs25("li", {
|
|
2402
2439
|
children: [
|
|
2403
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2404
2441
|
children: '"vulkan"'
|
|
2405
2442
|
}),
|
|
2406
2443
|
" (",
|
|
2407
|
-
/* @__PURE__ */
|
|
2444
|
+
/* @__PURE__ */ jsx34("em", {
|
|
2408
2445
|
children: "from Remotion v4.0.41"
|
|
2409
2446
|
}),
|
|
2410
2447
|
")"
|
|
2411
2448
|
]
|
|
2412
2449
|
}),
|
|
2413
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsxs25("li", {
|
|
2414
2451
|
children: [
|
|
2415
|
-
/* @__PURE__ */
|
|
2452
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2416
2453
|
children: '"angle-egl"'
|
|
2417
2454
|
}),
|
|
2418
2455
|
" (",
|
|
2419
|
-
/* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ jsx34("em", {
|
|
2420
2457
|
children: "from Remotion v4.0.51"
|
|
2421
2458
|
}),
|
|
2422
2459
|
")"
|
|
@@ -2424,16 +2461,16 @@ var glOption = {
|
|
|
2424
2461
|
})
|
|
2425
2462
|
]
|
|
2426
2463
|
}),
|
|
2427
|
-
/* @__PURE__ */
|
|
2464
|
+
/* @__PURE__ */ jsxs25("p", {
|
|
2428
2465
|
children: [
|
|
2429
2466
|
"The default is",
|
|
2430
2467
|
" ",
|
|
2431
|
-
/* @__PURE__ */
|
|
2468
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2432
2469
|
children: DEFAULT_OPENGL_RENDERER === null ? "null" : `"${DEFAULT_OPENGL_RENDERER}"`
|
|
2433
2470
|
}),
|
|
2434
2471
|
DEFAULT_OPENGL_RENDERER === null ? ", letting Chrome decide" : ", with automatic fallback to SwiftShader if no compatible GPU is available",
|
|
2435
2472
|
", except on Lambda where the default is ",
|
|
2436
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2437
2474
|
children: '"swangle"'
|
|
2438
2475
|
})
|
|
2439
2476
|
]
|
|
@@ -2442,10 +2479,10 @@ var glOption = {
|
|
|
2442
2479
|
});
|
|
2443
2480
|
},
|
|
2444
2481
|
getValue: ({ commandLine }) => {
|
|
2445
|
-
if (commandLine[
|
|
2446
|
-
validateOpenGlRenderer(commandLine[
|
|
2482
|
+
if (commandLine[cliFlag37]) {
|
|
2483
|
+
validateOpenGlRenderer(commandLine[cliFlag37]);
|
|
2447
2484
|
return {
|
|
2448
|
-
value: commandLine[
|
|
2485
|
+
value: commandLine[cliFlag37],
|
|
2449
2486
|
source: "cli"
|
|
2450
2487
|
};
|
|
2451
2488
|
}
|
|
@@ -2464,7 +2501,7 @@ var glOption = {
|
|
|
2464
2501
|
validateOpenGlRenderer(value);
|
|
2465
2502
|
openGlRenderer = value;
|
|
2466
2503
|
},
|
|
2467
|
-
id:
|
|
2504
|
+
id: cliFlag37
|
|
2468
2505
|
};
|
|
2469
2506
|
var validateOpenGlRenderer = (option2) => {
|
|
2470
2507
|
if (option2 === null) {
|
|
@@ -2477,7 +2514,7 @@ var validateOpenGlRenderer = (option2) => {
|
|
|
2477
2514
|
};
|
|
2478
2515
|
|
|
2479
2516
|
// src/options/gop-size.tsx
|
|
2480
|
-
import { jsx as
|
|
2517
|
+
import { jsx as jsx35, jsxs as jsxs26, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2481
2518
|
var gopSize = null;
|
|
2482
2519
|
var validateGopSize = (value) => {
|
|
2483
2520
|
if (value === null) {
|
|
@@ -2487,14 +2524,14 @@ var validateGopSize = (value) => {
|
|
|
2487
2524
|
throw new TypeError("The GOP size must be an integer greater than 0 or null.");
|
|
2488
2525
|
}
|
|
2489
2526
|
};
|
|
2490
|
-
var
|
|
2527
|
+
var cliFlag38 = "gop";
|
|
2491
2528
|
var gopSizeOption = {
|
|
2492
2529
|
name: "GOP size",
|
|
2493
|
-
cliFlag:
|
|
2494
|
-
description: () => /* @__PURE__ */
|
|
2530
|
+
cliFlag: cliFlag38,
|
|
2531
|
+
description: () => /* @__PURE__ */ jsxs26(Fragment35, {
|
|
2495
2532
|
children: [
|
|
2496
2533
|
"Set the maximum number of frames between two keyframes. This maps to FFmpeg's ",
|
|
2497
|
-
/* @__PURE__ */
|
|
2534
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2498
2535
|
children: "-g"
|
|
2499
2536
|
}),
|
|
2500
2537
|
" option. Default: Let the encoder decide."
|
|
@@ -2504,7 +2541,7 @@ var gopSizeOption = {
|
|
|
2504
2541
|
docLink: "https://www.remotion.dev/docs/config#setgopsize",
|
|
2505
2542
|
type: null,
|
|
2506
2543
|
getValue: ({ commandLine }) => {
|
|
2507
|
-
const value = commandLine[
|
|
2544
|
+
const value = commandLine[cliFlag38];
|
|
2508
2545
|
if (value !== undefined) {
|
|
2509
2546
|
validateGopSize(value);
|
|
2510
2547
|
return { value, source: "cli" };
|
|
@@ -2515,7 +2552,7 @@ var gopSizeOption = {
|
|
|
2515
2552
|
validateGopSize(value);
|
|
2516
2553
|
gopSize = value;
|
|
2517
2554
|
},
|
|
2518
|
-
id:
|
|
2555
|
+
id: cliFlag38
|
|
2519
2556
|
};
|
|
2520
2557
|
|
|
2521
2558
|
// src/options/hardware-acceleration.tsx
|
|
@@ -2524,11 +2561,11 @@ var hardwareAccelerationOptions = [
|
|
|
2524
2561
|
"if-possible",
|
|
2525
2562
|
"required"
|
|
2526
2563
|
];
|
|
2527
|
-
var
|
|
2564
|
+
var cliFlag39 = "hardware-acceleration";
|
|
2528
2565
|
var currentValue = null;
|
|
2529
2566
|
var hardwareAccelerationOption = {
|
|
2530
2567
|
name: "Hardware Acceleration",
|
|
2531
|
-
cliFlag:
|
|
2568
|
+
cliFlag: cliFlag39,
|
|
2532
2569
|
description: () => `
|
|
2533
2570
|
One of
|
|
2534
2571
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -2540,10 +2577,10 @@ var hardwareAccelerationOption = {
|
|
|
2540
2577
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
2541
2578
|
type: "disable",
|
|
2542
2579
|
getValue: ({ commandLine }) => {
|
|
2543
|
-
if (commandLine[
|
|
2544
|
-
const value = commandLine[
|
|
2580
|
+
if (commandLine[cliFlag39] !== undefined) {
|
|
2581
|
+
const value = commandLine[cliFlag39];
|
|
2545
2582
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2546
|
-
throw new Error(`Invalid value for --${
|
|
2583
|
+
throw new Error(`Invalid value for --${cliFlag39}: ${value}`);
|
|
2547
2584
|
}
|
|
2548
2585
|
return {
|
|
2549
2586
|
source: "cli",
|
|
@@ -2563,26 +2600,26 @@ var hardwareAccelerationOption = {
|
|
|
2563
2600
|
},
|
|
2564
2601
|
setConfig: (value) => {
|
|
2565
2602
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2566
|
-
throw new Error(`Invalid value for --${
|
|
2603
|
+
throw new Error(`Invalid value for --${cliFlag39}: ${value}`);
|
|
2567
2604
|
}
|
|
2568
2605
|
currentValue = value;
|
|
2569
2606
|
},
|
|
2570
|
-
id:
|
|
2607
|
+
id: cliFlag39
|
|
2571
2608
|
};
|
|
2572
2609
|
|
|
2573
2610
|
// src/options/headless.tsx
|
|
2574
|
-
import { jsx as
|
|
2611
|
+
import { jsx as jsx36, jsxs as jsxs27, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2575
2612
|
var DEFAULT4 = true;
|
|
2576
2613
|
var headlessMode = DEFAULT4;
|
|
2577
|
-
var
|
|
2614
|
+
var cliFlag40 = "disable-headless";
|
|
2578
2615
|
var headlessOption = {
|
|
2579
2616
|
name: "Disable Headless Mode",
|
|
2580
|
-
cliFlag:
|
|
2581
|
-
description: () => /* @__PURE__ */
|
|
2617
|
+
cliFlag: cliFlag40,
|
|
2618
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment36, {
|
|
2582
2619
|
children: [
|
|
2583
2620
|
"If disabled, the render will open an actual Chrome window where you can see the render happen. This requires",
|
|
2584
2621
|
" ",
|
|
2585
|
-
/* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ jsx36("a", {
|
|
2586
2623
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
2587
2624
|
children: "Chrome for Testing"
|
|
2588
2625
|
}),
|
|
@@ -2594,10 +2631,10 @@ var headlessOption = {
|
|
|
2594
2631
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
2595
2632
|
type: false,
|
|
2596
2633
|
getValue: ({ commandLine }) => {
|
|
2597
|
-
if (commandLine[
|
|
2634
|
+
if (commandLine[cliFlag40] !== undefined && commandLine[cliFlag40] !== null) {
|
|
2598
2635
|
return {
|
|
2599
2636
|
source: "cli",
|
|
2600
|
-
value: !commandLine[
|
|
2637
|
+
value: !commandLine[cliFlag40]
|
|
2601
2638
|
};
|
|
2602
2639
|
}
|
|
2603
2640
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -2614,27 +2651,27 @@ var headlessOption = {
|
|
|
2614
2651
|
setConfig: (value) => {
|
|
2615
2652
|
headlessMode = value;
|
|
2616
2653
|
},
|
|
2617
|
-
id:
|
|
2654
|
+
id: cliFlag40
|
|
2618
2655
|
};
|
|
2619
2656
|
|
|
2620
2657
|
// src/options/ignore-certificate-errors.tsx
|
|
2621
|
-
import { jsx as
|
|
2658
|
+
import { jsx as jsx37, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2622
2659
|
var ignoreCertificateErrors = false;
|
|
2623
|
-
var
|
|
2660
|
+
var cliFlag41 = "ignore-certificate-errors";
|
|
2624
2661
|
var ignoreCertificateErrorsOption = {
|
|
2625
2662
|
name: "Ignore certificate errors",
|
|
2626
|
-
cliFlag:
|
|
2627
|
-
description: () => /* @__PURE__ */
|
|
2663
|
+
cliFlag: cliFlag41,
|
|
2664
|
+
description: () => /* @__PURE__ */ jsx37(Fragment37, {
|
|
2628
2665
|
children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored."
|
|
2629
2666
|
}),
|
|
2630
2667
|
ssrName: "ignoreCertificateErrors",
|
|
2631
2668
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors",
|
|
2632
2669
|
type: false,
|
|
2633
2670
|
getValue: ({ commandLine }) => {
|
|
2634
|
-
if (commandLine[
|
|
2671
|
+
if (commandLine[cliFlag41] !== undefined && commandLine[cliFlag41] !== null) {
|
|
2635
2672
|
return {
|
|
2636
2673
|
source: "cli",
|
|
2637
|
-
value: Boolean(commandLine[
|
|
2674
|
+
value: Boolean(commandLine[cliFlag41])
|
|
2638
2675
|
};
|
|
2639
2676
|
}
|
|
2640
2677
|
if (ignoreCertificateErrors) {
|
|
@@ -2651,23 +2688,23 @@ var ignoreCertificateErrorsOption = {
|
|
|
2651
2688
|
setConfig: (value) => {
|
|
2652
2689
|
ignoreCertificateErrors = value;
|
|
2653
2690
|
},
|
|
2654
|
-
id:
|
|
2691
|
+
id: cliFlag41
|
|
2655
2692
|
};
|
|
2656
2693
|
|
|
2657
2694
|
// src/options/image-sequence.tsx
|
|
2658
|
-
import { jsx as
|
|
2659
|
-
var
|
|
2695
|
+
import { jsx as jsx38, jsxs as jsxs28, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2696
|
+
var cliFlag42 = "sequence";
|
|
2660
2697
|
var imageSequence = false;
|
|
2661
2698
|
var imageSequenceOption = {
|
|
2662
2699
|
name: "Image Sequence",
|
|
2663
|
-
cliFlag:
|
|
2664
|
-
description: () => /* @__PURE__ */
|
|
2700
|
+
cliFlag: cliFlag42,
|
|
2701
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment38, {
|
|
2665
2702
|
children: [
|
|
2666
2703
|
"Pass this flag to output an image sequence instead of a video. The default image format is JPEG. See",
|
|
2667
2704
|
" ",
|
|
2668
|
-
/* @__PURE__ */
|
|
2705
|
+
/* @__PURE__ */ jsx38("a", {
|
|
2669
2706
|
href: "/docs/config#setimagesequence",
|
|
2670
|
-
children: /* @__PURE__ */
|
|
2707
|
+
children: /* @__PURE__ */ jsx38("code", {
|
|
2671
2708
|
children: "setImageSequence()"
|
|
2672
2709
|
})
|
|
2673
2710
|
}),
|
|
@@ -2678,10 +2715,10 @@ var imageSequenceOption = {
|
|
|
2678
2715
|
ssrName: null,
|
|
2679
2716
|
docLink: "https://www.remotion.dev/docs/config#setimagesequence",
|
|
2680
2717
|
getValue: ({ commandLine }) => {
|
|
2681
|
-
if (commandLine[
|
|
2718
|
+
if (commandLine[cliFlag42] !== undefined && commandLine[cliFlag42] !== null) {
|
|
2682
2719
|
return {
|
|
2683
2720
|
source: "cli",
|
|
2684
|
-
value: Boolean(commandLine[
|
|
2721
|
+
value: Boolean(commandLine[cliFlag42])
|
|
2685
2722
|
};
|
|
2686
2723
|
}
|
|
2687
2724
|
return {
|
|
@@ -2693,25 +2730,25 @@ var imageSequenceOption = {
|
|
|
2693
2730
|
imageSequence = value;
|
|
2694
2731
|
},
|
|
2695
2732
|
type: false,
|
|
2696
|
-
id:
|
|
2733
|
+
id: cliFlag42
|
|
2697
2734
|
};
|
|
2698
2735
|
|
|
2699
2736
|
// src/options/image-sequence-pattern.tsx
|
|
2700
|
-
import { jsx as
|
|
2701
|
-
var
|
|
2737
|
+
import { jsx as jsx39, jsxs as jsxs29, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2738
|
+
var cliFlag43 = "image-sequence-pattern";
|
|
2702
2739
|
var currentImageSequencePattern = null;
|
|
2703
2740
|
var imageSequencePatternOption = {
|
|
2704
2741
|
name: "Image Sequence Pattern",
|
|
2705
|
-
cliFlag:
|
|
2742
|
+
cliFlag: cliFlag43,
|
|
2706
2743
|
ssrName: "imageSequencePattern",
|
|
2707
|
-
description: () => /* @__PURE__ */
|
|
2744
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment39, {
|
|
2708
2745
|
children: [
|
|
2709
2746
|
"Pattern for naming image sequence files. Supports ",
|
|
2710
|
-
/* @__PURE__ */
|
|
2747
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2711
2748
|
children: "[frame]"
|
|
2712
2749
|
}),
|
|
2713
2750
|
" for the zero-padded frame number and ",
|
|
2714
|
-
/* @__PURE__ */
|
|
2751
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2715
2752
|
children: "[ext]"
|
|
2716
2753
|
}),
|
|
2717
2754
|
" for the file extension."
|
|
@@ -2727,7 +2764,7 @@ var imageSequencePatternOption = {
|
|
|
2727
2764
|
};
|
|
2728
2765
|
}
|
|
2729
2766
|
return {
|
|
2730
|
-
value: commandLine[
|
|
2767
|
+
value: commandLine[cliFlag43],
|
|
2731
2768
|
source: "cli"
|
|
2732
2769
|
};
|
|
2733
2770
|
},
|
|
@@ -2737,25 +2774,25 @@ var imageSequencePatternOption = {
|
|
|
2737
2774
|
reset: () => {
|
|
2738
2775
|
currentImageSequencePattern = null;
|
|
2739
2776
|
},
|
|
2740
|
-
id:
|
|
2777
|
+
id: cliFlag43
|
|
2741
2778
|
};
|
|
2742
2779
|
|
|
2743
2780
|
// src/options/interactivity.tsx
|
|
2744
|
-
import { jsx as
|
|
2781
|
+
import { jsx as jsx40, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2745
2782
|
var interactivityEnabled = true;
|
|
2746
|
-
var
|
|
2783
|
+
var cliFlag44 = "disable-interactivity";
|
|
2747
2784
|
var interactivityOption = {
|
|
2748
2785
|
name: "Disable or enable Studio interactivity",
|
|
2749
|
-
cliFlag:
|
|
2750
|
-
description: () => /* @__PURE__ */
|
|
2786
|
+
cliFlag: cliFlag44,
|
|
2787
|
+
description: () => /* @__PURE__ */ jsx40(Fragment40, {
|
|
2751
2788
|
children: "Enable or disable interactive editing in the Remotion Studio. When disabled, the Studio keeps previewing and source navigation available, but disables preview outlines, the sequence inspector, visual controls, timeline selection and timeline editing gestures."
|
|
2752
2789
|
}),
|
|
2753
2790
|
ssrName: null,
|
|
2754
2791
|
docLink: "https://www.remotion.dev/docs/config#setinteractivityenabled",
|
|
2755
2792
|
type: false,
|
|
2756
2793
|
getValue: ({ commandLine }) => {
|
|
2757
|
-
if (commandLine[
|
|
2758
|
-
interactivityEnabled = commandLine[
|
|
2794
|
+
if (commandLine[cliFlag44] !== undefined && commandLine[cliFlag44] !== null) {
|
|
2795
|
+
interactivityEnabled = commandLine[cliFlag44] === false;
|
|
2759
2796
|
return {
|
|
2760
2797
|
value: interactivityEnabled,
|
|
2761
2798
|
source: "cli"
|
|
@@ -2769,26 +2806,26 @@ var interactivityOption = {
|
|
|
2769
2806
|
setConfig(value) {
|
|
2770
2807
|
interactivityEnabled = value;
|
|
2771
2808
|
},
|
|
2772
|
-
id:
|
|
2809
|
+
id: cliFlag44
|
|
2773
2810
|
};
|
|
2774
2811
|
|
|
2775
2812
|
// src/options/ipv4.tsx
|
|
2776
|
-
import { jsx as
|
|
2813
|
+
import { jsx as jsx41, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2777
2814
|
var forceIPv4 = false;
|
|
2778
|
-
var
|
|
2815
|
+
var cliFlag45 = "ipv4";
|
|
2779
2816
|
var ipv4Option = {
|
|
2780
2817
|
name: "IPv4",
|
|
2781
|
-
cliFlag:
|
|
2782
|
-
description: () => /* @__PURE__ */
|
|
2818
|
+
cliFlag: cliFlag45,
|
|
2819
|
+
description: () => /* @__PURE__ */ jsx41(Fragment41, {
|
|
2783
2820
|
children: "Forces Remotion to bind to an IPv4 interface for the Studio server."
|
|
2784
2821
|
}),
|
|
2785
2822
|
ssrName: null,
|
|
2786
2823
|
docLink: "https://www.remotion.dev/docs/cli/studio",
|
|
2787
2824
|
type: false,
|
|
2788
2825
|
getValue: ({ commandLine }) => {
|
|
2789
|
-
if (commandLine[
|
|
2826
|
+
if (commandLine[cliFlag45] !== undefined && commandLine[cliFlag45] !== null) {
|
|
2790
2827
|
return {
|
|
2791
|
-
value: commandLine[
|
|
2828
|
+
value: commandLine[cliFlag45],
|
|
2792
2829
|
source: "cli"
|
|
2793
2830
|
};
|
|
2794
2831
|
}
|
|
@@ -2800,25 +2837,25 @@ var ipv4Option = {
|
|
|
2800
2837
|
setConfig(value) {
|
|
2801
2838
|
forceIPv4 = value;
|
|
2802
2839
|
},
|
|
2803
|
-
id:
|
|
2840
|
+
id: cliFlag45
|
|
2804
2841
|
};
|
|
2805
2842
|
|
|
2806
2843
|
// src/options/is-production.tsx
|
|
2807
|
-
import { jsx as
|
|
2808
|
-
var
|
|
2844
|
+
import { jsx as jsx42, jsxs as jsxs30, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2845
|
+
var cliFlag46 = "is-production";
|
|
2809
2846
|
var currentIsProductionKey = null;
|
|
2810
2847
|
var isProductionOption = {
|
|
2811
2848
|
name: "Is Production",
|
|
2812
|
-
cliFlag:
|
|
2813
|
-
description: () => /* @__PURE__ */
|
|
2849
|
+
cliFlag: cliFlag46,
|
|
2850
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment42, {
|
|
2814
2851
|
children: [
|
|
2815
2852
|
"Pass ",
|
|
2816
|
-
/* @__PURE__ */
|
|
2853
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2817
2854
|
children: "false"
|
|
2818
2855
|
}),
|
|
2819
2856
|
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
2820
2857
|
" ",
|
|
2821
|
-
/* @__PURE__ */
|
|
2858
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2822
2859
|
children: "licenseKey"
|
|
2823
2860
|
}),
|
|
2824
2861
|
"."
|
|
@@ -2827,10 +2864,10 @@ var isProductionOption = {
|
|
|
2827
2864
|
ssrName: "isProduction",
|
|
2828
2865
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2829
2866
|
getValue: ({ commandLine }) => {
|
|
2830
|
-
if (commandLine[
|
|
2867
|
+
if (commandLine[cliFlag46] !== undefined && commandLine[cliFlag46] !== null) {
|
|
2831
2868
|
return {
|
|
2832
2869
|
source: "cli",
|
|
2833
|
-
value: commandLine[
|
|
2870
|
+
value: commandLine[cliFlag46]
|
|
2834
2871
|
};
|
|
2835
2872
|
}
|
|
2836
2873
|
if (currentIsProductionKey !== null) {
|
|
@@ -2848,11 +2885,11 @@ var isProductionOption = {
|
|
|
2848
2885
|
currentIsProductionKey = value;
|
|
2849
2886
|
},
|
|
2850
2887
|
type: false,
|
|
2851
|
-
id:
|
|
2888
|
+
id: cliFlag46
|
|
2852
2889
|
};
|
|
2853
2890
|
|
|
2854
2891
|
// src/options/jpeg-quality.tsx
|
|
2855
|
-
import { jsx as
|
|
2892
|
+
import { jsx as jsx43, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2856
2893
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
2857
2894
|
var quality = defaultValue;
|
|
2858
2895
|
var setJpegQuality = (q) => {
|
|
@@ -2863,11 +2900,11 @@ var setJpegQuality = (q) => {
|
|
|
2863
2900
|
}
|
|
2864
2901
|
quality = q;
|
|
2865
2902
|
};
|
|
2866
|
-
var
|
|
2903
|
+
var cliFlag47 = "jpeg-quality";
|
|
2867
2904
|
var jpegQualityOption = {
|
|
2868
2905
|
name: "JPEG Quality",
|
|
2869
|
-
cliFlag:
|
|
2870
|
-
description: () => /* @__PURE__ */
|
|
2906
|
+
cliFlag: cliFlag47,
|
|
2907
|
+
description: () => /* @__PURE__ */ jsx43(Fragment43, {
|
|
2871
2908
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
2872
2909
|
}),
|
|
2873
2910
|
ssrName: "jpegQuality",
|
|
@@ -2875,11 +2912,11 @@ var jpegQualityOption = {
|
|
|
2875
2912
|
type: 0,
|
|
2876
2913
|
setConfig: setJpegQuality,
|
|
2877
2914
|
getValue: ({ commandLine }) => {
|
|
2878
|
-
if (commandLine[
|
|
2879
|
-
validateJpegQuality(commandLine[
|
|
2915
|
+
if (commandLine[cliFlag47] !== undefined) {
|
|
2916
|
+
validateJpegQuality(commandLine[cliFlag47]);
|
|
2880
2917
|
return {
|
|
2881
2918
|
source: "cli",
|
|
2882
|
-
value: commandLine[
|
|
2919
|
+
value: commandLine[cliFlag47]
|
|
2883
2920
|
};
|
|
2884
2921
|
}
|
|
2885
2922
|
if (quality !== defaultValue) {
|
|
@@ -2893,25 +2930,25 @@ var jpegQualityOption = {
|
|
|
2893
2930
|
value: defaultValue
|
|
2894
2931
|
};
|
|
2895
2932
|
},
|
|
2896
|
-
id:
|
|
2933
|
+
id: cliFlag47
|
|
2897
2934
|
};
|
|
2898
2935
|
|
|
2899
2936
|
// src/options/keyboard-shortcuts.tsx
|
|
2900
|
-
import { jsx as
|
|
2937
|
+
import { jsx as jsx44, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2901
2938
|
var keyboardShortcutsEnabled = true;
|
|
2902
|
-
var
|
|
2939
|
+
var cliFlag48 = "disable-keyboard-shortcuts";
|
|
2903
2940
|
var keyboardShortcutsOption = {
|
|
2904
2941
|
name: "Disable or Enable keyboard shortcuts",
|
|
2905
|
-
cliFlag:
|
|
2906
|
-
description: () => /* @__PURE__ */
|
|
2942
|
+
cliFlag: cliFlag48,
|
|
2943
|
+
description: () => /* @__PURE__ */ jsx44(Fragment44, {
|
|
2907
2944
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
2908
2945
|
}),
|
|
2909
2946
|
ssrName: null,
|
|
2910
2947
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
2911
2948
|
type: false,
|
|
2912
2949
|
getValue: ({ commandLine }) => {
|
|
2913
|
-
if (commandLine[
|
|
2914
|
-
keyboardShortcutsEnabled = commandLine[
|
|
2950
|
+
if (commandLine[cliFlag48] !== undefined && commandLine[cliFlag48] !== null) {
|
|
2951
|
+
keyboardShortcutsEnabled = commandLine[cliFlag48] === false;
|
|
2915
2952
|
return {
|
|
2916
2953
|
value: keyboardShortcutsEnabled,
|
|
2917
2954
|
source: "cli"
|
|
@@ -2925,42 +2962,42 @@ var keyboardShortcutsOption = {
|
|
|
2925
2962
|
setConfig(value) {
|
|
2926
2963
|
keyboardShortcutsEnabled = value;
|
|
2927
2964
|
},
|
|
2928
|
-
id:
|
|
2965
|
+
id: cliFlag48
|
|
2929
2966
|
};
|
|
2930
2967
|
|
|
2931
2968
|
// src/options/latency-hint.tsx
|
|
2932
|
-
import { jsx as
|
|
2933
|
-
var
|
|
2969
|
+
import { jsx as jsx45, jsxs as jsxs31, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2970
|
+
var cliFlag49 = "audio-latency-hint";
|
|
2934
2971
|
var value = null;
|
|
2935
2972
|
var audioLatencyHintOption = {
|
|
2936
2973
|
name: "Audio Latency Hint",
|
|
2937
|
-
cliFlag:
|
|
2938
|
-
description: () => /* @__PURE__ */
|
|
2974
|
+
cliFlag: cliFlag49,
|
|
2975
|
+
description: () => /* @__PURE__ */ jsxs31(Fragment45, {
|
|
2939
2976
|
children: [
|
|
2940
2977
|
"Sets the",
|
|
2941
2978
|
" ",
|
|
2942
|
-
/* @__PURE__ */
|
|
2979
|
+
/* @__PURE__ */ jsx45("a", {
|
|
2943
2980
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
2944
2981
|
children: "audio latency"
|
|
2945
2982
|
}),
|
|
2946
2983
|
" ",
|
|
2947
2984
|
"hint for the global ",
|
|
2948
|
-
/* @__PURE__ */
|
|
2985
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2949
2986
|
children: "AudioContext"
|
|
2950
2987
|
}),
|
|
2951
2988
|
" context that Remotion uses to play audio.",
|
|
2952
|
-
/* @__PURE__ */
|
|
2989
|
+
/* @__PURE__ */ jsx45("br", {}),
|
|
2953
2990
|
"Possible values: ",
|
|
2954
|
-
/* @__PURE__ */
|
|
2991
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2955
2992
|
children: "interactive"
|
|
2956
2993
|
}),
|
|
2957
2994
|
", ",
|
|
2958
|
-
/* @__PURE__ */
|
|
2995
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2959
2996
|
children: "balanced"
|
|
2960
2997
|
}),
|
|
2961
2998
|
",",
|
|
2962
2999
|
" ",
|
|
2963
|
-
/* @__PURE__ */
|
|
3000
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2964
3001
|
children: "playback"
|
|
2965
3002
|
})
|
|
2966
3003
|
]
|
|
@@ -2969,7 +3006,7 @@ var audioLatencyHintOption = {
|
|
|
2969
3006
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
2970
3007
|
type: "playback",
|
|
2971
3008
|
getValue: ({ commandLine }) => {
|
|
2972
|
-
const val = commandLine[
|
|
3009
|
+
const val = commandLine[cliFlag49];
|
|
2973
3010
|
if (typeof val !== "undefined") {
|
|
2974
3011
|
return { value: val, source: "cli" };
|
|
2975
3012
|
}
|
|
@@ -2981,21 +3018,21 @@ var audioLatencyHintOption = {
|
|
|
2981
3018
|
setConfig: (profile) => {
|
|
2982
3019
|
value = profile;
|
|
2983
3020
|
},
|
|
2984
|
-
id:
|
|
3021
|
+
id: cliFlag49
|
|
2985
3022
|
};
|
|
2986
3023
|
|
|
2987
3024
|
// src/options/license-key.tsx
|
|
2988
|
-
import { jsx as
|
|
3025
|
+
import { jsx as jsx46, jsxs as jsxs32, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
2989
3026
|
var currentLicenseKey = null;
|
|
2990
|
-
var
|
|
3027
|
+
var cliFlag50 = "license-key";
|
|
2991
3028
|
var licenseKeyOption = {
|
|
2992
3029
|
name: "License key",
|
|
2993
|
-
cliFlag:
|
|
2994
|
-
description: () => /* @__PURE__ */
|
|
3030
|
+
cliFlag: cliFlag50,
|
|
3031
|
+
description: () => /* @__PURE__ */ jsxs32(Fragment46, {
|
|
2995
3032
|
children: [
|
|
2996
3033
|
"License key for sending a usage event using",
|
|
2997
3034
|
" ",
|
|
2998
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2999
3036
|
children: "@remotion/licensing"
|
|
3000
3037
|
}),
|
|
3001
3038
|
"."
|
|
@@ -3005,10 +3042,10 @@ var licenseKeyOption = {
|
|
|
3005
3042
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
3006
3043
|
type: null,
|
|
3007
3044
|
getValue: ({ commandLine }) => {
|
|
3008
|
-
if (commandLine[
|
|
3045
|
+
if (commandLine[cliFlag50] !== undefined) {
|
|
3009
3046
|
return {
|
|
3010
3047
|
source: "cli",
|
|
3011
|
-
value: commandLine[
|
|
3048
|
+
value: commandLine[cliFlag50]
|
|
3012
3049
|
};
|
|
3013
3050
|
}
|
|
3014
3051
|
return {
|
|
@@ -3019,47 +3056,47 @@ var licenseKeyOption = {
|
|
|
3019
3056
|
setConfig: (value2) => {
|
|
3020
3057
|
currentLicenseKey = value2;
|
|
3021
3058
|
},
|
|
3022
|
-
id:
|
|
3059
|
+
id: cliFlag50
|
|
3023
3060
|
};
|
|
3024
3061
|
|
|
3025
3062
|
// src/options/log-level.tsx
|
|
3026
|
-
import { jsx as
|
|
3063
|
+
import { jsx as jsx47, jsxs as jsxs33, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
3027
3064
|
var logLevel = "info";
|
|
3028
|
-
var
|
|
3065
|
+
var cliFlag51 = "log";
|
|
3029
3066
|
var logLevelOption = {
|
|
3030
|
-
cliFlag:
|
|
3067
|
+
cliFlag: cliFlag51,
|
|
3031
3068
|
name: "Log Level",
|
|
3032
3069
|
ssrName: "logLevel",
|
|
3033
|
-
description: () => /* @__PURE__ */
|
|
3070
|
+
description: () => /* @__PURE__ */ jsxs33(Fragment47, {
|
|
3034
3071
|
children: [
|
|
3035
3072
|
"One of ",
|
|
3036
|
-
/* @__PURE__ */
|
|
3073
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3037
3074
|
children: "trace"
|
|
3038
3075
|
}),
|
|
3039
3076
|
", ",
|
|
3040
|
-
/* @__PURE__ */
|
|
3077
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3041
3078
|
children: "verbose"
|
|
3042
3079
|
}),
|
|
3043
3080
|
", ",
|
|
3044
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3045
3082
|
children: "info"
|
|
3046
3083
|
}),
|
|
3047
3084
|
",",
|
|
3048
3085
|
" ",
|
|
3049
|
-
/* @__PURE__ */
|
|
3086
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3050
3087
|
children: "warn"
|
|
3051
3088
|
}),
|
|
3052
3089
|
", ",
|
|
3053
|
-
/* @__PURE__ */
|
|
3090
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3054
3091
|
children: "error"
|
|
3055
3092
|
}),
|
|
3056
3093
|
".",
|
|
3057
|
-
/* @__PURE__ */
|
|
3094
|
+
/* @__PURE__ */ jsx47("br", {}),
|
|
3058
3095
|
" Determines how much info is being logged to the console.",
|
|
3059
|
-
/* @__PURE__ */
|
|
3060
|
-
/* @__PURE__ */
|
|
3096
|
+
/* @__PURE__ */ jsx47("br", {}),
|
|
3097
|
+
/* @__PURE__ */ jsx47("br", {}),
|
|
3061
3098
|
" Default ",
|
|
3062
|
-
/* @__PURE__ */
|
|
3099
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3063
3100
|
children: "info"
|
|
3064
3101
|
}),
|
|
3065
3102
|
"."
|
|
@@ -3067,11 +3104,11 @@ var logLevelOption = {
|
|
|
3067
3104
|
}),
|
|
3068
3105
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
3069
3106
|
getValue: ({ commandLine }) => {
|
|
3070
|
-
if (commandLine[
|
|
3071
|
-
if (!isValidLogLevel(commandLine[
|
|
3107
|
+
if (commandLine[cliFlag51]) {
|
|
3108
|
+
if (!isValidLogLevel(commandLine[cliFlag51])) {
|
|
3072
3109
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
3073
3110
|
}
|
|
3074
|
-
return { value: commandLine[
|
|
3111
|
+
return { value: commandLine[cliFlag51], source: "cli" };
|
|
3075
3112
|
}
|
|
3076
3113
|
if (logLevel !== "info") {
|
|
3077
3114
|
return { value: logLevel, source: "config" };
|
|
@@ -3082,23 +3119,23 @@ var logLevelOption = {
|
|
|
3082
3119
|
logLevel = newLogLevel;
|
|
3083
3120
|
},
|
|
3084
3121
|
type: "error",
|
|
3085
|
-
id:
|
|
3122
|
+
id: cliFlag51
|
|
3086
3123
|
};
|
|
3087
3124
|
|
|
3088
3125
|
// src/options/metadata.tsx
|
|
3089
|
-
import { jsx as
|
|
3126
|
+
import { jsx as jsx48, jsxs as jsxs34, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
3090
3127
|
var metadata = {};
|
|
3091
|
-
var
|
|
3128
|
+
var cliFlag52 = "metadata";
|
|
3092
3129
|
var metadataOption = {
|
|
3093
3130
|
name: "Metadata",
|
|
3094
|
-
cliFlag:
|
|
3131
|
+
cliFlag: cliFlag52,
|
|
3095
3132
|
description: (mode) => {
|
|
3096
3133
|
if (mode === "ssr") {
|
|
3097
|
-
return /* @__PURE__ */
|
|
3134
|
+
return /* @__PURE__ */ jsxs34(Fragment48, {
|
|
3098
3135
|
children: [
|
|
3099
3136
|
"An object containing metadata to be embedded in the video. See",
|
|
3100
3137
|
" ",
|
|
3101
|
-
/* @__PURE__ */
|
|
3138
|
+
/* @__PURE__ */ jsx48("a", {
|
|
3102
3139
|
href: "/docs/metadata",
|
|
3103
3140
|
children: "here"
|
|
3104
3141
|
}),
|
|
@@ -3106,18 +3143,18 @@ var metadataOption = {
|
|
|
3106
3143
|
]
|
|
3107
3144
|
});
|
|
3108
3145
|
}
|
|
3109
|
-
return /* @__PURE__ */
|
|
3146
|
+
return /* @__PURE__ */ jsxs34(Fragment48, {
|
|
3110
3147
|
children: [
|
|
3111
3148
|
"Metadata to be embedded in the video. See",
|
|
3112
3149
|
" ",
|
|
3113
|
-
/* @__PURE__ */
|
|
3150
|
+
/* @__PURE__ */ jsx48("a", {
|
|
3114
3151
|
href: "/docs/metadata",
|
|
3115
3152
|
children: "here"
|
|
3116
3153
|
}),
|
|
3117
3154
|
" for which metadata is accepted.",
|
|
3118
|
-
/* @__PURE__ */
|
|
3155
|
+
/* @__PURE__ */ jsx48("br", {}),
|
|
3119
3156
|
"The parameter must be in the format of ",
|
|
3120
|
-
/* @__PURE__ */
|
|
3157
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3121
3158
|
children: "--metadata key=value"
|
|
3122
3159
|
}),
|
|
3123
3160
|
" ",
|
|
@@ -3128,8 +3165,8 @@ var metadataOption = {
|
|
|
3128
3165
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
3129
3166
|
type: {},
|
|
3130
3167
|
getValue: ({ commandLine }) => {
|
|
3131
|
-
if (commandLine[
|
|
3132
|
-
const val = commandLine[
|
|
3168
|
+
if (commandLine[cliFlag52] !== undefined) {
|
|
3169
|
+
const val = commandLine[cliFlag52];
|
|
3133
3170
|
const array = typeof val === "string" ? [val] : val;
|
|
3134
3171
|
const keyValues = array.map((a) => {
|
|
3135
3172
|
if (!a.includes("=")) {
|
|
@@ -3156,28 +3193,28 @@ var metadataOption = {
|
|
|
3156
3193
|
metadata = newMetadata;
|
|
3157
3194
|
},
|
|
3158
3195
|
ssrName: "metadata",
|
|
3159
|
-
id:
|
|
3196
|
+
id: cliFlag52
|
|
3160
3197
|
};
|
|
3161
3198
|
|
|
3162
3199
|
// src/options/mute.tsx
|
|
3163
|
-
import { jsx as
|
|
3200
|
+
import { jsx as jsx49, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
3164
3201
|
var DEFAULT_MUTED_STATE = false;
|
|
3165
3202
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
3166
|
-
var
|
|
3203
|
+
var cliFlag53 = "muted";
|
|
3167
3204
|
var mutedOption = {
|
|
3168
3205
|
name: "Muted",
|
|
3169
|
-
cliFlag:
|
|
3170
|
-
description: () => /* @__PURE__ */
|
|
3206
|
+
cliFlag: cliFlag53,
|
|
3207
|
+
description: () => /* @__PURE__ */ jsx49(Fragment49, {
|
|
3171
3208
|
children: "The Audio of the video will be omitted."
|
|
3172
3209
|
}),
|
|
3173
3210
|
ssrName: "muted",
|
|
3174
3211
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
3175
3212
|
type: false,
|
|
3176
3213
|
getValue: ({ commandLine }) => {
|
|
3177
|
-
if (commandLine[
|
|
3214
|
+
if (commandLine[cliFlag53] !== null) {
|
|
3178
3215
|
return {
|
|
3179
3216
|
source: "cli",
|
|
3180
|
-
value: commandLine[
|
|
3217
|
+
value: commandLine[cliFlag53]
|
|
3181
3218
|
};
|
|
3182
3219
|
}
|
|
3183
3220
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -3197,17 +3234,17 @@ var mutedOption = {
|
|
|
3197
3234
|
reset: () => {
|
|
3198
3235
|
mutedState = DEFAULT_MUTED_STATE;
|
|
3199
3236
|
},
|
|
3200
|
-
id:
|
|
3237
|
+
id: cliFlag53
|
|
3201
3238
|
};
|
|
3202
3239
|
|
|
3203
3240
|
// src/options/no-open.tsx
|
|
3204
|
-
import { jsx as
|
|
3241
|
+
import { jsx as jsx50, Fragment as Fragment50 } from "react/jsx-runtime";
|
|
3205
3242
|
var shouldOpenBrowser = true;
|
|
3206
|
-
var
|
|
3243
|
+
var cliFlag54 = "no-open";
|
|
3207
3244
|
var noOpenOption = {
|
|
3208
3245
|
name: "Disable browser auto-open",
|
|
3209
|
-
cliFlag:
|
|
3210
|
-
description: () => /* @__PURE__ */
|
|
3246
|
+
cliFlag: cliFlag54,
|
|
3247
|
+
description: () => /* @__PURE__ */ jsx50(Fragment50, {
|
|
3211
3248
|
children: "If specified, Remotion will not open a browser window when starting the Studio."
|
|
3212
3249
|
}),
|
|
3213
3250
|
ssrName: null,
|
|
@@ -3229,54 +3266,54 @@ var noOpenOption = {
|
|
|
3229
3266
|
reset: () => {
|
|
3230
3267
|
shouldOpenBrowser = true;
|
|
3231
3268
|
},
|
|
3232
|
-
id:
|
|
3269
|
+
id: cliFlag54
|
|
3233
3270
|
};
|
|
3234
3271
|
|
|
3235
3272
|
// src/options/number-of-gif-loops.tsx
|
|
3236
|
-
import { jsx as
|
|
3273
|
+
import { jsx as jsx51, jsxs as jsxs35, Fragment as Fragment51 } from "react/jsx-runtime";
|
|
3237
3274
|
var currentLoop = null;
|
|
3238
3275
|
var validate = (newLoop) => {
|
|
3239
3276
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
3240
3277
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
3241
3278
|
}
|
|
3242
3279
|
};
|
|
3243
|
-
var
|
|
3280
|
+
var cliFlag55 = "number-of-gif-loops";
|
|
3244
3281
|
var numberOfGifLoopsOption = {
|
|
3245
3282
|
name: "Number of GIF loops",
|
|
3246
|
-
cliFlag:
|
|
3283
|
+
cliFlag: cliFlag55,
|
|
3247
3284
|
description: () => {
|
|
3248
|
-
return /* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ jsxs35(Fragment51, {
|
|
3249
3286
|
children: [
|
|
3250
3287
|
"Allows you to set the number of loops as follows:",
|
|
3251
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsxs35("ul", {
|
|
3252
3289
|
children: [
|
|
3253
|
-
/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ jsxs35("li", {
|
|
3254
3291
|
children: [
|
|
3255
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3256
3293
|
children: "null"
|
|
3257
3294
|
}),
|
|
3258
3295
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
3259
3296
|
]
|
|
3260
3297
|
}),
|
|
3261
|
-
/* @__PURE__ */
|
|
3298
|
+
/* @__PURE__ */ jsxs35("li", {
|
|
3262
3299
|
children: [
|
|
3263
|
-
/* @__PURE__ */
|
|
3300
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3264
3301
|
children: "0"
|
|
3265
3302
|
}),
|
|
3266
3303
|
" disables looping"
|
|
3267
3304
|
]
|
|
3268
3305
|
}),
|
|
3269
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ jsxs35("li", {
|
|
3270
3307
|
children: [
|
|
3271
|
-
/* @__PURE__ */
|
|
3308
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3272
3309
|
children: "1"
|
|
3273
3310
|
}),
|
|
3274
3311
|
" loops the GIF once (plays twice in total)"
|
|
3275
3312
|
]
|
|
3276
3313
|
}),
|
|
3277
|
-
/* @__PURE__ */
|
|
3314
|
+
/* @__PURE__ */ jsxs35("li", {
|
|
3278
3315
|
children: [
|
|
3279
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3280
3317
|
children: "2"
|
|
3281
3318
|
}),
|
|
3282
3319
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -3291,10 +3328,10 @@ var numberOfGifLoopsOption = {
|
|
|
3291
3328
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
3292
3329
|
type: 0,
|
|
3293
3330
|
getValue: ({ commandLine }) => {
|
|
3294
|
-
if (commandLine[
|
|
3295
|
-
validate(commandLine[
|
|
3331
|
+
if (commandLine[cliFlag55] !== undefined) {
|
|
3332
|
+
validate(commandLine[cliFlag55]);
|
|
3296
3333
|
return {
|
|
3297
|
-
value: commandLine[
|
|
3334
|
+
value: commandLine[cliFlag55],
|
|
3298
3335
|
source: "cli"
|
|
3299
3336
|
};
|
|
3300
3337
|
}
|
|
@@ -3313,21 +3350,21 @@ var numberOfGifLoopsOption = {
|
|
|
3313
3350
|
validate(newLoop);
|
|
3314
3351
|
currentLoop = newLoop;
|
|
3315
3352
|
},
|
|
3316
|
-
id:
|
|
3353
|
+
id: cliFlag55
|
|
3317
3354
|
};
|
|
3318
3355
|
|
|
3319
3356
|
// src/options/number-of-shared-audio-tags.tsx
|
|
3320
|
-
import { jsx as
|
|
3357
|
+
import { jsx as jsx52, jsxs as jsxs36, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
3321
3358
|
var numberOfSharedAudioTags = 0;
|
|
3322
|
-
var
|
|
3359
|
+
var cliFlag56 = "number-of-shared-audio-tags";
|
|
3323
3360
|
var numberOfSharedAudioTagsOption = {
|
|
3324
3361
|
name: "Number of shared audio tags",
|
|
3325
|
-
cliFlag:
|
|
3326
|
-
description: () => /* @__PURE__ */
|
|
3362
|
+
cliFlag: cliFlag56,
|
|
3363
|
+
description: () => /* @__PURE__ */ jsxs36(Fragment52, {
|
|
3327
3364
|
children: [
|
|
3328
3365
|
"Set number of shared audio tags. See",
|
|
3329
3366
|
" ",
|
|
3330
|
-
/* @__PURE__ */
|
|
3367
|
+
/* @__PURE__ */ jsx52("a", {
|
|
3331
3368
|
href: "https://www.remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop",
|
|
3332
3369
|
children: "Using the numberOfSharedAudioTags prop"
|
|
3333
3370
|
}),
|
|
@@ -3339,9 +3376,9 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3339
3376
|
docLink: "https://www.remotion.dev/docs/config#setnumberofsharedaudiotags",
|
|
3340
3377
|
type: 0,
|
|
3341
3378
|
getValue: ({ commandLine }) => {
|
|
3342
|
-
if (commandLine[
|
|
3379
|
+
if (commandLine[cliFlag56] !== undefined) {
|
|
3343
3380
|
return {
|
|
3344
|
-
value: commandLine[
|
|
3381
|
+
value: commandLine[cliFlag56],
|
|
3345
3382
|
source: "cli"
|
|
3346
3383
|
};
|
|
3347
3384
|
}
|
|
@@ -3353,39 +3390,39 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3353
3390
|
setConfig(value2) {
|
|
3354
3391
|
numberOfSharedAudioTags = value2;
|
|
3355
3392
|
},
|
|
3356
|
-
id:
|
|
3393
|
+
id: cliFlag56
|
|
3357
3394
|
};
|
|
3358
3395
|
|
|
3359
3396
|
// src/options/offthreadvideo-cache-size.tsx
|
|
3360
|
-
import { jsx as
|
|
3397
|
+
import { jsx as jsx53, jsxs as jsxs37, Fragment as Fragment53 } from "react/jsx-runtime";
|
|
3361
3398
|
var offthreadVideoCacheSizeInBytes = null;
|
|
3362
|
-
var
|
|
3399
|
+
var cliFlag57 = "offthreadvideo-cache-size-in-bytes";
|
|
3363
3400
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
3364
3401
|
name: "OffthreadVideo cache size",
|
|
3365
|
-
cliFlag:
|
|
3366
|
-
description: () => /* @__PURE__ */
|
|
3402
|
+
cliFlag: cliFlag57,
|
|
3403
|
+
description: () => /* @__PURE__ */ jsxs37(Fragment53, {
|
|
3367
3404
|
children: [
|
|
3368
3405
|
"From v4.0, Remotion has a cache for",
|
|
3369
3406
|
" ",
|
|
3370
|
-
/* @__PURE__ */
|
|
3407
|
+
/* @__PURE__ */ jsx53("a", {
|
|
3371
3408
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3372
|
-
children: /* @__PURE__ */
|
|
3409
|
+
children: /* @__PURE__ */ jsx53("code", {
|
|
3373
3410
|
children: "<OffthreadVideo>"
|
|
3374
3411
|
})
|
|
3375
3412
|
}),
|
|
3376
3413
|
" ",
|
|
3377
3414
|
"frames. The default is ",
|
|
3378
|
-
/* @__PURE__ */
|
|
3415
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3379
3416
|
children: "null"
|
|
3380
3417
|
}),
|
|
3381
3418
|
", corresponding to half of the system memory available when the render starts.",
|
|
3382
|
-
/* @__PURE__ */
|
|
3419
|
+
/* @__PURE__ */ jsx53("br", {}),
|
|
3383
3420
|
" This option allows to override the size of the cache. The higher it is, the faster the render will be, but the more memory will be used.",
|
|
3384
|
-
/* @__PURE__ */
|
|
3421
|
+
/* @__PURE__ */ jsx53("br", {}),
|
|
3385
3422
|
"The used value will be printed when running in verbose mode.",
|
|
3386
|
-
/* @__PURE__ */
|
|
3423
|
+
/* @__PURE__ */ jsx53("br", {}),
|
|
3387
3424
|
"Default: ",
|
|
3388
|
-
/* @__PURE__ */
|
|
3425
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3389
3426
|
children: "null"
|
|
3390
3427
|
})
|
|
3391
3428
|
]
|
|
@@ -3394,10 +3431,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3394
3431
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3395
3432
|
type: 0,
|
|
3396
3433
|
getValue: ({ commandLine }) => {
|
|
3397
|
-
if (commandLine[
|
|
3434
|
+
if (commandLine[cliFlag57] !== undefined) {
|
|
3398
3435
|
return {
|
|
3399
3436
|
source: "cli",
|
|
3400
|
-
value: commandLine[
|
|
3437
|
+
value: commandLine[cliFlag57]
|
|
3401
3438
|
};
|
|
3402
3439
|
}
|
|
3403
3440
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -3414,22 +3451,22 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3414
3451
|
setConfig: (size) => {
|
|
3415
3452
|
offthreadVideoCacheSizeInBytes = size ?? null;
|
|
3416
3453
|
},
|
|
3417
|
-
id:
|
|
3454
|
+
id: cliFlag57
|
|
3418
3455
|
};
|
|
3419
3456
|
|
|
3420
3457
|
// src/options/offthreadvideo-threads.tsx
|
|
3421
|
-
import { jsx as
|
|
3458
|
+
import { jsx as jsx54, jsxs as jsxs38, Fragment as Fragment54 } from "react/jsx-runtime";
|
|
3422
3459
|
var value2 = null;
|
|
3423
|
-
var
|
|
3460
|
+
var cliFlag58 = "offthreadvideo-video-threads";
|
|
3424
3461
|
var offthreadVideoThreadsOption = {
|
|
3425
3462
|
name: "OffthreadVideo threads",
|
|
3426
|
-
cliFlag:
|
|
3427
|
-
description: () => /* @__PURE__ */
|
|
3463
|
+
cliFlag: cliFlag58,
|
|
3464
|
+
description: () => /* @__PURE__ */ jsxs38(Fragment54, {
|
|
3428
3465
|
children: [
|
|
3429
3466
|
"The number of threads that",
|
|
3430
|
-
/* @__PURE__ */
|
|
3467
|
+
/* @__PURE__ */ jsx54("a", {
|
|
3431
3468
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3432
|
-
children: /* @__PURE__ */
|
|
3469
|
+
children: /* @__PURE__ */ jsx54("code", {
|
|
3433
3470
|
children: "<OffthreadVideo>"
|
|
3434
3471
|
})
|
|
3435
3472
|
}),
|
|
@@ -3444,10 +3481,10 @@ var offthreadVideoThreadsOption = {
|
|
|
3444
3481
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3445
3482
|
type: 0,
|
|
3446
3483
|
getValue: ({ commandLine }) => {
|
|
3447
|
-
if (commandLine[
|
|
3484
|
+
if (commandLine[cliFlag58] !== undefined) {
|
|
3448
3485
|
return {
|
|
3449
3486
|
source: "cli",
|
|
3450
|
-
value: commandLine[
|
|
3487
|
+
value: commandLine[cliFlag58]
|
|
3451
3488
|
};
|
|
3452
3489
|
}
|
|
3453
3490
|
if (value2 !== null) {
|
|
@@ -3464,21 +3501,21 @@ var offthreadVideoThreadsOption = {
|
|
|
3464
3501
|
setConfig: (size) => {
|
|
3465
3502
|
value2 = size ?? null;
|
|
3466
3503
|
},
|
|
3467
|
-
id:
|
|
3504
|
+
id: cliFlag58
|
|
3468
3505
|
};
|
|
3469
3506
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
3470
3507
|
|
|
3471
3508
|
// src/options/on-browser-download.tsx
|
|
3472
|
-
import { jsx as
|
|
3473
|
-
var
|
|
3509
|
+
import { jsx as jsx55, jsxs as jsxs39, Fragment as Fragment55 } from "react/jsx-runtime";
|
|
3510
|
+
var cliFlag59 = "on-browser-download";
|
|
3474
3511
|
var onBrowserDownloadOption = {
|
|
3475
3512
|
name: "Browser download callback function",
|
|
3476
|
-
cliFlag:
|
|
3477
|
-
description: () => /* @__PURE__ */
|
|
3513
|
+
cliFlag: cliFlag59,
|
|
3514
|
+
description: () => /* @__PURE__ */ jsxs39(Fragment55, {
|
|
3478
3515
|
children: [
|
|
3479
3516
|
"Gets called when no compatible local browser is detected on the system and this API needs to download a browser. Return a callback to observe progress.",
|
|
3480
3517
|
" ",
|
|
3481
|
-
/* @__PURE__ */
|
|
3518
|
+
/* @__PURE__ */ jsx55("a", {
|
|
3482
3519
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
3483
3520
|
children: "See here for how to use this option."
|
|
3484
3521
|
})
|
|
@@ -3493,26 +3530,26 @@ var onBrowserDownloadOption = {
|
|
|
3493
3530
|
setConfig: () => {
|
|
3494
3531
|
throw new Error("does not support config file");
|
|
3495
3532
|
},
|
|
3496
|
-
id:
|
|
3533
|
+
id: cliFlag59
|
|
3497
3534
|
};
|
|
3498
3535
|
|
|
3499
3536
|
// src/options/out-dir.tsx
|
|
3500
|
-
import { jsx as
|
|
3501
|
-
var
|
|
3537
|
+
import { jsx as jsx56, jsxs as jsxs40, Fragment as Fragment56 } from "react/jsx-runtime";
|
|
3538
|
+
var cliFlag60 = "out-dir";
|
|
3502
3539
|
var currentOutDir = null;
|
|
3503
3540
|
var outDirOption = {
|
|
3504
3541
|
name: "Output Directory",
|
|
3505
|
-
cliFlag:
|
|
3542
|
+
cliFlag: cliFlag60,
|
|
3506
3543
|
description: () => {
|
|
3507
|
-
return /* @__PURE__ */
|
|
3544
|
+
return /* @__PURE__ */ jsxs40(Fragment56, {
|
|
3508
3545
|
children: [
|
|
3509
3546
|
"Define the location of the resulting bundle. By default it is a folder called ",
|
|
3510
|
-
/* @__PURE__ */
|
|
3547
|
+
/* @__PURE__ */ jsx56("code", {
|
|
3511
3548
|
children: "build"
|
|
3512
3549
|
}),
|
|
3513
3550
|
", adjacent to the",
|
|
3514
3551
|
" ",
|
|
3515
|
-
/* @__PURE__ */
|
|
3552
|
+
/* @__PURE__ */ jsx56("a", {
|
|
3516
3553
|
href: "/docs/terminology/remotion-root",
|
|
3517
3554
|
children: "Remotion Root"
|
|
3518
3555
|
}),
|
|
@@ -3523,10 +3560,10 @@ var outDirOption = {
|
|
|
3523
3560
|
ssrName: "outDir",
|
|
3524
3561
|
docLink: "https://www.remotion.dev/docs/cli/bundle#--out-dir",
|
|
3525
3562
|
getValue: ({ commandLine }) => {
|
|
3526
|
-
if (commandLine[
|
|
3563
|
+
if (commandLine[cliFlag60] !== undefined) {
|
|
3527
3564
|
return {
|
|
3528
3565
|
source: "cli",
|
|
3529
|
-
value: commandLine[
|
|
3566
|
+
value: commandLine[cliFlag60]
|
|
3530
3567
|
};
|
|
3531
3568
|
}
|
|
3532
3569
|
if (currentOutDir !== null) {
|
|
@@ -3544,7 +3581,7 @@ var outDirOption = {
|
|
|
3544
3581
|
currentOutDir = value3;
|
|
3545
3582
|
},
|
|
3546
3583
|
type: "",
|
|
3547
|
-
id:
|
|
3584
|
+
id: cliFlag60
|
|
3548
3585
|
};
|
|
3549
3586
|
|
|
3550
3587
|
// src/validate.ts
|
|
@@ -3554,21 +3591,21 @@ var validateDimension = NoReactInternals3.validateDimension;
|
|
|
3554
3591
|
var validateDurationInFrames = NoReactInternals3.validateDurationInFrames;
|
|
3555
3592
|
|
|
3556
3593
|
// src/options/override-duration.tsx
|
|
3557
|
-
import { jsx as
|
|
3594
|
+
import { jsx as jsx57, Fragment as Fragment57 } from "react/jsx-runtime";
|
|
3558
3595
|
var currentDuration = null;
|
|
3559
|
-
var
|
|
3596
|
+
var cliFlag61 = "duration";
|
|
3560
3597
|
var overrideDurationOption = {
|
|
3561
3598
|
name: "Override Duration",
|
|
3562
|
-
cliFlag:
|
|
3563
|
-
description: () => /* @__PURE__ */
|
|
3599
|
+
cliFlag: cliFlag61,
|
|
3600
|
+
description: () => /* @__PURE__ */ jsx57(Fragment57, {
|
|
3564
3601
|
children: "Overrides the duration in frames of the composition."
|
|
3565
3602
|
}),
|
|
3566
3603
|
ssrName: null,
|
|
3567
3604
|
docLink: "https://www.remotion.dev/docs/config#overrideduration",
|
|
3568
3605
|
type: null,
|
|
3569
3606
|
getValue: ({ commandLine }) => {
|
|
3570
|
-
if (commandLine[
|
|
3571
|
-
const value3 = commandLine[
|
|
3607
|
+
if (commandLine[cliFlag61] !== undefined) {
|
|
3608
|
+
const value3 = commandLine[cliFlag61];
|
|
3572
3609
|
validateDurationInFrames(value3, {
|
|
3573
3610
|
component: "in --duration flag",
|
|
3574
3611
|
allowFloats: false
|
|
@@ -3599,25 +3636,25 @@ var overrideDurationOption = {
|
|
|
3599
3636
|
reset: () => {
|
|
3600
3637
|
currentDuration = null;
|
|
3601
3638
|
},
|
|
3602
|
-
id:
|
|
3639
|
+
id: cliFlag61
|
|
3603
3640
|
};
|
|
3604
3641
|
|
|
3605
3642
|
// src/options/override-fps.tsx
|
|
3606
|
-
import { jsx as
|
|
3643
|
+
import { jsx as jsx58, Fragment as Fragment58 } from "react/jsx-runtime";
|
|
3607
3644
|
var currentFps = null;
|
|
3608
|
-
var
|
|
3645
|
+
var cliFlag62 = "fps";
|
|
3609
3646
|
var overrideFpsOption = {
|
|
3610
3647
|
name: "Override FPS",
|
|
3611
|
-
cliFlag:
|
|
3612
|
-
description: () => /* @__PURE__ */
|
|
3648
|
+
cliFlag: cliFlag62,
|
|
3649
|
+
description: () => /* @__PURE__ */ jsx58(Fragment58, {
|
|
3613
3650
|
children: "Overrides the frames per second of the composition."
|
|
3614
3651
|
}),
|
|
3615
3652
|
ssrName: null,
|
|
3616
3653
|
docLink: "https://www.remotion.dev/docs/config#overridefps",
|
|
3617
3654
|
type: null,
|
|
3618
3655
|
getValue: ({ commandLine }) => {
|
|
3619
|
-
if (commandLine[
|
|
3620
|
-
const value3 = commandLine[
|
|
3656
|
+
if (commandLine[cliFlag62] !== undefined) {
|
|
3657
|
+
const value3 = commandLine[cliFlag62];
|
|
3621
3658
|
validateFps(value3, "in --fps flag", false);
|
|
3622
3659
|
return {
|
|
3623
3660
|
source: "cli",
|
|
@@ -3642,25 +3679,25 @@ var overrideFpsOption = {
|
|
|
3642
3679
|
reset: () => {
|
|
3643
3680
|
currentFps = null;
|
|
3644
3681
|
},
|
|
3645
|
-
id:
|
|
3682
|
+
id: cliFlag62
|
|
3646
3683
|
};
|
|
3647
3684
|
|
|
3648
3685
|
// src/options/override-height.tsx
|
|
3649
|
-
import { jsx as
|
|
3686
|
+
import { jsx as jsx59, Fragment as Fragment59 } from "react/jsx-runtime";
|
|
3650
3687
|
var currentHeight = null;
|
|
3651
|
-
var
|
|
3688
|
+
var cliFlag63 = "height";
|
|
3652
3689
|
var overrideHeightOption = {
|
|
3653
3690
|
name: "Override Height",
|
|
3654
|
-
cliFlag:
|
|
3655
|
-
description: () => /* @__PURE__ */
|
|
3691
|
+
cliFlag: cliFlag63,
|
|
3692
|
+
description: () => /* @__PURE__ */ jsx59(Fragment59, {
|
|
3656
3693
|
children: "Overrides the height of the composition."
|
|
3657
3694
|
}),
|
|
3658
3695
|
ssrName: null,
|
|
3659
3696
|
docLink: "https://www.remotion.dev/docs/config#overrideheight",
|
|
3660
3697
|
type: null,
|
|
3661
3698
|
getValue: ({ commandLine }) => {
|
|
3662
|
-
if (commandLine[
|
|
3663
|
-
const value3 = commandLine[
|
|
3699
|
+
if (commandLine[cliFlag63] !== undefined) {
|
|
3700
|
+
const value3 = commandLine[cliFlag63];
|
|
3664
3701
|
validateDimension(value3, "height", "in --height flag");
|
|
3665
3702
|
return {
|
|
3666
3703
|
source: "cli",
|
|
@@ -3685,25 +3722,25 @@ var overrideHeightOption = {
|
|
|
3685
3722
|
reset: () => {
|
|
3686
3723
|
currentHeight = null;
|
|
3687
3724
|
},
|
|
3688
|
-
id:
|
|
3725
|
+
id: cliFlag63
|
|
3689
3726
|
};
|
|
3690
3727
|
|
|
3691
3728
|
// src/options/override-width.tsx
|
|
3692
|
-
import { jsx as
|
|
3729
|
+
import { jsx as jsx60, Fragment as Fragment60 } from "react/jsx-runtime";
|
|
3693
3730
|
var currentWidth = null;
|
|
3694
|
-
var
|
|
3731
|
+
var cliFlag64 = "width";
|
|
3695
3732
|
var overrideWidthOption = {
|
|
3696
3733
|
name: "Override Width",
|
|
3697
|
-
cliFlag:
|
|
3698
|
-
description: () => /* @__PURE__ */
|
|
3734
|
+
cliFlag: cliFlag64,
|
|
3735
|
+
description: () => /* @__PURE__ */ jsx60(Fragment60, {
|
|
3699
3736
|
children: "Overrides the width of the composition."
|
|
3700
3737
|
}),
|
|
3701
3738
|
ssrName: null,
|
|
3702
3739
|
docLink: "https://www.remotion.dev/docs/config#overridewidth",
|
|
3703
3740
|
type: null,
|
|
3704
3741
|
getValue: ({ commandLine }) => {
|
|
3705
|
-
if (commandLine[
|
|
3706
|
-
const value3 = commandLine[
|
|
3742
|
+
if (commandLine[cliFlag64] !== undefined) {
|
|
3743
|
+
const value3 = commandLine[cliFlag64];
|
|
3707
3744
|
validateDimension(value3, "width", "in --width flag");
|
|
3708
3745
|
return {
|
|
3709
3746
|
source: "cli",
|
|
@@ -3728,13 +3765,13 @@ var overrideWidthOption = {
|
|
|
3728
3765
|
reset: () => {
|
|
3729
3766
|
currentWidth = null;
|
|
3730
3767
|
},
|
|
3731
|
-
id:
|
|
3768
|
+
id: cliFlag64
|
|
3732
3769
|
};
|
|
3733
3770
|
|
|
3734
3771
|
// src/options/overwrite.tsx
|
|
3735
|
-
import { jsx as
|
|
3772
|
+
import { jsx as jsx61, jsxs as jsxs41, Fragment as Fragment61 } from "react/jsx-runtime";
|
|
3736
3773
|
var shouldOverwrite = null;
|
|
3737
|
-
var
|
|
3774
|
+
var cliFlag65 = "overwrite";
|
|
3738
3775
|
var validate2 = (value3) => {
|
|
3739
3776
|
if (typeof value3 !== "boolean") {
|
|
3740
3777
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -3742,15 +3779,15 @@ var validate2 = (value3) => {
|
|
|
3742
3779
|
};
|
|
3743
3780
|
var overwriteOption = {
|
|
3744
3781
|
name: "Overwrite output",
|
|
3745
|
-
cliFlag:
|
|
3746
|
-
description: () => /* @__PURE__ */
|
|
3782
|
+
cliFlag: cliFlag65,
|
|
3783
|
+
description: () => /* @__PURE__ */ jsxs41(Fragment61, {
|
|
3747
3784
|
children: [
|
|
3748
3785
|
"If set to ",
|
|
3749
|
-
/* @__PURE__ */
|
|
3786
|
+
/* @__PURE__ */ jsx61("code", {
|
|
3750
3787
|
children: "false"
|
|
3751
3788
|
}),
|
|
3752
3789
|
", will prevent rendering to a path that already exists. Default is ",
|
|
3753
|
-
/* @__PURE__ */
|
|
3790
|
+
/* @__PURE__ */ jsx61("code", {
|
|
3754
3791
|
children: "true"
|
|
3755
3792
|
}),
|
|
3756
3793
|
"."
|
|
@@ -3760,11 +3797,11 @@ var overwriteOption = {
|
|
|
3760
3797
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
3761
3798
|
type: false,
|
|
3762
3799
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
3763
|
-
if (commandLine[
|
|
3764
|
-
validate2(commandLine[
|
|
3800
|
+
if (commandLine[cliFlag65] !== undefined && commandLine[cliFlag65] !== null) {
|
|
3801
|
+
validate2(commandLine[cliFlag65]);
|
|
3765
3802
|
return {
|
|
3766
3803
|
source: "cli",
|
|
3767
|
-
value: commandLine[
|
|
3804
|
+
value: commandLine[cliFlag65]
|
|
3768
3805
|
};
|
|
3769
3806
|
}
|
|
3770
3807
|
if (shouldOverwrite !== null) {
|
|
@@ -3785,36 +3822,36 @@ var overwriteOption = {
|
|
|
3785
3822
|
reset: () => {
|
|
3786
3823
|
shouldOverwrite = null;
|
|
3787
3824
|
},
|
|
3788
|
-
id:
|
|
3825
|
+
id: cliFlag65
|
|
3789
3826
|
};
|
|
3790
3827
|
|
|
3791
3828
|
// src/options/package-manager.tsx
|
|
3792
|
-
import { jsx as
|
|
3793
|
-
var
|
|
3829
|
+
import { jsx as jsx62, jsxs as jsxs42, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
3830
|
+
var cliFlag66 = "package-manager";
|
|
3794
3831
|
var currentPackageManager = null;
|
|
3795
3832
|
var packageManagerOption = {
|
|
3796
3833
|
name: "Package Manager",
|
|
3797
|
-
cliFlag:
|
|
3834
|
+
cliFlag: cliFlag66,
|
|
3798
3835
|
description: () => {
|
|
3799
|
-
return /* @__PURE__ */
|
|
3836
|
+
return /* @__PURE__ */ jsxs42(Fragment62, {
|
|
3800
3837
|
children: [
|
|
3801
3838
|
"Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
|
|
3802
|
-
/* @__PURE__ */
|
|
3839
|
+
/* @__PURE__ */ jsx62("br", {}),
|
|
3803
3840
|
"Acceptable values are ",
|
|
3804
|
-
/* @__PURE__ */
|
|
3841
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3805
3842
|
children: "npm"
|
|
3806
3843
|
}),
|
|
3807
3844
|
", ",
|
|
3808
|
-
/* @__PURE__ */
|
|
3845
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3809
3846
|
children: "yarn"
|
|
3810
3847
|
}),
|
|
3811
3848
|
",",
|
|
3812
3849
|
" ",
|
|
3813
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3814
3851
|
children: "pnpm"
|
|
3815
3852
|
}),
|
|
3816
3853
|
" and ",
|
|
3817
|
-
/* @__PURE__ */
|
|
3854
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3818
3855
|
children: "bun"
|
|
3819
3856
|
}),
|
|
3820
3857
|
"."
|
|
@@ -3824,10 +3861,10 @@ var packageManagerOption = {
|
|
|
3824
3861
|
ssrName: "packageManager",
|
|
3825
3862
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--package-manager",
|
|
3826
3863
|
getValue: ({ commandLine }) => {
|
|
3827
|
-
if (commandLine[
|
|
3864
|
+
if (commandLine[cliFlag66] !== undefined) {
|
|
3828
3865
|
return {
|
|
3829
3866
|
source: "cli",
|
|
3830
|
-
value: commandLine[
|
|
3867
|
+
value: commandLine[cliFlag66]
|
|
3831
3868
|
};
|
|
3832
3869
|
}
|
|
3833
3870
|
if (currentPackageManager !== null) {
|
|
@@ -3845,7 +3882,7 @@ var packageManagerOption = {
|
|
|
3845
3882
|
currentPackageManager = value3;
|
|
3846
3883
|
},
|
|
3847
3884
|
type: "",
|
|
3848
|
-
id:
|
|
3885
|
+
id: cliFlag66
|
|
3849
3886
|
};
|
|
3850
3887
|
|
|
3851
3888
|
// src/pixel-format.ts
|
|
@@ -3868,17 +3905,17 @@ var validPixelFormatsForCodec = (codec) => {
|
|
|
3868
3905
|
};
|
|
3869
3906
|
|
|
3870
3907
|
// src/options/pixel-format.tsx
|
|
3871
|
-
import { jsx as
|
|
3908
|
+
import { jsx as jsx63, jsxs as jsxs43, Fragment as Fragment63 } from "react/jsx-runtime";
|
|
3872
3909
|
var currentPixelFormat = DEFAULT_PIXEL_FORMAT;
|
|
3873
|
-
var
|
|
3910
|
+
var cliFlag67 = "pixel-format";
|
|
3874
3911
|
var pixelFormatOption = {
|
|
3875
3912
|
name: "Pixel format",
|
|
3876
|
-
cliFlag:
|
|
3877
|
-
description: () => /* @__PURE__ */
|
|
3913
|
+
cliFlag: cliFlag67,
|
|
3914
|
+
description: () => /* @__PURE__ */ jsxs43(Fragment63, {
|
|
3878
3915
|
children: [
|
|
3879
3916
|
"Sets the pixel format in FFmpeg. See",
|
|
3880
3917
|
" ",
|
|
3881
|
-
/* @__PURE__ */
|
|
3918
|
+
/* @__PURE__ */ jsx63("a", {
|
|
3882
3919
|
href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling",
|
|
3883
3920
|
children: "the FFmpeg docs for an explanation"
|
|
3884
3921
|
}),
|
|
@@ -3897,10 +3934,10 @@ var pixelFormatOption = {
|
|
|
3897
3934
|
value: options.uiPixelFormat
|
|
3898
3935
|
};
|
|
3899
3936
|
}
|
|
3900
|
-
if (commandLine[
|
|
3937
|
+
if (commandLine[cliFlag67] !== undefined) {
|
|
3901
3938
|
return {
|
|
3902
3939
|
source: "from --pixel-format flag",
|
|
3903
|
-
value: commandLine[
|
|
3940
|
+
value: commandLine[cliFlag67]
|
|
3904
3941
|
};
|
|
3905
3942
|
}
|
|
3906
3943
|
if (options && options.compositionDefaultPixelFormat !== null) {
|
|
@@ -3926,26 +3963,26 @@ var pixelFormatOption = {
|
|
|
3926
3963
|
}
|
|
3927
3964
|
currentPixelFormat = value3;
|
|
3928
3965
|
},
|
|
3929
|
-
id:
|
|
3966
|
+
id: cliFlag67
|
|
3930
3967
|
};
|
|
3931
3968
|
|
|
3932
3969
|
// src/options/port.tsx
|
|
3933
|
-
import { jsx as
|
|
3934
|
-
var
|
|
3970
|
+
import { jsx as jsx64, Fragment as Fragment64 } from "react/jsx-runtime";
|
|
3971
|
+
var cliFlag68 = "port";
|
|
3935
3972
|
var currentPort = null;
|
|
3936
3973
|
var portOption = {
|
|
3937
3974
|
name: "Port",
|
|
3938
|
-
cliFlag:
|
|
3939
|
-
description: () => /* @__PURE__ */
|
|
3975
|
+
cliFlag: cliFlag68,
|
|
3976
|
+
description: () => /* @__PURE__ */ jsx64(Fragment64, {
|
|
3940
3977
|
children: "Set a custom HTTP server port for the Studio or the render process. If not defined, Remotion will try to find a free port."
|
|
3941
3978
|
}),
|
|
3942
3979
|
ssrName: null,
|
|
3943
3980
|
docLink: "https://www.remotion.dev/docs/config#setstudioport",
|
|
3944
3981
|
getValue: ({ commandLine }) => {
|
|
3945
|
-
if (commandLine[
|
|
3982
|
+
if (commandLine[cliFlag68] !== undefined) {
|
|
3946
3983
|
return {
|
|
3947
3984
|
source: "cli",
|
|
3948
|
-
value: commandLine[
|
|
3985
|
+
value: commandLine[cliFlag68]
|
|
3949
3986
|
};
|
|
3950
3987
|
}
|
|
3951
3988
|
if (currentPort !== null) {
|
|
@@ -3963,25 +4000,25 @@ var portOption = {
|
|
|
3963
4000
|
currentPort = value3;
|
|
3964
4001
|
},
|
|
3965
4002
|
type: 0,
|
|
3966
|
-
id:
|
|
4003
|
+
id: cliFlag68
|
|
3967
4004
|
};
|
|
3968
4005
|
|
|
3969
4006
|
// src/options/prefer-lossless.tsx
|
|
3970
|
-
import { jsx as
|
|
3971
|
-
var
|
|
4007
|
+
import { jsx as jsx65, jsxs as jsxs44, Fragment as Fragment65 } from "react/jsx-runtime";
|
|
4008
|
+
var cliFlag69 = "prefer-lossless";
|
|
3972
4009
|
var input = false;
|
|
3973
4010
|
var preferLosslessAudioOption = {
|
|
3974
4011
|
name: "Prefer lossless",
|
|
3975
|
-
cliFlag:
|
|
3976
|
-
description: () => /* @__PURE__ */
|
|
4012
|
+
cliFlag: cliFlag69,
|
|
4013
|
+
description: () => /* @__PURE__ */ jsxs44(Fragment65, {
|
|
3977
4014
|
children: [
|
|
3978
4015
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
3979
|
-
/* @__PURE__ */
|
|
4016
|
+
/* @__PURE__ */ jsx65("code", {
|
|
3980
4017
|
children: "audioCodec"
|
|
3981
4018
|
}),
|
|
3982
4019
|
", it takes priority over",
|
|
3983
4020
|
" ",
|
|
3984
|
-
/* @__PURE__ */
|
|
4021
|
+
/* @__PURE__ */ jsx65("code", {
|
|
3985
4022
|
children: "preferLossless"
|
|
3986
4023
|
}),
|
|
3987
4024
|
"."
|
|
@@ -3991,7 +4028,7 @@ var preferLosslessAudioOption = {
|
|
|
3991
4028
|
type: false,
|
|
3992
4029
|
ssrName: "preferLossless",
|
|
3993
4030
|
getValue: ({ commandLine }) => {
|
|
3994
|
-
if (commandLine[
|
|
4031
|
+
if (commandLine[cliFlag69]) {
|
|
3995
4032
|
return { value: true, source: "cli" };
|
|
3996
4033
|
}
|
|
3997
4034
|
if (input === true) {
|
|
@@ -4002,20 +4039,20 @@ var preferLosslessAudioOption = {
|
|
|
4002
4039
|
setConfig: (val) => {
|
|
4003
4040
|
input = val;
|
|
4004
4041
|
},
|
|
4005
|
-
id:
|
|
4042
|
+
id: cliFlag69
|
|
4006
4043
|
};
|
|
4007
4044
|
|
|
4008
4045
|
// src/options/preview-sample-rate.tsx
|
|
4009
|
-
import { jsx as
|
|
4010
|
-
var
|
|
4046
|
+
import { jsx as jsx66, jsxs as jsxs45, Fragment as Fragment66 } from "react/jsx-runtime";
|
|
4047
|
+
var cliFlag70 = "preview-sample-rate";
|
|
4011
4048
|
var currentPreviewSampleRate = null;
|
|
4012
4049
|
var previewSampleRateOption = {
|
|
4013
4050
|
name: "Preview Sample Rate",
|
|
4014
|
-
cliFlag:
|
|
4015
|
-
description: () => /* @__PURE__ */
|
|
4051
|
+
cliFlag: cliFlag70,
|
|
4052
|
+
description: () => /* @__PURE__ */ jsxs45(Fragment66, {
|
|
4016
4053
|
children: [
|
|
4017
4054
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
4018
|
-
/* @__PURE__ */
|
|
4055
|
+
/* @__PURE__ */ jsx66("code", {
|
|
4019
4056
|
children: "48000"
|
|
4020
4057
|
}),
|
|
4021
4058
|
" Hz."
|
|
@@ -4025,8 +4062,8 @@ var previewSampleRateOption = {
|
|
|
4025
4062
|
docLink: "https://www.remotion.dev/docs/config#setpreviewsamplerate",
|
|
4026
4063
|
type: null,
|
|
4027
4064
|
getValue: ({ commandLine }) => {
|
|
4028
|
-
if (commandLine[
|
|
4029
|
-
return { value: commandLine[
|
|
4065
|
+
if (commandLine[cliFlag70] !== undefined) {
|
|
4066
|
+
return { value: commandLine[cliFlag70], source: "cli" };
|
|
4030
4067
|
}
|
|
4031
4068
|
if (currentPreviewSampleRate !== null) {
|
|
4032
4069
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -4036,19 +4073,19 @@ var previewSampleRateOption = {
|
|
|
4036
4073
|
setConfig: (value3) => {
|
|
4037
4074
|
currentPreviewSampleRate = value3;
|
|
4038
4075
|
},
|
|
4039
|
-
id:
|
|
4076
|
+
id: cliFlag70
|
|
4040
4077
|
};
|
|
4041
4078
|
|
|
4042
4079
|
// src/options/props.tsx
|
|
4043
|
-
import { jsx as
|
|
4044
|
-
var
|
|
4080
|
+
import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
|
|
4081
|
+
var cliFlag71 = "props";
|
|
4045
4082
|
var propsOption = {
|
|
4046
4083
|
name: "Input Props",
|
|
4047
|
-
cliFlag:
|
|
4048
|
-
description: () => /* @__PURE__ */
|
|
4084
|
+
cliFlag: cliFlag71,
|
|
4085
|
+
description: () => /* @__PURE__ */ jsxs46(Fragment67, {
|
|
4049
4086
|
children: [
|
|
4050
4087
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
4051
|
-
/* @__PURE__ */
|
|
4088
|
+
/* @__PURE__ */ jsxs46("code", {
|
|
4052
4089
|
children: [
|
|
4053
4090
|
"--props='",
|
|
4054
4091
|
"{",
|
|
@@ -4058,7 +4095,7 @@ var propsOption = {
|
|
|
4058
4095
|
]
|
|
4059
4096
|
}),
|
|
4060
4097
|
") or a path to a JSON file (",
|
|
4061
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ jsx67("code", {
|
|
4062
4099
|
children: "./path/to/props.json"
|
|
4063
4100
|
}),
|
|
4064
4101
|
")."
|
|
@@ -4067,10 +4104,10 @@ var propsOption = {
|
|
|
4067
4104
|
ssrName: null,
|
|
4068
4105
|
docLink: "https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli",
|
|
4069
4106
|
getValue: ({ commandLine }) => {
|
|
4070
|
-
if (commandLine[
|
|
4107
|
+
if (commandLine[cliFlag71] !== undefined) {
|
|
4071
4108
|
return {
|
|
4072
4109
|
source: "cli",
|
|
4073
|
-
value: commandLine[
|
|
4110
|
+
value: commandLine[cliFlag71]
|
|
4074
4111
|
};
|
|
4075
4112
|
}
|
|
4076
4113
|
return {
|
|
@@ -4082,11 +4119,11 @@ var propsOption = {
|
|
|
4082
4119
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
4083
4120
|
},
|
|
4084
4121
|
type: "",
|
|
4085
|
-
id:
|
|
4122
|
+
id: cliFlag71
|
|
4086
4123
|
};
|
|
4087
4124
|
|
|
4088
4125
|
// src/options/prores-profile.tsx
|
|
4089
|
-
import { jsx as
|
|
4126
|
+
import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
|
|
4090
4127
|
var validProResProfiles = [
|
|
4091
4128
|
"4444-xq",
|
|
4092
4129
|
"4444",
|
|
@@ -4096,14 +4133,14 @@ var validProResProfiles = [
|
|
|
4096
4133
|
"proxy"
|
|
4097
4134
|
];
|
|
4098
4135
|
var proResProfile;
|
|
4099
|
-
var
|
|
4136
|
+
var cliFlag72 = "prores-profile";
|
|
4100
4137
|
var proResProfileOption = {
|
|
4101
4138
|
name: "ProRes profile",
|
|
4102
|
-
cliFlag:
|
|
4103
|
-
description: () => /* @__PURE__ */
|
|
4139
|
+
cliFlag: cliFlag72,
|
|
4140
|
+
description: () => /* @__PURE__ */ jsxs47(Fragment68, {
|
|
4104
4141
|
children: [
|
|
4105
4142
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
4106
|
-
/* @__PURE__ */
|
|
4143
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4107
4144
|
children: "prores"
|
|
4108
4145
|
}),
|
|
4109
4146
|
". Possible values:",
|
|
@@ -4111,12 +4148,12 @@ var proResProfileOption = {
|
|
|
4111
4148
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
4112
4149
|
". Default:",
|
|
4113
4150
|
" ",
|
|
4114
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4115
4152
|
children: '"hq"'
|
|
4116
4153
|
}),
|
|
4117
4154
|
". See",
|
|
4118
4155
|
" ",
|
|
4119
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ jsx68("a", {
|
|
4120
4157
|
href: "https://video.stackexchange.com/a/14715",
|
|
4121
4158
|
children: "here"
|
|
4122
4159
|
}),
|
|
@@ -4133,10 +4170,10 @@ var proResProfileOption = {
|
|
|
4133
4170
|
value: options.uiProResProfile
|
|
4134
4171
|
};
|
|
4135
4172
|
}
|
|
4136
|
-
if (commandLine[
|
|
4173
|
+
if (commandLine[cliFlag72] !== undefined) {
|
|
4137
4174
|
return {
|
|
4138
4175
|
source: "from --prores-profile flag",
|
|
4139
|
-
value: String(commandLine[
|
|
4176
|
+
value: String(commandLine[cliFlag72])
|
|
4140
4177
|
};
|
|
4141
4178
|
}
|
|
4142
4179
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -4159,24 +4196,24 @@ var proResProfileOption = {
|
|
|
4159
4196
|
setConfig: (value3) => {
|
|
4160
4197
|
proResProfile = value3;
|
|
4161
4198
|
},
|
|
4162
|
-
id:
|
|
4199
|
+
id: cliFlag72
|
|
4163
4200
|
};
|
|
4164
4201
|
|
|
4165
4202
|
// src/options/public-dir.tsx
|
|
4166
|
-
import { jsx as
|
|
4167
|
-
var
|
|
4203
|
+
import { jsx as jsx69, jsxs as jsxs48, Fragment as Fragment69 } from "react/jsx-runtime";
|
|
4204
|
+
var cliFlag73 = "public-dir";
|
|
4168
4205
|
var currentPublicDir = null;
|
|
4169
4206
|
var publicDirOption = {
|
|
4170
4207
|
name: "Public Directory",
|
|
4171
|
-
cliFlag:
|
|
4208
|
+
cliFlag: cliFlag73,
|
|
4172
4209
|
description: () => {
|
|
4173
|
-
return /* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ jsxs48(Fragment69, {
|
|
4174
4211
|
children: [
|
|
4175
4212
|
"Define the location of the",
|
|
4176
4213
|
" ",
|
|
4177
|
-
/* @__PURE__ */
|
|
4214
|
+
/* @__PURE__ */ jsx69("a", {
|
|
4178
4215
|
href: "/docs/terminology/public-dir",
|
|
4179
|
-
children: /* @__PURE__ */
|
|
4216
|
+
children: /* @__PURE__ */ jsx69("code", {
|
|
4180
4217
|
children: "public/ directory"
|
|
4181
4218
|
})
|
|
4182
4219
|
}),
|
|
@@ -4187,10 +4224,10 @@ var publicDirOption = {
|
|
|
4187
4224
|
ssrName: "publicDir",
|
|
4188
4225
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
4189
4226
|
getValue: ({ commandLine }) => {
|
|
4190
|
-
if (commandLine[
|
|
4227
|
+
if (commandLine[cliFlag73] !== undefined) {
|
|
4191
4228
|
return {
|
|
4192
4229
|
source: "cli",
|
|
4193
|
-
value: commandLine[
|
|
4230
|
+
value: commandLine[cliFlag73]
|
|
4194
4231
|
};
|
|
4195
4232
|
}
|
|
4196
4233
|
if (currentPublicDir !== null) {
|
|
@@ -4208,20 +4245,20 @@ var publicDirOption = {
|
|
|
4208
4245
|
currentPublicDir = value3;
|
|
4209
4246
|
},
|
|
4210
4247
|
type: "",
|
|
4211
|
-
id:
|
|
4248
|
+
id: cliFlag73
|
|
4212
4249
|
};
|
|
4213
4250
|
|
|
4214
4251
|
// src/options/public-license-key.tsx
|
|
4215
|
-
import { jsx as
|
|
4216
|
-
var
|
|
4252
|
+
import { jsx as jsx70, jsxs as jsxs49, Fragment as Fragment70 } from "react/jsx-runtime";
|
|
4253
|
+
var cliFlag74 = "public-license-key";
|
|
4217
4254
|
var currentPublicLicenseKey = null;
|
|
4218
4255
|
var publicLicenseKeyOption = {
|
|
4219
4256
|
name: "Public License Key",
|
|
4220
|
-
cliFlag:
|
|
4221
|
-
description: () => /* @__PURE__ */
|
|
4257
|
+
cliFlag: cliFlag74,
|
|
4258
|
+
description: () => /* @__PURE__ */ jsxs49(Fragment70, {
|
|
4222
4259
|
children: [
|
|
4223
4260
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4224
|
-
/* @__PURE__ */
|
|
4261
|
+
/* @__PURE__ */ jsx70("a", {
|
|
4225
4262
|
href: "https://remotion.pro/dashboard",
|
|
4226
4263
|
children: "remotion.pro"
|
|
4227
4264
|
}),
|
|
@@ -4231,10 +4268,10 @@ var publicLicenseKeyOption = {
|
|
|
4231
4268
|
ssrName: "publicLicenseKey",
|
|
4232
4269
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
4233
4270
|
getValue: ({ commandLine }) => {
|
|
4234
|
-
if (commandLine[
|
|
4271
|
+
if (commandLine[cliFlag74] !== undefined) {
|
|
4235
4272
|
return {
|
|
4236
4273
|
source: "cli",
|
|
4237
|
-
value: commandLine[
|
|
4274
|
+
value: commandLine[cliFlag74]
|
|
4238
4275
|
};
|
|
4239
4276
|
}
|
|
4240
4277
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4255,25 +4292,25 @@ var publicLicenseKeyOption = {
|
|
|
4255
4292
|
currentPublicLicenseKey = value3;
|
|
4256
4293
|
},
|
|
4257
4294
|
type: null,
|
|
4258
|
-
id:
|
|
4295
|
+
id: cliFlag74
|
|
4259
4296
|
};
|
|
4260
4297
|
|
|
4261
4298
|
// src/options/public-path.tsx
|
|
4262
|
-
import { jsx as
|
|
4263
|
-
var
|
|
4299
|
+
import { jsx as jsx71, jsxs as jsxs50, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4300
|
+
var cliFlag75 = "public-path";
|
|
4264
4301
|
var currentPublicPath = null;
|
|
4265
4302
|
var publicPathOption = {
|
|
4266
4303
|
name: "Public Path",
|
|
4267
|
-
cliFlag:
|
|
4304
|
+
cliFlag: cliFlag75,
|
|
4268
4305
|
description: () => {
|
|
4269
|
-
return /* @__PURE__ */
|
|
4306
|
+
return /* @__PURE__ */ jsxs50(Fragment71, {
|
|
4270
4307
|
children: [
|
|
4271
4308
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4272
|
-
/* @__PURE__ */
|
|
4309
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4273
4310
|
children: "./"
|
|
4274
4311
|
}),
|
|
4275
4312
|
", making the bundle relocatable. Set an absolute path such as ",
|
|
4276
|
-
/* @__PURE__ */
|
|
4313
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4277
4314
|
children: "/sites/my-site/"
|
|
4278
4315
|
}),
|
|
4279
4316
|
" to host the bundle at a fixed location."
|
|
@@ -4283,10 +4320,10 @@ var publicPathOption = {
|
|
|
4283
4320
|
ssrName: "publicPath",
|
|
4284
4321
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
4285
4322
|
getValue: ({ commandLine }) => {
|
|
4286
|
-
if (commandLine[
|
|
4323
|
+
if (commandLine[cliFlag75] !== undefined) {
|
|
4287
4324
|
return {
|
|
4288
4325
|
source: "cli",
|
|
4289
|
-
value: commandLine[
|
|
4326
|
+
value: commandLine[cliFlag75]
|
|
4290
4327
|
};
|
|
4291
4328
|
}
|
|
4292
4329
|
if (currentPublicPath !== null) {
|
|
@@ -4304,29 +4341,29 @@ var publicPathOption = {
|
|
|
4304
4341
|
currentPublicPath = value3;
|
|
4305
4342
|
},
|
|
4306
4343
|
type: "",
|
|
4307
|
-
id:
|
|
4344
|
+
id: cliFlag75
|
|
4308
4345
|
};
|
|
4309
4346
|
|
|
4310
4347
|
// src/options/repro.tsx
|
|
4311
|
-
import { jsx as
|
|
4348
|
+
import { jsx as jsx72, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4312
4349
|
var enableRepro = false;
|
|
4313
4350
|
var setRepro = (should) => {
|
|
4314
4351
|
enableRepro = should;
|
|
4315
4352
|
};
|
|
4316
|
-
var
|
|
4353
|
+
var cliFlag76 = "repro";
|
|
4317
4354
|
var reproOption = {
|
|
4318
4355
|
name: "Create reproduction",
|
|
4319
|
-
cliFlag:
|
|
4320
|
-
description: () => /* @__PURE__ */
|
|
4356
|
+
cliFlag: cliFlag76,
|
|
4357
|
+
description: () => /* @__PURE__ */ jsx72(Fragment72, {
|
|
4321
4358
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4322
4359
|
}),
|
|
4323
4360
|
ssrName: "repro",
|
|
4324
4361
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
4325
4362
|
type: false,
|
|
4326
4363
|
getValue: ({ commandLine }) => {
|
|
4327
|
-
if (commandLine[
|
|
4364
|
+
if (commandLine[cliFlag76] !== undefined && commandLine[cliFlag76] !== null) {
|
|
4328
4365
|
return {
|
|
4329
|
-
value: commandLine[
|
|
4366
|
+
value: commandLine[cliFlag76],
|
|
4330
4367
|
source: "cli"
|
|
4331
4368
|
};
|
|
4332
4369
|
}
|
|
@@ -4342,26 +4379,26 @@ var reproOption = {
|
|
|
4342
4379
|
};
|
|
4343
4380
|
},
|
|
4344
4381
|
setConfig: setRepro,
|
|
4345
|
-
id:
|
|
4382
|
+
id: cliFlag76
|
|
4346
4383
|
};
|
|
4347
4384
|
|
|
4348
4385
|
// src/options/rspack.tsx
|
|
4349
|
-
import { jsx as
|
|
4386
|
+
import { jsx as jsx73, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4350
4387
|
var rspackEnabled = false;
|
|
4351
|
-
var
|
|
4388
|
+
var cliFlag77 = "rspack";
|
|
4352
4389
|
var rspackOption = {
|
|
4353
4390
|
name: "Rspack",
|
|
4354
|
-
cliFlag:
|
|
4355
|
-
description: () => /* @__PURE__ */
|
|
4391
|
+
cliFlag: cliFlag77,
|
|
4392
|
+
description: () => /* @__PURE__ */ jsx73(Fragment73, {
|
|
4356
4393
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4357
4394
|
}),
|
|
4358
4395
|
ssrName: null,
|
|
4359
4396
|
docLink: null,
|
|
4360
4397
|
type: false,
|
|
4361
4398
|
getValue: ({ commandLine }) => {
|
|
4362
|
-
if (commandLine[
|
|
4399
|
+
if (commandLine[cliFlag77] !== undefined && commandLine[cliFlag77] !== null) {
|
|
4363
4400
|
return {
|
|
4364
|
-
value: commandLine[
|
|
4401
|
+
value: commandLine[cliFlag77],
|
|
4365
4402
|
source: "cli"
|
|
4366
4403
|
};
|
|
4367
4404
|
}
|
|
@@ -4373,21 +4410,21 @@ var rspackOption = {
|
|
|
4373
4410
|
setConfig(value3) {
|
|
4374
4411
|
rspackEnabled = value3;
|
|
4375
4412
|
},
|
|
4376
|
-
id:
|
|
4413
|
+
id: cliFlag77
|
|
4377
4414
|
};
|
|
4378
4415
|
|
|
4379
4416
|
// src/options/runs.tsx
|
|
4380
|
-
import { jsx as
|
|
4417
|
+
import { jsx as jsx74, jsxs as jsxs51, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4381
4418
|
var DEFAULT_RUNS = 3;
|
|
4382
4419
|
var currentRuns = DEFAULT_RUNS;
|
|
4383
|
-
var
|
|
4420
|
+
var cliFlag78 = "runs";
|
|
4384
4421
|
var runsOption = {
|
|
4385
4422
|
name: "Benchmark runs",
|
|
4386
|
-
cliFlag:
|
|
4387
|
-
description: () => /* @__PURE__ */
|
|
4423
|
+
cliFlag: cliFlag78,
|
|
4424
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment74, {
|
|
4388
4425
|
children: [
|
|
4389
4426
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4390
|
-
/* @__PURE__ */
|
|
4427
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4391
4428
|
children: DEFAULT_RUNS
|
|
4392
4429
|
}),
|
|
4393
4430
|
"."
|
|
@@ -4397,10 +4434,10 @@ var runsOption = {
|
|
|
4397
4434
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--runs",
|
|
4398
4435
|
type: DEFAULT_RUNS,
|
|
4399
4436
|
getValue: ({ commandLine }) => {
|
|
4400
|
-
if (commandLine[
|
|
4401
|
-
const value3 = Number(commandLine[
|
|
4437
|
+
if (commandLine[cliFlag78] !== undefined) {
|
|
4438
|
+
const value3 = Number(commandLine[cliFlag78]);
|
|
4402
4439
|
if (isNaN(value3) || value3 < 1) {
|
|
4403
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
4440
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag78]}`);
|
|
4404
4441
|
}
|
|
4405
4442
|
return { value: value3, source: "cli" };
|
|
4406
4443
|
}
|
|
@@ -4415,21 +4452,21 @@ var runsOption = {
|
|
|
4415
4452
|
}
|
|
4416
4453
|
currentRuns = value3;
|
|
4417
4454
|
},
|
|
4418
|
-
id:
|
|
4455
|
+
id: cliFlag78
|
|
4419
4456
|
};
|
|
4420
4457
|
|
|
4421
4458
|
// src/options/sample-rate.tsx
|
|
4422
|
-
import { jsx as
|
|
4423
|
-
var
|
|
4459
|
+
import { jsx as jsx75, jsxs as jsxs52, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4460
|
+
var cliFlag79 = "sample-rate";
|
|
4424
4461
|
var currentSampleRate = 48000;
|
|
4425
4462
|
var sampleRateOption = {
|
|
4426
4463
|
name: "Sample Rate",
|
|
4427
|
-
cliFlag:
|
|
4428
|
-
description: () => /* @__PURE__ */
|
|
4464
|
+
cliFlag: cliFlag79,
|
|
4465
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment75, {
|
|
4429
4466
|
children: [
|
|
4430
4467
|
"Controls the sample rate of the output audio. The default is",
|
|
4431
4468
|
" ",
|
|
4432
|
-
/* @__PURE__ */
|
|
4469
|
+
/* @__PURE__ */ jsx75("code", {
|
|
4433
4470
|
children: "48000"
|
|
4434
4471
|
}),
|
|
4435
4472
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4439,8 +4476,8 @@ var sampleRateOption = {
|
|
|
4439
4476
|
docLink: "https://www.remotion.dev/docs/sample-rate",
|
|
4440
4477
|
type: 48000,
|
|
4441
4478
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4442
|
-
if (commandLine[
|
|
4443
|
-
return { value: commandLine[
|
|
4479
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4480
|
+
return { value: commandLine[cliFlag79], source: "cli" };
|
|
4444
4481
|
}
|
|
4445
4482
|
if (currentSampleRate !== 48000) {
|
|
4446
4483
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -4456,13 +4493,13 @@ var sampleRateOption = {
|
|
|
4456
4493
|
setConfig: (value3) => {
|
|
4457
4494
|
currentSampleRate = value3;
|
|
4458
4495
|
},
|
|
4459
|
-
id:
|
|
4496
|
+
id: cliFlag79
|
|
4460
4497
|
};
|
|
4461
4498
|
|
|
4462
4499
|
// src/options/scale.tsx
|
|
4463
|
-
import { jsx as
|
|
4500
|
+
import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4464
4501
|
var currentScale = 1;
|
|
4465
|
-
var
|
|
4502
|
+
var cliFlag80 = "scale";
|
|
4466
4503
|
var validateScale = (value3) => {
|
|
4467
4504
|
if (typeof value3 !== "number") {
|
|
4468
4505
|
throw new Error("scale must be a number.");
|
|
@@ -4470,15 +4507,15 @@ var validateScale = (value3) => {
|
|
|
4470
4507
|
};
|
|
4471
4508
|
var scaleOption = {
|
|
4472
4509
|
name: "Scale",
|
|
4473
|
-
cliFlag:
|
|
4474
|
-
description: () => /* @__PURE__ */
|
|
4510
|
+
cliFlag: cliFlag80,
|
|
4511
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment76, {
|
|
4475
4512
|
children: [
|
|
4476
4513
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
4477
|
-
/* @__PURE__ */
|
|
4514
|
+
/* @__PURE__ */ jsx76("code", {
|
|
4478
4515
|
children: "1.5"
|
|
4479
4516
|
}),
|
|
4480
4517
|
". See ",
|
|
4481
|
-
/* @__PURE__ */
|
|
4518
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4482
4519
|
href: "https://www.remotion.dev/docs/scaling",
|
|
4483
4520
|
children: "Scaling"
|
|
4484
4521
|
}),
|
|
@@ -4489,11 +4526,11 @@ var scaleOption = {
|
|
|
4489
4526
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
4490
4527
|
type: 0,
|
|
4491
4528
|
getValue: ({ commandLine }) => {
|
|
4492
|
-
if (commandLine[
|
|
4493
|
-
validateScale(commandLine[
|
|
4529
|
+
if (commandLine[cliFlag80] !== undefined) {
|
|
4530
|
+
validateScale(commandLine[cliFlag80]);
|
|
4494
4531
|
return {
|
|
4495
4532
|
source: "cli",
|
|
4496
|
-
value: commandLine[
|
|
4533
|
+
value: commandLine[cliFlag80]
|
|
4497
4534
|
};
|
|
4498
4535
|
}
|
|
4499
4536
|
if (currentScale !== null) {
|
|
@@ -4510,22 +4547,22 @@ var scaleOption = {
|
|
|
4510
4547
|
setConfig: (scale) => {
|
|
4511
4548
|
currentScale = scale;
|
|
4512
4549
|
},
|
|
4513
|
-
id:
|
|
4550
|
+
id: cliFlag80
|
|
4514
4551
|
};
|
|
4515
4552
|
|
|
4516
4553
|
// src/options/skip-skills.tsx
|
|
4517
|
-
import { jsx as
|
|
4518
|
-
var
|
|
4554
|
+
import { jsx as jsx77, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4555
|
+
var cliFlag81 = "skip-skills";
|
|
4519
4556
|
var skipSkillsOption = {
|
|
4520
4557
|
name: "Skip Skills",
|
|
4521
|
-
cliFlag:
|
|
4522
|
-
description: () => /* @__PURE__ */
|
|
4558
|
+
cliFlag: cliFlag81,
|
|
4559
|
+
description: () => /* @__PURE__ */ jsx77(Fragment77, {
|
|
4523
4560
|
children: "Do not update installed Remotion Agent Skills while upgrading Remotion."
|
|
4524
4561
|
}),
|
|
4525
4562
|
ssrName: null,
|
|
4526
4563
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--skip-skills",
|
|
4527
4564
|
getValue: ({ commandLine }) => {
|
|
4528
|
-
if (commandLine[
|
|
4565
|
+
if (commandLine[cliFlag81]) {
|
|
4529
4566
|
return {
|
|
4530
4567
|
source: "cli",
|
|
4531
4568
|
value: true
|
|
@@ -4540,13 +4577,13 @@ var skipSkillsOption = {
|
|
|
4540
4577
|
throw new Error("Cannot skip updating skills via config file");
|
|
4541
4578
|
},
|
|
4542
4579
|
type: false,
|
|
4543
|
-
id:
|
|
4580
|
+
id: cliFlag81
|
|
4544
4581
|
};
|
|
4545
4582
|
|
|
4546
4583
|
// src/options/still-frame.tsx
|
|
4547
4584
|
import { NoReactInternals as NoReactInternals4 } from "remotion/no-react";
|
|
4548
|
-
import { jsx as
|
|
4549
|
-
var
|
|
4585
|
+
import { jsx as jsx78, jsxs as jsxs54, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4586
|
+
var cliFlag82 = "frame";
|
|
4550
4587
|
var currentFrame = null;
|
|
4551
4588
|
var validate3 = (frame) => {
|
|
4552
4589
|
NoReactInternals4.validateFrame({
|
|
@@ -4557,17 +4594,17 @@ var validate3 = (frame) => {
|
|
|
4557
4594
|
};
|
|
4558
4595
|
var stillFrameOption = {
|
|
4559
4596
|
name: "Frame",
|
|
4560
|
-
cliFlag:
|
|
4561
|
-
description: () => /* @__PURE__ */
|
|
4597
|
+
cliFlag: cliFlag82,
|
|
4598
|
+
description: () => /* @__PURE__ */ jsxs54(Fragment78, {
|
|
4562
4599
|
children: [
|
|
4563
4600
|
"Which frame should be rendered when rendering a still. Default",
|
|
4564
4601
|
" ",
|
|
4565
|
-
/* @__PURE__ */
|
|
4602
|
+
/* @__PURE__ */ jsx78("code", {
|
|
4566
4603
|
children: "0"
|
|
4567
4604
|
}),
|
|
4568
4605
|
". From v3.2.27, negative values are allowed, with",
|
|
4569
4606
|
" ",
|
|
4570
|
-
/* @__PURE__ */
|
|
4607
|
+
/* @__PURE__ */ jsx78("code", {
|
|
4571
4608
|
children: "-1"
|
|
4572
4609
|
}),
|
|
4573
4610
|
" being the last frame."
|
|
@@ -4576,8 +4613,8 @@ var stillFrameOption = {
|
|
|
4576
4613
|
ssrName: "frame",
|
|
4577
4614
|
docLink: "https://www.remotion.dev/docs/cli/still#--frame",
|
|
4578
4615
|
getValue: ({ commandLine }) => {
|
|
4579
|
-
if (commandLine[
|
|
4580
|
-
const frame = Number(commandLine[
|
|
4616
|
+
if (commandLine[cliFlag82] !== undefined) {
|
|
4617
|
+
const frame = Number(commandLine[cliFlag82]);
|
|
4581
4618
|
validate3(frame);
|
|
4582
4619
|
return {
|
|
4583
4620
|
source: "cli",
|
|
@@ -4602,24 +4639,24 @@ var stillFrameOption = {
|
|
|
4602
4639
|
currentFrame = value3;
|
|
4603
4640
|
},
|
|
4604
4641
|
type: 0,
|
|
4605
|
-
id:
|
|
4642
|
+
id: cliFlag82
|
|
4606
4643
|
};
|
|
4607
4644
|
|
|
4608
4645
|
// src/options/still-image-format.tsx
|
|
4609
|
-
import { jsx as
|
|
4646
|
+
import { jsx as jsx79, jsxs as jsxs55, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4610
4647
|
var currentStillImageFormat = null;
|
|
4611
|
-
var
|
|
4648
|
+
var cliFlag83 = "image-format";
|
|
4612
4649
|
var stillImageFormatOption = {
|
|
4613
4650
|
name: "Still Image Format",
|
|
4614
|
-
cliFlag:
|
|
4615
|
-
description: () => /* @__PURE__ */
|
|
4651
|
+
cliFlag: cliFlag83,
|
|
4652
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment79, {
|
|
4616
4653
|
children: [
|
|
4617
4654
|
"The image format to use when rendering a still. Must be one of",
|
|
4618
4655
|
" ",
|
|
4619
4656
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4620
4657
|
". Default:",
|
|
4621
4658
|
" ",
|
|
4622
|
-
/* @__PURE__ */
|
|
4659
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4623
4660
|
children: '"png"'
|
|
4624
4661
|
}),
|
|
4625
4662
|
"."
|
|
@@ -4629,8 +4666,8 @@ var stillImageFormatOption = {
|
|
|
4629
4666
|
docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
|
|
4630
4667
|
type: null,
|
|
4631
4668
|
getValue: ({ commandLine }) => {
|
|
4632
|
-
if (commandLine[
|
|
4633
|
-
const value3 = commandLine[
|
|
4669
|
+
if (commandLine[cliFlag83] !== undefined) {
|
|
4670
|
+
const value3 = commandLine[cliFlag83];
|
|
4634
4671
|
if (!validStillImageFormats.includes(value3)) {
|
|
4635
4672
|
throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
4636
4673
|
}
|
|
@@ -4668,16 +4705,16 @@ var stillImageFormatOption = {
|
|
|
4668
4705
|
|
|
4669
4706
|
// src/options/throw-if-site-exists.tsx
|
|
4670
4707
|
var DEFAULT5 = false;
|
|
4671
|
-
var
|
|
4708
|
+
var cliFlag84 = "throw-if-site-exists";
|
|
4672
4709
|
var throwIfSiteExistsOption = {
|
|
4673
|
-
cliFlag:
|
|
4710
|
+
cliFlag: cliFlag84,
|
|
4674
4711
|
description: () => `Prevents accidential update of an existing site. If there are any files in the subfolder where the site should be placed, the function will throw.`,
|
|
4675
4712
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
4676
4713
|
getValue: ({ commandLine }) => {
|
|
4677
|
-
if (commandLine[
|
|
4714
|
+
if (commandLine[cliFlag84]) {
|
|
4678
4715
|
return {
|
|
4679
4716
|
source: "cli",
|
|
4680
|
-
value: commandLine[
|
|
4717
|
+
value: commandLine[cliFlag84]
|
|
4681
4718
|
};
|
|
4682
4719
|
}
|
|
4683
4720
|
return {
|
|
@@ -4691,41 +4728,41 @@ var throwIfSiteExistsOption = {
|
|
|
4691
4728
|
},
|
|
4692
4729
|
ssrName: "throwIfSiteExists",
|
|
4693
4730
|
type: false,
|
|
4694
|
-
id:
|
|
4731
|
+
id: cliFlag84
|
|
4695
4732
|
};
|
|
4696
4733
|
|
|
4697
4734
|
// src/options/timeout.tsx
|
|
4698
|
-
import { jsx as
|
|
4735
|
+
import { jsx as jsx80, jsxs as jsxs56, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4699
4736
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
4700
4737
|
var validate4 = (value3) => {
|
|
4701
4738
|
if (typeof value3 !== "number") {
|
|
4702
4739
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
4703
4740
|
}
|
|
4704
4741
|
};
|
|
4705
|
-
var
|
|
4742
|
+
var cliFlag85 = "timeout";
|
|
4706
4743
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
4707
4744
|
name: "delayRender() timeout",
|
|
4708
|
-
cliFlag:
|
|
4709
|
-
description: () => /* @__PURE__ */
|
|
4745
|
+
cliFlag: cliFlag85,
|
|
4746
|
+
description: () => /* @__PURE__ */ jsxs56(Fragment80, {
|
|
4710
4747
|
children: [
|
|
4711
4748
|
"A number describing how long the render may take to resolve all",
|
|
4712
4749
|
" ",
|
|
4713
|
-
/* @__PURE__ */
|
|
4750
|
+
/* @__PURE__ */ jsx80("a", {
|
|
4714
4751
|
href: "https://remotion.dev/docs/delay-render",
|
|
4715
|
-
children: /* @__PURE__ */
|
|
4752
|
+
children: /* @__PURE__ */ jsx80("code", {
|
|
4716
4753
|
children: "delayRender()"
|
|
4717
4754
|
})
|
|
4718
4755
|
}),
|
|
4719
4756
|
" ",
|
|
4720
4757
|
"calls",
|
|
4721
4758
|
" ",
|
|
4722
|
-
/* @__PURE__ */
|
|
4759
|
+
/* @__PURE__ */ jsx80("a", {
|
|
4723
4760
|
style: { fontSize: "inherit" },
|
|
4724
4761
|
href: "https://remotion.dev/docs/timeout",
|
|
4725
4762
|
children: "before it times out"
|
|
4726
4763
|
}),
|
|
4727
4764
|
". Default: ",
|
|
4728
|
-
/* @__PURE__ */
|
|
4765
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4729
4766
|
children: "30000"
|
|
4730
4767
|
})
|
|
4731
4768
|
]
|
|
@@ -4734,10 +4771,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4734
4771
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
4735
4772
|
type: 0,
|
|
4736
4773
|
getValue: ({ commandLine }) => {
|
|
4737
|
-
if (commandLine[
|
|
4774
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
4738
4775
|
return {
|
|
4739
4776
|
source: "cli",
|
|
4740
|
-
value: commandLine[
|
|
4777
|
+
value: commandLine[cliFlag85]
|
|
4741
4778
|
};
|
|
4742
4779
|
}
|
|
4743
4780
|
if (currentTimeout !== null) {
|
|
@@ -4756,27 +4793,27 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4756
4793
|
validate4(value3);
|
|
4757
4794
|
currentTimeout = value3;
|
|
4758
4795
|
},
|
|
4759
|
-
id:
|
|
4796
|
+
id: cliFlag85
|
|
4760
4797
|
};
|
|
4761
4798
|
|
|
4762
4799
|
// src/options/user-agent.tsx
|
|
4763
|
-
import { jsx as
|
|
4800
|
+
import { jsx as jsx81, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
4764
4801
|
var userAgent = null;
|
|
4765
|
-
var
|
|
4802
|
+
var cliFlag86 = "user-agent";
|
|
4766
4803
|
var userAgentOption = {
|
|
4767
4804
|
name: "User agent",
|
|
4768
|
-
cliFlag:
|
|
4769
|
-
description: () => /* @__PURE__ */
|
|
4805
|
+
cliFlag: cliFlag86,
|
|
4806
|
+
description: () => /* @__PURE__ */ jsx81(Fragment81, {
|
|
4770
4807
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
4771
4808
|
}),
|
|
4772
4809
|
ssrName: "userAgent",
|
|
4773
4810
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--user-agent",
|
|
4774
4811
|
type: null,
|
|
4775
4812
|
getValue: ({ commandLine }) => {
|
|
4776
|
-
if (commandLine[
|
|
4813
|
+
if (commandLine[cliFlag86] !== undefined) {
|
|
4777
4814
|
return {
|
|
4778
4815
|
source: "cli",
|
|
4779
|
-
value: commandLine[
|
|
4816
|
+
value: commandLine[cliFlag86]
|
|
4780
4817
|
};
|
|
4781
4818
|
}
|
|
4782
4819
|
if (userAgent !== null) {
|
|
@@ -4793,25 +4830,25 @@ var userAgentOption = {
|
|
|
4793
4830
|
setConfig: (value3) => {
|
|
4794
4831
|
userAgent = value3;
|
|
4795
4832
|
},
|
|
4796
|
-
id:
|
|
4833
|
+
id: cliFlag86
|
|
4797
4834
|
};
|
|
4798
4835
|
|
|
4799
4836
|
// src/options/version-flag.tsx
|
|
4800
|
-
import { jsx as
|
|
4801
|
-
var
|
|
4837
|
+
import { jsx as jsx82, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
4838
|
+
var cliFlag87 = "version";
|
|
4802
4839
|
var versionFlagOption = {
|
|
4803
4840
|
name: "Version",
|
|
4804
|
-
cliFlag:
|
|
4805
|
-
description: () => /* @__PURE__ */
|
|
4841
|
+
cliFlag: cliFlag87,
|
|
4842
|
+
description: () => /* @__PURE__ */ jsx82(Fragment82, {
|
|
4806
4843
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
4807
4844
|
}),
|
|
4808
4845
|
ssrName: null,
|
|
4809
4846
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--version",
|
|
4810
4847
|
getValue: ({ commandLine }) => {
|
|
4811
|
-
if (commandLine[
|
|
4848
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
4812
4849
|
return {
|
|
4813
4850
|
source: "cli",
|
|
4814
|
-
value: String(commandLine[
|
|
4851
|
+
value: String(commandLine[cliFlag87])
|
|
4815
4852
|
};
|
|
4816
4853
|
}
|
|
4817
4854
|
return {
|
|
@@ -4823,30 +4860,30 @@ var versionFlagOption = {
|
|
|
4823
4860
|
throw new Error("Cannot set version via config file");
|
|
4824
4861
|
},
|
|
4825
4862
|
type: "",
|
|
4826
|
-
id:
|
|
4863
|
+
id: cliFlag87
|
|
4827
4864
|
};
|
|
4828
4865
|
|
|
4829
4866
|
// src/options/video-bitrate.tsx
|
|
4830
|
-
import { jsx as
|
|
4867
|
+
import { jsx as jsx83, jsxs as jsxs57, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
4831
4868
|
var videoBitrate = null;
|
|
4832
|
-
var
|
|
4869
|
+
var cliFlag88 = "video-bitrate";
|
|
4833
4870
|
var videoBitrateOption = {
|
|
4834
4871
|
name: "Video Bitrate",
|
|
4835
|
-
cliFlag:
|
|
4836
|
-
description: () => /* @__PURE__ */
|
|
4872
|
+
cliFlag: cliFlag88,
|
|
4873
|
+
description: () => /* @__PURE__ */ jsxs57(Fragment83, {
|
|
4837
4874
|
children: [
|
|
4838
4875
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
4839
4876
|
"'",
|
|
4840
4877
|
"s",
|
|
4841
|
-
/* @__PURE__ */
|
|
4878
|
+
/* @__PURE__ */ jsx83("code", {
|
|
4842
4879
|
children: "-b:v"
|
|
4843
4880
|
}),
|
|
4844
4881
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
4845
|
-
/* @__PURE__ */
|
|
4882
|
+
/* @__PURE__ */ jsx83("code", {
|
|
4846
4883
|
children: "512K"
|
|
4847
4884
|
}),
|
|
4848
4885
|
" for 512 kbps, ",
|
|
4849
|
-
/* @__PURE__ */
|
|
4886
|
+
/* @__PURE__ */ jsx83("code", {
|
|
4850
4887
|
children: "1M"
|
|
4851
4888
|
}),
|
|
4852
4889
|
" for 1 Mbps."
|
|
@@ -4856,10 +4893,10 @@ var videoBitrateOption = {
|
|
|
4856
4893
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
4857
4894
|
type: "",
|
|
4858
4895
|
getValue: ({ commandLine }) => {
|
|
4859
|
-
if (commandLine[
|
|
4896
|
+
if (commandLine[cliFlag88] !== undefined) {
|
|
4860
4897
|
return {
|
|
4861
4898
|
source: "cli",
|
|
4862
|
-
value: commandLine[
|
|
4899
|
+
value: commandLine[cliFlag88]
|
|
4863
4900
|
};
|
|
4864
4901
|
}
|
|
4865
4902
|
if (videoBitrate !== null) {
|
|
@@ -4876,34 +4913,34 @@ var videoBitrateOption = {
|
|
|
4876
4913
|
setConfig: (bitrate) => {
|
|
4877
4914
|
videoBitrate = bitrate;
|
|
4878
4915
|
},
|
|
4879
|
-
id:
|
|
4916
|
+
id: cliFlag88
|
|
4880
4917
|
};
|
|
4881
4918
|
|
|
4882
4919
|
// src/options/video-cache-size.tsx
|
|
4883
|
-
import { jsx as
|
|
4920
|
+
import { jsx as jsx84, jsxs as jsxs58, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
4884
4921
|
var mediaCacheSizeInBytes = null;
|
|
4885
|
-
var
|
|
4922
|
+
var cliFlag89 = "media-cache-size-in-bytes";
|
|
4886
4923
|
var mediaCacheSizeInBytesOption = {
|
|
4887
4924
|
name: "@remotion/media cache size",
|
|
4888
|
-
cliFlag:
|
|
4889
|
-
description: () => /* @__PURE__ */
|
|
4925
|
+
cliFlag: cliFlag89,
|
|
4926
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment84, {
|
|
4890
4927
|
children: [
|
|
4891
4928
|
"Specify the memory budget for decoded media cached by",
|
|
4892
4929
|
" ",
|
|
4893
|
-
/* @__PURE__ */
|
|
4930
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4894
4931
|
children: "<Video>"
|
|
4895
4932
|
}),
|
|
4896
4933
|
" and ",
|
|
4897
|
-
/* @__PURE__ */
|
|
4934
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4898
4935
|
children: "<Audio>"
|
|
4899
4936
|
}),
|
|
4900
4937
|
" from",
|
|
4901
4938
|
" ",
|
|
4902
|
-
/* @__PURE__ */
|
|
4939
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4903
4940
|
children: "@remotion/media"
|
|
4904
4941
|
}),
|
|
4905
4942
|
", in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage. ",
|
|
4906
|
-
/* @__PURE__ */
|
|
4943
|
+
/* @__PURE__ */ jsx84("br", {}),
|
|
4907
4944
|
"The default is half of the available system memory when the render starts."
|
|
4908
4945
|
]
|
|
4909
4946
|
}),
|
|
@@ -4911,10 +4948,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4911
4948
|
docLink: "https://www.remotion.dev/docs/media/cache",
|
|
4912
4949
|
type: 0,
|
|
4913
4950
|
getValue: ({ commandLine }) => {
|
|
4914
|
-
if (commandLine[
|
|
4951
|
+
if (commandLine[cliFlag89] !== undefined) {
|
|
4915
4952
|
return {
|
|
4916
4953
|
source: "cli",
|
|
4917
|
-
value: commandLine[
|
|
4954
|
+
value: commandLine[cliFlag89]
|
|
4918
4955
|
};
|
|
4919
4956
|
}
|
|
4920
4957
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -4931,7 +4968,7 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4931
4968
|
setConfig: (size) => {
|
|
4932
4969
|
mediaCacheSizeInBytes = size ?? null;
|
|
4933
4970
|
},
|
|
4934
|
-
id:
|
|
4971
|
+
id: cliFlag89
|
|
4935
4972
|
};
|
|
4936
4973
|
|
|
4937
4974
|
// src/path-normalize.ts
|
|
@@ -5050,7 +5087,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
5050
5087
|
};
|
|
5051
5088
|
|
|
5052
5089
|
// src/options/video-codec.tsx
|
|
5053
|
-
import { jsx as
|
|
5090
|
+
import { jsx as jsx85, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
5054
5091
|
var codec;
|
|
5055
5092
|
var setCodec = (newCodec) => {
|
|
5056
5093
|
if (newCodec === undefined) {
|
|
@@ -5074,11 +5111,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
5074
5111
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
5075
5112
|
};
|
|
5076
5113
|
};
|
|
5077
|
-
var
|
|
5114
|
+
var cliFlag90 = "codec";
|
|
5078
5115
|
var videoCodecOption = {
|
|
5079
5116
|
name: "Codec",
|
|
5080
|
-
cliFlag:
|
|
5081
|
-
description: () => /* @__PURE__ */
|
|
5117
|
+
cliFlag: cliFlag90,
|
|
5118
|
+
description: () => /* @__PURE__ */ jsx85(Fragment85, {
|
|
5082
5119
|
children: "H264 works well in most cases, but sometimes it's worth going for a different codec. WebM achieves higher compression but is slower to render. WebM, GIF and ProRes support transparency."
|
|
5083
5120
|
}),
|
|
5084
5121
|
ssrName: "codec",
|
|
@@ -5101,7 +5138,7 @@ var videoCodecOption = {
|
|
|
5101
5138
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
5102
5139
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
5103
5140
|
}
|
|
5104
|
-
const cliArgument = commandLine[
|
|
5141
|
+
const cliArgument = commandLine[cliFlag90];
|
|
5105
5142
|
if (cliArgument) {
|
|
5106
5143
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
5107
5144
|
throw new TypeError(`The download name is ${downloadName} but --codec=${cliArgument} was passed. The download name implies a codec of ${derivedDownloadCodecs.possible.join(" or ")} which does not align with the --codec flag.`);
|
|
@@ -5150,24 +5187,24 @@ var videoCodecOption = {
|
|
|
5150
5187
|
reset: () => {
|
|
5151
5188
|
codec = undefined;
|
|
5152
5189
|
},
|
|
5153
|
-
id:
|
|
5190
|
+
id: cliFlag90
|
|
5154
5191
|
};
|
|
5155
5192
|
|
|
5156
5193
|
// src/options/video-image-format.tsx
|
|
5157
|
-
import { jsx as
|
|
5194
|
+
import { jsx as jsx86, jsxs as jsxs59, Fragment as Fragment86 } from "react/jsx-runtime";
|
|
5158
5195
|
var currentVideoImageFormat = null;
|
|
5159
|
-
var
|
|
5196
|
+
var cliFlag91 = "image-format";
|
|
5160
5197
|
var videoImageFormatOption = {
|
|
5161
5198
|
name: "Video Image Format",
|
|
5162
|
-
cliFlag:
|
|
5163
|
-
description: () => /* @__PURE__ */
|
|
5199
|
+
cliFlag: cliFlag91,
|
|
5200
|
+
description: () => /* @__PURE__ */ jsxs59(Fragment86, {
|
|
5164
5201
|
children: [
|
|
5165
5202
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
5166
5203
|
" ",
|
|
5167
5204
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5168
5205
|
". Default:",
|
|
5169
5206
|
" ",
|
|
5170
|
-
/* @__PURE__ */
|
|
5207
|
+
/* @__PURE__ */ jsx86("code", {
|
|
5171
5208
|
children: '"jpeg"'
|
|
5172
5209
|
}),
|
|
5173
5210
|
". JPEG is faster, but does not support transparency."
|
|
@@ -5183,8 +5220,8 @@ var videoImageFormatOption = {
|
|
|
5183
5220
|
value: options.uiVideoImageFormat
|
|
5184
5221
|
};
|
|
5185
5222
|
}
|
|
5186
|
-
if (commandLine[
|
|
5187
|
-
const value3 = commandLine[
|
|
5223
|
+
if (commandLine[cliFlag91] !== undefined) {
|
|
5224
|
+
const value3 = commandLine[cliFlag91];
|
|
5188
5225
|
if (!validVideoImageFormats.includes(value3)) {
|
|
5189
5226
|
throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
5190
5227
|
}
|
|
@@ -5248,12 +5285,12 @@ var videoImageFormatOption = {
|
|
|
5248
5285
|
};
|
|
5249
5286
|
|
|
5250
5287
|
// src/options/webhook-custom-data.tsx
|
|
5251
|
-
import { jsxs as
|
|
5252
|
-
var
|
|
5288
|
+
import { jsxs as jsxs60, Fragment as Fragment87 } from "react/jsx-runtime";
|
|
5289
|
+
var cliFlag92 = "webhook-custom-data";
|
|
5253
5290
|
var webhookCustomDataOption = {
|
|
5254
5291
|
name: "Webhook custom data",
|
|
5255
|
-
cliFlag:
|
|
5256
|
-
description: (type) => /* @__PURE__ */
|
|
5292
|
+
cliFlag: cliFlag92,
|
|
5293
|
+
description: (type) => /* @__PURE__ */ jsxs60(Fragment87, {
|
|
5257
5294
|
children: [
|
|
5258
5295
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5259
5296
|
" ",
|
|
@@ -5269,24 +5306,24 @@ var webhookCustomDataOption = {
|
|
|
5269
5306
|
setConfig: () => {
|
|
5270
5307
|
throw new Error("Not implemented");
|
|
5271
5308
|
},
|
|
5272
|
-
id:
|
|
5309
|
+
id: cliFlag92
|
|
5273
5310
|
};
|
|
5274
5311
|
|
|
5275
5312
|
// src/options/webpack-poll.tsx
|
|
5276
|
-
import { jsx as
|
|
5277
|
-
var
|
|
5313
|
+
import { jsx as jsx87, Fragment as Fragment88 } from "react/jsx-runtime";
|
|
5314
|
+
var cliFlag93 = "webpack-poll";
|
|
5278
5315
|
var webpackPolling = null;
|
|
5279
5316
|
var webpackPollOption = {
|
|
5280
5317
|
name: "Webpack Polling",
|
|
5281
|
-
cliFlag:
|
|
5282
|
-
description: () => /* @__PURE__ */
|
|
5318
|
+
cliFlag: cliFlag93,
|
|
5319
|
+
description: () => /* @__PURE__ */ jsx87(Fragment88, {
|
|
5283
5320
|
children: "Enables Webpack polling instead of the file system event listeners for hot reloading. This is useful if you are inside a virtual machine or have a remote file system. Pass a value in milliseconds."
|
|
5284
5321
|
}),
|
|
5285
5322
|
ssrName: null,
|
|
5286
5323
|
docLink: "https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds",
|
|
5287
5324
|
getValue: ({ commandLine }) => {
|
|
5288
|
-
if (commandLine[
|
|
5289
|
-
const val = commandLine[
|
|
5325
|
+
if (commandLine[cliFlag93] !== undefined) {
|
|
5326
|
+
const val = commandLine[cliFlag93];
|
|
5290
5327
|
if (typeof val !== "number") {
|
|
5291
5328
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5292
5329
|
}
|
|
@@ -5313,11 +5350,11 @@ var webpackPollOption = {
|
|
|
5313
5350
|
webpackPolling = value3;
|
|
5314
5351
|
},
|
|
5315
5352
|
type: 0,
|
|
5316
|
-
id:
|
|
5353
|
+
id: cliFlag93
|
|
5317
5354
|
};
|
|
5318
5355
|
|
|
5319
5356
|
// src/options/x264-preset.tsx
|
|
5320
|
-
import { jsx as
|
|
5357
|
+
import { jsx as jsx88, jsxs as jsxs61, Fragment as Fragment89 } from "react/jsx-runtime";
|
|
5321
5358
|
var x264PresetOptions = [
|
|
5322
5359
|
"ultrafast",
|
|
5323
5360
|
"superfast",
|
|
@@ -5331,63 +5368,63 @@ var x264PresetOptions = [
|
|
|
5331
5368
|
"placebo"
|
|
5332
5369
|
];
|
|
5333
5370
|
var preset = null;
|
|
5334
|
-
var
|
|
5371
|
+
var cliFlag94 = "x264-preset";
|
|
5335
5372
|
var DEFAULT_PRESET = "medium";
|
|
5336
5373
|
var x264Option = {
|
|
5337
5374
|
name: "x264 Preset",
|
|
5338
|
-
cliFlag:
|
|
5339
|
-
description: () => /* @__PURE__ */
|
|
5375
|
+
cliFlag: cliFlag94,
|
|
5376
|
+
description: () => /* @__PURE__ */ jsxs61(Fragment89, {
|
|
5340
5377
|
children: [
|
|
5341
5378
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
5342
5379
|
" ",
|
|
5343
|
-
/* @__PURE__ */
|
|
5380
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5344
5381
|
children: "h264"
|
|
5345
5382
|
}),
|
|
5346
5383
|
" codec.",
|
|
5347
|
-
/* @__PURE__ */
|
|
5384
|
+
/* @__PURE__ */ jsx88("br", {}),
|
|
5348
5385
|
"Possible values: ",
|
|
5349
|
-
/* @__PURE__ */
|
|
5386
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5350
5387
|
children: "superfast"
|
|
5351
5388
|
}),
|
|
5352
5389
|
", ",
|
|
5353
|
-
/* @__PURE__ */
|
|
5390
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5354
5391
|
children: "veryfast"
|
|
5355
5392
|
}),
|
|
5356
5393
|
",",
|
|
5357
5394
|
" ",
|
|
5358
|
-
/* @__PURE__ */
|
|
5395
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5359
5396
|
children: "faster"
|
|
5360
5397
|
}),
|
|
5361
5398
|
", ",
|
|
5362
|
-
/* @__PURE__ */
|
|
5399
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5363
5400
|
children: "fast"
|
|
5364
5401
|
}),
|
|
5365
5402
|
", ",
|
|
5366
|
-
/* @__PURE__ */
|
|
5403
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5367
5404
|
children: "medium"
|
|
5368
5405
|
}),
|
|
5369
5406
|
",",
|
|
5370
5407
|
" ",
|
|
5371
|
-
/* @__PURE__ */
|
|
5408
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5372
5409
|
children: "slow"
|
|
5373
5410
|
}),
|
|
5374
5411
|
", ",
|
|
5375
|
-
/* @__PURE__ */
|
|
5412
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5376
5413
|
children: "slower"
|
|
5377
5414
|
}),
|
|
5378
5415
|
", ",
|
|
5379
|
-
/* @__PURE__ */
|
|
5416
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5380
5417
|
children: "veryslow"
|
|
5381
5418
|
}),
|
|
5382
5419
|
",",
|
|
5383
5420
|
" ",
|
|
5384
|
-
/* @__PURE__ */
|
|
5421
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5385
5422
|
children: "placebo"
|
|
5386
5423
|
}),
|
|
5387
5424
|
".",
|
|
5388
|
-
/* @__PURE__ */
|
|
5425
|
+
/* @__PURE__ */ jsx88("br", {}),
|
|
5389
5426
|
"Default: ",
|
|
5390
|
-
/* @__PURE__ */
|
|
5427
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5391
5428
|
children: DEFAULT_PRESET
|
|
5392
5429
|
})
|
|
5393
5430
|
]
|
|
@@ -5396,7 +5433,7 @@ var x264Option = {
|
|
|
5396
5433
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
5397
5434
|
type: "fast",
|
|
5398
5435
|
getValue: ({ commandLine }) => {
|
|
5399
|
-
const value3 = commandLine[
|
|
5436
|
+
const value3 = commandLine[cliFlag94];
|
|
5400
5437
|
if (typeof value3 !== "undefined") {
|
|
5401
5438
|
return { value: value3, source: "cli" };
|
|
5402
5439
|
}
|
|
@@ -5408,7 +5445,7 @@ var x264Option = {
|
|
|
5408
5445
|
setConfig: (profile) => {
|
|
5409
5446
|
preset = profile;
|
|
5410
5447
|
},
|
|
5411
|
-
id:
|
|
5448
|
+
id: cliFlag94
|
|
5412
5449
|
};
|
|
5413
5450
|
|
|
5414
5451
|
// src/options/index.tsx
|
|
@@ -5482,6 +5519,7 @@ var allOptions = {
|
|
|
5482
5519
|
keyboardShortcutsOption,
|
|
5483
5520
|
framesOption,
|
|
5484
5521
|
forceNewStudioOption,
|
|
5522
|
+
experimentalKeepAudioContextAliveOption,
|
|
5485
5523
|
numberOfSharedAudioTagsOption,
|
|
5486
5524
|
ipv4Option,
|
|
5487
5525
|
stillImageFormatOption,
|