@remotion/renderer 4.0.465 → 4.0.466
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 +64 -0
- package/dist/esm/client.mjs +513 -467
- package/dist/esm/index.mjs +32 -4
- package/dist/ffmpeg-args.d.ts +2 -1
- package/dist/ffmpeg-args.js +6 -2
- package/dist/options/gop-size.d.ts +17 -0
- package/dist/options/gop-size.js +41 -0
- package/dist/options/index.d.ts +16 -0
- package/dist/options/index.js +2 -0
- package/dist/options/options-map.d.ts +48 -0
- package/dist/options/options-map.js +4 -0
- package/dist/prespawn-ffmpeg.d.ts +1 -0
- package/dist/prespawn-ffmpeg.js +1 -0
- package/dist/render-media.d.ts +1 -1
- package/dist/render-media.js +7 -2
- package/dist/stitch-frames-to-video.d.ts +3 -1
- package/dist/stitch-frames-to-video.js +6 -2
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -2292,17 +2292,59 @@ var validateOpenGlRenderer = (option2) => {
|
|
|
2292
2292
|
return option2;
|
|
2293
2293
|
};
|
|
2294
2294
|
|
|
2295
|
+
// src/options/gop-size.tsx
|
|
2296
|
+
import { jsx as jsx34, jsxs as jsxs24, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2297
|
+
var gopSize = null;
|
|
2298
|
+
var validateGopSize = (value) => {
|
|
2299
|
+
if (value === null) {
|
|
2300
|
+
return;
|
|
2301
|
+
}
|
|
2302
|
+
if (typeof value !== "number" || !Number.isFinite(value) || !Number.isInteger(value) || value <= 0) {
|
|
2303
|
+
throw new TypeError("The GOP size must be an integer greater than 0 or null.");
|
|
2304
|
+
}
|
|
2305
|
+
};
|
|
2306
|
+
var cliFlag37 = "gop";
|
|
2307
|
+
var gopSizeOption = {
|
|
2308
|
+
name: "GOP size",
|
|
2309
|
+
cliFlag: cliFlag37,
|
|
2310
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment34, {
|
|
2311
|
+
children: [
|
|
2312
|
+
"Set the maximum number of frames between two keyframes. This maps to FFmpeg's ",
|
|
2313
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2314
|
+
children: "-g"
|
|
2315
|
+
}),
|
|
2316
|
+
" option. Default: Let the encoder decide."
|
|
2317
|
+
]
|
|
2318
|
+
}),
|
|
2319
|
+
ssrName: "gopSize",
|
|
2320
|
+
docLink: "https://www.remotion.dev/docs/config#setgopsize",
|
|
2321
|
+
type: null,
|
|
2322
|
+
getValue: ({ commandLine }) => {
|
|
2323
|
+
const value = commandLine[cliFlag37];
|
|
2324
|
+
if (value !== undefined) {
|
|
2325
|
+
validateGopSize(value);
|
|
2326
|
+
return { value, source: "cli" };
|
|
2327
|
+
}
|
|
2328
|
+
return { value: gopSize, source: gopSize === null ? "default" : "config" };
|
|
2329
|
+
},
|
|
2330
|
+
setConfig: (value) => {
|
|
2331
|
+
validateGopSize(value);
|
|
2332
|
+
gopSize = value;
|
|
2333
|
+
},
|
|
2334
|
+
id: cliFlag37
|
|
2335
|
+
};
|
|
2336
|
+
|
|
2295
2337
|
// src/options/hardware-acceleration.tsx
|
|
2296
2338
|
var hardwareAccelerationOptions = [
|
|
2297
2339
|
"disable",
|
|
2298
2340
|
"if-possible",
|
|
2299
2341
|
"required"
|
|
2300
2342
|
];
|
|
2301
|
-
var
|
|
2343
|
+
var cliFlag38 = "hardware-acceleration";
|
|
2302
2344
|
var currentValue = null;
|
|
2303
2345
|
var hardwareAccelerationOption = {
|
|
2304
2346
|
name: "Hardware Acceleration",
|
|
2305
|
-
cliFlag:
|
|
2347
|
+
cliFlag: cliFlag38,
|
|
2306
2348
|
description: () => `
|
|
2307
2349
|
One of
|
|
2308
2350
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -2314,10 +2356,10 @@ var hardwareAccelerationOption = {
|
|
|
2314
2356
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
2315
2357
|
type: "disable",
|
|
2316
2358
|
getValue: ({ commandLine }) => {
|
|
2317
|
-
if (commandLine[
|
|
2318
|
-
const value = commandLine[
|
|
2359
|
+
if (commandLine[cliFlag38] !== undefined) {
|
|
2360
|
+
const value = commandLine[cliFlag38];
|
|
2319
2361
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2320
|
-
throw new Error(`Invalid value for --${
|
|
2362
|
+
throw new Error(`Invalid value for --${cliFlag38}: ${value}`);
|
|
2321
2363
|
}
|
|
2322
2364
|
return {
|
|
2323
2365
|
source: "cli",
|
|
@@ -2337,32 +2379,32 @@ var hardwareAccelerationOption = {
|
|
|
2337
2379
|
},
|
|
2338
2380
|
setConfig: (value) => {
|
|
2339
2381
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2340
|
-
throw new Error(`Invalid value for --${
|
|
2382
|
+
throw new Error(`Invalid value for --${cliFlag38}: ${value}`);
|
|
2341
2383
|
}
|
|
2342
2384
|
currentValue = value;
|
|
2343
2385
|
},
|
|
2344
|
-
id:
|
|
2386
|
+
id: cliFlag38
|
|
2345
2387
|
};
|
|
2346
2388
|
|
|
2347
2389
|
// src/options/headless.tsx
|
|
2348
|
-
import { jsx as
|
|
2390
|
+
import { jsx as jsx35, jsxs as jsxs25, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2349
2391
|
var DEFAULT4 = true;
|
|
2350
2392
|
var headlessMode = DEFAULT4;
|
|
2351
|
-
var
|
|
2393
|
+
var cliFlag39 = "disable-headless";
|
|
2352
2394
|
var headlessOption = {
|
|
2353
2395
|
name: "Disable Headless Mode",
|
|
2354
|
-
cliFlag:
|
|
2355
|
-
description: () => /* @__PURE__ */
|
|
2396
|
+
cliFlag: cliFlag39,
|
|
2397
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment35, {
|
|
2356
2398
|
children: [
|
|
2357
2399
|
"Deprecated - will be removed in 5.0.0. With the migration to",
|
|
2358
2400
|
" ",
|
|
2359
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ jsx35("a", {
|
|
2360
2402
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
2361
2403
|
children: "Chrome Headless Shell"
|
|
2362
2404
|
}),
|
|
2363
2405
|
", this option is not functional anymore.",
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
/* @__PURE__ */
|
|
2406
|
+
/* @__PURE__ */ jsx35("br", {}),
|
|
2407
|
+
/* @__PURE__ */ jsx35("br", {}),
|
|
2366
2408
|
" If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
|
|
2367
2409
|
]
|
|
2368
2410
|
}),
|
|
@@ -2370,10 +2412,10 @@ var headlessOption = {
|
|
|
2370
2412
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
2371
2413
|
type: false,
|
|
2372
2414
|
getValue: ({ commandLine }) => {
|
|
2373
|
-
if (commandLine[
|
|
2415
|
+
if (commandLine[cliFlag39] !== undefined) {
|
|
2374
2416
|
return {
|
|
2375
2417
|
source: "cli",
|
|
2376
|
-
value: !commandLine[
|
|
2418
|
+
value: !commandLine[cliFlag39]
|
|
2377
2419
|
};
|
|
2378
2420
|
}
|
|
2379
2421
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -2390,27 +2432,27 @@ var headlessOption = {
|
|
|
2390
2432
|
setConfig: (value) => {
|
|
2391
2433
|
headlessMode = value;
|
|
2392
2434
|
},
|
|
2393
|
-
id:
|
|
2435
|
+
id: cliFlag39
|
|
2394
2436
|
};
|
|
2395
2437
|
|
|
2396
2438
|
// src/options/ignore-certificate-errors.tsx
|
|
2397
|
-
import { jsx as
|
|
2439
|
+
import { jsx as jsx36, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2398
2440
|
var ignoreCertificateErrors = false;
|
|
2399
|
-
var
|
|
2441
|
+
var cliFlag40 = "ignore-certificate-errors";
|
|
2400
2442
|
var ignoreCertificateErrorsOption = {
|
|
2401
2443
|
name: "Ignore certificate errors",
|
|
2402
|
-
cliFlag:
|
|
2403
|
-
description: () => /* @__PURE__ */
|
|
2444
|
+
cliFlag: cliFlag40,
|
|
2445
|
+
description: () => /* @__PURE__ */ jsx36(Fragment36, {
|
|
2404
2446
|
children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored."
|
|
2405
2447
|
}),
|
|
2406
2448
|
ssrName: "ignoreCertificateErrors",
|
|
2407
2449
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors",
|
|
2408
2450
|
type: false,
|
|
2409
2451
|
getValue: ({ commandLine }) => {
|
|
2410
|
-
if (commandLine[
|
|
2452
|
+
if (commandLine[cliFlag40] !== undefined) {
|
|
2411
2453
|
return {
|
|
2412
2454
|
source: "cli",
|
|
2413
|
-
value: Boolean(commandLine[
|
|
2455
|
+
value: Boolean(commandLine[cliFlag40])
|
|
2414
2456
|
};
|
|
2415
2457
|
}
|
|
2416
2458
|
if (ignoreCertificateErrors) {
|
|
@@ -2427,23 +2469,23 @@ var ignoreCertificateErrorsOption = {
|
|
|
2427
2469
|
setConfig: (value) => {
|
|
2428
2470
|
ignoreCertificateErrors = value;
|
|
2429
2471
|
},
|
|
2430
|
-
id:
|
|
2472
|
+
id: cliFlag40
|
|
2431
2473
|
};
|
|
2432
2474
|
|
|
2433
2475
|
// src/options/image-sequence.tsx
|
|
2434
|
-
import { jsx as
|
|
2435
|
-
var
|
|
2476
|
+
import { jsx as jsx37, jsxs as jsxs26, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2477
|
+
var cliFlag41 = "sequence";
|
|
2436
2478
|
var imageSequence = false;
|
|
2437
2479
|
var imageSequenceOption = {
|
|
2438
2480
|
name: "Image Sequence",
|
|
2439
|
-
cliFlag:
|
|
2440
|
-
description: () => /* @__PURE__ */
|
|
2481
|
+
cliFlag: cliFlag41,
|
|
2482
|
+
description: () => /* @__PURE__ */ jsxs26(Fragment37, {
|
|
2441
2483
|
children: [
|
|
2442
2484
|
"Pass this flag to output an image sequence instead of a video. The default image format is JPEG. See",
|
|
2443
2485
|
" ",
|
|
2444
|
-
/* @__PURE__ */
|
|
2486
|
+
/* @__PURE__ */ jsx37("a", {
|
|
2445
2487
|
href: "/docs/config#setimagesequence",
|
|
2446
|
-
children: /* @__PURE__ */
|
|
2488
|
+
children: /* @__PURE__ */ jsx37("code", {
|
|
2447
2489
|
children: "setImageSequence()"
|
|
2448
2490
|
})
|
|
2449
2491
|
}),
|
|
@@ -2454,10 +2496,10 @@ var imageSequenceOption = {
|
|
|
2454
2496
|
ssrName: null,
|
|
2455
2497
|
docLink: "https://www.remotion.dev/docs/config#setimagesequence",
|
|
2456
2498
|
getValue: ({ commandLine }) => {
|
|
2457
|
-
if (commandLine[
|
|
2499
|
+
if (commandLine[cliFlag41] !== undefined) {
|
|
2458
2500
|
return {
|
|
2459
2501
|
source: "cli",
|
|
2460
|
-
value: Boolean(commandLine[
|
|
2502
|
+
value: Boolean(commandLine[cliFlag41])
|
|
2461
2503
|
};
|
|
2462
2504
|
}
|
|
2463
2505
|
return {
|
|
@@ -2469,25 +2511,25 @@ var imageSequenceOption = {
|
|
|
2469
2511
|
imageSequence = value;
|
|
2470
2512
|
},
|
|
2471
2513
|
type: false,
|
|
2472
|
-
id:
|
|
2514
|
+
id: cliFlag41
|
|
2473
2515
|
};
|
|
2474
2516
|
|
|
2475
2517
|
// src/options/image-sequence-pattern.tsx
|
|
2476
|
-
import { jsx as
|
|
2477
|
-
var
|
|
2518
|
+
import { jsx as jsx38, jsxs as jsxs27, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2519
|
+
var cliFlag42 = "image-sequence-pattern";
|
|
2478
2520
|
var currentImageSequencePattern = null;
|
|
2479
2521
|
var imageSequencePatternOption = {
|
|
2480
2522
|
name: "Image Sequence Pattern",
|
|
2481
|
-
cliFlag:
|
|
2523
|
+
cliFlag: cliFlag42,
|
|
2482
2524
|
ssrName: "imageSequencePattern",
|
|
2483
|
-
description: () => /* @__PURE__ */
|
|
2525
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment38, {
|
|
2484
2526
|
children: [
|
|
2485
2527
|
"Pattern for naming image sequence files. Supports ",
|
|
2486
|
-
/* @__PURE__ */
|
|
2528
|
+
/* @__PURE__ */ jsx38("code", {
|
|
2487
2529
|
children: "[frame]"
|
|
2488
2530
|
}),
|
|
2489
2531
|
" for the zero-padded frame number and ",
|
|
2490
|
-
/* @__PURE__ */
|
|
2532
|
+
/* @__PURE__ */ jsx38("code", {
|
|
2491
2533
|
children: "[ext]"
|
|
2492
2534
|
}),
|
|
2493
2535
|
" for the file extension."
|
|
@@ -2503,33 +2545,33 @@ var imageSequencePatternOption = {
|
|
|
2503
2545
|
};
|
|
2504
2546
|
}
|
|
2505
2547
|
return {
|
|
2506
|
-
value: commandLine[
|
|
2548
|
+
value: commandLine[cliFlag42],
|
|
2507
2549
|
source: "cli"
|
|
2508
2550
|
};
|
|
2509
2551
|
},
|
|
2510
2552
|
setConfig: (pattern) => {
|
|
2511
2553
|
currentImageSequencePattern = pattern;
|
|
2512
2554
|
},
|
|
2513
|
-
id:
|
|
2555
|
+
id: cliFlag42
|
|
2514
2556
|
};
|
|
2515
2557
|
|
|
2516
2558
|
// src/options/ipv4.tsx
|
|
2517
|
-
import { jsx as
|
|
2559
|
+
import { jsx as jsx39, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2518
2560
|
var forceIPv4 = false;
|
|
2519
|
-
var
|
|
2561
|
+
var cliFlag43 = "ipv4";
|
|
2520
2562
|
var ipv4Option = {
|
|
2521
2563
|
name: "IPv4",
|
|
2522
|
-
cliFlag:
|
|
2523
|
-
description: () => /* @__PURE__ */
|
|
2564
|
+
cliFlag: cliFlag43,
|
|
2565
|
+
description: () => /* @__PURE__ */ jsx39(Fragment39, {
|
|
2524
2566
|
children: "Forces Remotion to bind to an IPv4 interface for the Studio server."
|
|
2525
2567
|
}),
|
|
2526
2568
|
ssrName: null,
|
|
2527
2569
|
docLink: "https://www.remotion.dev/docs/cli/studio",
|
|
2528
2570
|
type: false,
|
|
2529
2571
|
getValue: ({ commandLine }) => {
|
|
2530
|
-
if (commandLine[
|
|
2572
|
+
if (commandLine[cliFlag43] !== undefined) {
|
|
2531
2573
|
return {
|
|
2532
|
-
value: commandLine[
|
|
2574
|
+
value: commandLine[cliFlag43],
|
|
2533
2575
|
source: "cli"
|
|
2534
2576
|
};
|
|
2535
2577
|
}
|
|
@@ -2541,25 +2583,25 @@ var ipv4Option = {
|
|
|
2541
2583
|
setConfig(value) {
|
|
2542
2584
|
forceIPv4 = value;
|
|
2543
2585
|
},
|
|
2544
|
-
id:
|
|
2586
|
+
id: cliFlag43
|
|
2545
2587
|
};
|
|
2546
2588
|
|
|
2547
2589
|
// src/options/is-production.tsx
|
|
2548
|
-
import { jsx as
|
|
2549
|
-
var
|
|
2590
|
+
import { jsx as jsx40, jsxs as jsxs28, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2591
|
+
var cliFlag44 = "is-production";
|
|
2550
2592
|
var currentIsProductionKey = null;
|
|
2551
2593
|
var isProductionOption = {
|
|
2552
2594
|
name: "Is Production",
|
|
2553
|
-
cliFlag:
|
|
2554
|
-
description: () => /* @__PURE__ */
|
|
2595
|
+
cliFlag: cliFlag44,
|
|
2596
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment40, {
|
|
2555
2597
|
children: [
|
|
2556
2598
|
"Pass ",
|
|
2557
|
-
/* @__PURE__ */
|
|
2599
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2558
2600
|
children: "false"
|
|
2559
2601
|
}),
|
|
2560
2602
|
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
2561
2603
|
" ",
|
|
2562
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2563
2605
|
children: "licenseKey"
|
|
2564
2606
|
}),
|
|
2565
2607
|
"."
|
|
@@ -2568,10 +2610,10 @@ var isProductionOption = {
|
|
|
2568
2610
|
ssrName: "isProduction",
|
|
2569
2611
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2570
2612
|
getValue: ({ commandLine }) => {
|
|
2571
|
-
if (commandLine[
|
|
2613
|
+
if (commandLine[cliFlag44] !== undefined) {
|
|
2572
2614
|
return {
|
|
2573
2615
|
source: "cli",
|
|
2574
|
-
value: commandLine[
|
|
2616
|
+
value: commandLine[cliFlag44]
|
|
2575
2617
|
};
|
|
2576
2618
|
}
|
|
2577
2619
|
if (currentIsProductionKey !== null) {
|
|
@@ -2589,11 +2631,11 @@ var isProductionOption = {
|
|
|
2589
2631
|
currentIsProductionKey = value;
|
|
2590
2632
|
},
|
|
2591
2633
|
type: false,
|
|
2592
|
-
id:
|
|
2634
|
+
id: cliFlag44
|
|
2593
2635
|
};
|
|
2594
2636
|
|
|
2595
2637
|
// src/options/jpeg-quality.tsx
|
|
2596
|
-
import { jsx as
|
|
2638
|
+
import { jsx as jsx41, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2597
2639
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
2598
2640
|
var quality = defaultValue;
|
|
2599
2641
|
var setJpegQuality = (q) => {
|
|
@@ -2604,11 +2646,11 @@ var setJpegQuality = (q) => {
|
|
|
2604
2646
|
}
|
|
2605
2647
|
quality = q;
|
|
2606
2648
|
};
|
|
2607
|
-
var
|
|
2649
|
+
var cliFlag45 = "jpeg-quality";
|
|
2608
2650
|
var jpegQualityOption = {
|
|
2609
2651
|
name: "JPEG Quality",
|
|
2610
|
-
cliFlag:
|
|
2611
|
-
description: () => /* @__PURE__ */
|
|
2652
|
+
cliFlag: cliFlag45,
|
|
2653
|
+
description: () => /* @__PURE__ */ jsx41(Fragment41, {
|
|
2612
2654
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
2613
2655
|
}),
|
|
2614
2656
|
ssrName: "jpegQuality",
|
|
@@ -2616,11 +2658,11 @@ var jpegQualityOption = {
|
|
|
2616
2658
|
type: 0,
|
|
2617
2659
|
setConfig: setJpegQuality,
|
|
2618
2660
|
getValue: ({ commandLine }) => {
|
|
2619
|
-
if (commandLine[
|
|
2620
|
-
validateJpegQuality(commandLine[
|
|
2661
|
+
if (commandLine[cliFlag45] !== undefined) {
|
|
2662
|
+
validateJpegQuality(commandLine[cliFlag45]);
|
|
2621
2663
|
return {
|
|
2622
2664
|
source: "cli",
|
|
2623
|
-
value: commandLine[
|
|
2665
|
+
value: commandLine[cliFlag45]
|
|
2624
2666
|
};
|
|
2625
2667
|
}
|
|
2626
2668
|
if (quality !== defaultValue) {
|
|
@@ -2634,25 +2676,25 @@ var jpegQualityOption = {
|
|
|
2634
2676
|
value: defaultValue
|
|
2635
2677
|
};
|
|
2636
2678
|
},
|
|
2637
|
-
id:
|
|
2679
|
+
id: cliFlag45
|
|
2638
2680
|
};
|
|
2639
2681
|
|
|
2640
2682
|
// src/options/keyboard-shortcuts.tsx
|
|
2641
|
-
import { jsx as
|
|
2683
|
+
import { jsx as jsx42, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2642
2684
|
var keyboardShortcutsEnabled = true;
|
|
2643
|
-
var
|
|
2685
|
+
var cliFlag46 = "disable-keyboard-shortcuts";
|
|
2644
2686
|
var keyboardShortcutsOption = {
|
|
2645
2687
|
name: "Disable or Enable keyboard shortcuts",
|
|
2646
|
-
cliFlag:
|
|
2647
|
-
description: () => /* @__PURE__ */
|
|
2688
|
+
cliFlag: cliFlag46,
|
|
2689
|
+
description: () => /* @__PURE__ */ jsx42(Fragment42, {
|
|
2648
2690
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
2649
2691
|
}),
|
|
2650
2692
|
ssrName: null,
|
|
2651
2693
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
2652
2694
|
type: false,
|
|
2653
2695
|
getValue: ({ commandLine }) => {
|
|
2654
|
-
if (commandLine[
|
|
2655
|
-
keyboardShortcutsEnabled = commandLine[
|
|
2696
|
+
if (commandLine[cliFlag46] !== undefined) {
|
|
2697
|
+
keyboardShortcutsEnabled = commandLine[cliFlag46] === false;
|
|
2656
2698
|
return {
|
|
2657
2699
|
value: keyboardShortcutsEnabled,
|
|
2658
2700
|
source: "cli"
|
|
@@ -2666,42 +2708,42 @@ var keyboardShortcutsOption = {
|
|
|
2666
2708
|
setConfig(value) {
|
|
2667
2709
|
keyboardShortcutsEnabled = value;
|
|
2668
2710
|
},
|
|
2669
|
-
id:
|
|
2711
|
+
id: cliFlag46
|
|
2670
2712
|
};
|
|
2671
2713
|
|
|
2672
2714
|
// src/options/latency-hint.tsx
|
|
2673
|
-
import { jsx as
|
|
2674
|
-
var
|
|
2715
|
+
import { jsx as jsx43, jsxs as jsxs29, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2716
|
+
var cliFlag47 = "audio-latency-hint";
|
|
2675
2717
|
var value = null;
|
|
2676
2718
|
var audioLatencyHintOption = {
|
|
2677
2719
|
name: "Audio Latency Hint",
|
|
2678
|
-
cliFlag:
|
|
2679
|
-
description: () => /* @__PURE__ */
|
|
2720
|
+
cliFlag: cliFlag47,
|
|
2721
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment43, {
|
|
2680
2722
|
children: [
|
|
2681
2723
|
"Sets the",
|
|
2682
2724
|
" ",
|
|
2683
|
-
/* @__PURE__ */
|
|
2725
|
+
/* @__PURE__ */ jsx43("a", {
|
|
2684
2726
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
2685
2727
|
children: "audio latency"
|
|
2686
2728
|
}),
|
|
2687
2729
|
" ",
|
|
2688
2730
|
"hint for the global ",
|
|
2689
|
-
/* @__PURE__ */
|
|
2731
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2690
2732
|
children: "AudioContext"
|
|
2691
2733
|
}),
|
|
2692
2734
|
" context that Remotion uses to play audio.",
|
|
2693
|
-
/* @__PURE__ */
|
|
2735
|
+
/* @__PURE__ */ jsx43("br", {}),
|
|
2694
2736
|
"Possible values: ",
|
|
2695
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2696
2738
|
children: "interactive"
|
|
2697
2739
|
}),
|
|
2698
2740
|
", ",
|
|
2699
|
-
/* @__PURE__ */
|
|
2741
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2700
2742
|
children: "balanced"
|
|
2701
2743
|
}),
|
|
2702
2744
|
",",
|
|
2703
2745
|
" ",
|
|
2704
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2705
2747
|
children: "playback"
|
|
2706
2748
|
})
|
|
2707
2749
|
]
|
|
@@ -2710,7 +2752,7 @@ var audioLatencyHintOption = {
|
|
|
2710
2752
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
2711
2753
|
type: "playback",
|
|
2712
2754
|
getValue: ({ commandLine }) => {
|
|
2713
|
-
const val = commandLine[
|
|
2755
|
+
const val = commandLine[cliFlag47];
|
|
2714
2756
|
if (typeof val !== "undefined") {
|
|
2715
2757
|
return { value: val, source: "cli" };
|
|
2716
2758
|
}
|
|
@@ -2722,21 +2764,21 @@ var audioLatencyHintOption = {
|
|
|
2722
2764
|
setConfig: (profile) => {
|
|
2723
2765
|
value = profile;
|
|
2724
2766
|
},
|
|
2725
|
-
id:
|
|
2767
|
+
id: cliFlag47
|
|
2726
2768
|
};
|
|
2727
2769
|
|
|
2728
2770
|
// src/options/license-key.tsx
|
|
2729
|
-
import { jsx as
|
|
2771
|
+
import { jsx as jsx44, jsxs as jsxs30, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2730
2772
|
var currentLicenseKey = null;
|
|
2731
|
-
var
|
|
2773
|
+
var cliFlag48 = "license-key";
|
|
2732
2774
|
var licenseKeyOption = {
|
|
2733
2775
|
name: "License key",
|
|
2734
|
-
cliFlag:
|
|
2735
|
-
description: () => /* @__PURE__ */
|
|
2776
|
+
cliFlag: cliFlag48,
|
|
2777
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment44, {
|
|
2736
2778
|
children: [
|
|
2737
2779
|
"License key for sending a usage event using",
|
|
2738
2780
|
" ",
|
|
2739
|
-
/* @__PURE__ */
|
|
2781
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2740
2782
|
children: "@remotion/licensing"
|
|
2741
2783
|
}),
|
|
2742
2784
|
"."
|
|
@@ -2746,10 +2788,10 @@ var licenseKeyOption = {
|
|
|
2746
2788
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2747
2789
|
type: null,
|
|
2748
2790
|
getValue: ({ commandLine }) => {
|
|
2749
|
-
if (commandLine[
|
|
2791
|
+
if (commandLine[cliFlag48] !== undefined) {
|
|
2750
2792
|
return {
|
|
2751
2793
|
source: "cli",
|
|
2752
|
-
value: commandLine[
|
|
2794
|
+
value: commandLine[cliFlag48]
|
|
2753
2795
|
};
|
|
2754
2796
|
}
|
|
2755
2797
|
return {
|
|
@@ -2760,47 +2802,47 @@ var licenseKeyOption = {
|
|
|
2760
2802
|
setConfig: (value2) => {
|
|
2761
2803
|
currentLicenseKey = value2;
|
|
2762
2804
|
},
|
|
2763
|
-
id:
|
|
2805
|
+
id: cliFlag48
|
|
2764
2806
|
};
|
|
2765
2807
|
|
|
2766
2808
|
// src/options/log-level.tsx
|
|
2767
|
-
import { jsx as
|
|
2809
|
+
import { jsx as jsx45, jsxs as jsxs31, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2768
2810
|
var logLevel = "info";
|
|
2769
|
-
var
|
|
2811
|
+
var cliFlag49 = "log";
|
|
2770
2812
|
var logLevelOption = {
|
|
2771
|
-
cliFlag:
|
|
2813
|
+
cliFlag: cliFlag49,
|
|
2772
2814
|
name: "Log Level",
|
|
2773
2815
|
ssrName: "logLevel",
|
|
2774
|
-
description: () => /* @__PURE__ */
|
|
2816
|
+
description: () => /* @__PURE__ */ jsxs31(Fragment45, {
|
|
2775
2817
|
children: [
|
|
2776
2818
|
"One of ",
|
|
2777
|
-
/* @__PURE__ */
|
|
2819
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2778
2820
|
children: "trace"
|
|
2779
2821
|
}),
|
|
2780
2822
|
", ",
|
|
2781
|
-
/* @__PURE__ */
|
|
2823
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2782
2824
|
children: "verbose"
|
|
2783
2825
|
}),
|
|
2784
2826
|
", ",
|
|
2785
|
-
/* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2786
2828
|
children: "info"
|
|
2787
2829
|
}),
|
|
2788
2830
|
",",
|
|
2789
2831
|
" ",
|
|
2790
|
-
/* @__PURE__ */
|
|
2832
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2791
2833
|
children: "warn"
|
|
2792
2834
|
}),
|
|
2793
2835
|
", ",
|
|
2794
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2795
2837
|
children: "error"
|
|
2796
2838
|
}),
|
|
2797
2839
|
".",
|
|
2798
|
-
/* @__PURE__ */
|
|
2840
|
+
/* @__PURE__ */ jsx45("br", {}),
|
|
2799
2841
|
" Determines how much info is being logged to the console.",
|
|
2800
|
-
/* @__PURE__ */
|
|
2801
|
-
/* @__PURE__ */
|
|
2842
|
+
/* @__PURE__ */ jsx45("br", {}),
|
|
2843
|
+
/* @__PURE__ */ jsx45("br", {}),
|
|
2802
2844
|
" Default ",
|
|
2803
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2804
2846
|
children: "info"
|
|
2805
2847
|
}),
|
|
2806
2848
|
"."
|
|
@@ -2808,11 +2850,11 @@ var logLevelOption = {
|
|
|
2808
2850
|
}),
|
|
2809
2851
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
2810
2852
|
getValue: ({ commandLine }) => {
|
|
2811
|
-
if (commandLine[
|
|
2812
|
-
if (!isValidLogLevel(commandLine[
|
|
2853
|
+
if (commandLine[cliFlag49]) {
|
|
2854
|
+
if (!isValidLogLevel(commandLine[cliFlag49])) {
|
|
2813
2855
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
2814
2856
|
}
|
|
2815
|
-
return { value: commandLine[
|
|
2857
|
+
return { value: commandLine[cliFlag49], source: "cli" };
|
|
2816
2858
|
}
|
|
2817
2859
|
if (logLevel !== "info") {
|
|
2818
2860
|
return { value: logLevel, source: "config" };
|
|
@@ -2823,23 +2865,23 @@ var logLevelOption = {
|
|
|
2823
2865
|
logLevel = newLogLevel;
|
|
2824
2866
|
},
|
|
2825
2867
|
type: "error",
|
|
2826
|
-
id:
|
|
2868
|
+
id: cliFlag49
|
|
2827
2869
|
};
|
|
2828
2870
|
|
|
2829
2871
|
// src/options/metadata.tsx
|
|
2830
|
-
import { jsx as
|
|
2872
|
+
import { jsx as jsx46, jsxs as jsxs32, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
2831
2873
|
var metadata = {};
|
|
2832
|
-
var
|
|
2874
|
+
var cliFlag50 = "metadata";
|
|
2833
2875
|
var metadataOption = {
|
|
2834
2876
|
name: "Metadata",
|
|
2835
|
-
cliFlag:
|
|
2877
|
+
cliFlag: cliFlag50,
|
|
2836
2878
|
description: (mode) => {
|
|
2837
2879
|
if (mode === "ssr") {
|
|
2838
|
-
return /* @__PURE__ */
|
|
2880
|
+
return /* @__PURE__ */ jsxs32(Fragment46, {
|
|
2839
2881
|
children: [
|
|
2840
2882
|
"An object containing metadata to be embedded in the video. See",
|
|
2841
2883
|
" ",
|
|
2842
|
-
/* @__PURE__ */
|
|
2884
|
+
/* @__PURE__ */ jsx46("a", {
|
|
2843
2885
|
href: "/docs/metadata",
|
|
2844
2886
|
children: "here"
|
|
2845
2887
|
}),
|
|
@@ -2847,18 +2889,18 @@ var metadataOption = {
|
|
|
2847
2889
|
]
|
|
2848
2890
|
});
|
|
2849
2891
|
}
|
|
2850
|
-
return /* @__PURE__ */
|
|
2892
|
+
return /* @__PURE__ */ jsxs32(Fragment46, {
|
|
2851
2893
|
children: [
|
|
2852
2894
|
"Metadata to be embedded in the video. See",
|
|
2853
2895
|
" ",
|
|
2854
|
-
/* @__PURE__ */
|
|
2896
|
+
/* @__PURE__ */ jsx46("a", {
|
|
2855
2897
|
href: "/docs/metadata",
|
|
2856
2898
|
children: "here"
|
|
2857
2899
|
}),
|
|
2858
2900
|
" for which metadata is accepted.",
|
|
2859
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ jsx46("br", {}),
|
|
2860
2902
|
"The parameter must be in the format of ",
|
|
2861
|
-
/* @__PURE__ */
|
|
2903
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2862
2904
|
children: "--metadata key=value"
|
|
2863
2905
|
}),
|
|
2864
2906
|
" ",
|
|
@@ -2869,8 +2911,8 @@ var metadataOption = {
|
|
|
2869
2911
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
2870
2912
|
type: {},
|
|
2871
2913
|
getValue: ({ commandLine }) => {
|
|
2872
|
-
if (commandLine[
|
|
2873
|
-
const val = commandLine[
|
|
2914
|
+
if (commandLine[cliFlag50] !== undefined) {
|
|
2915
|
+
const val = commandLine[cliFlag50];
|
|
2874
2916
|
const array = typeof val === "string" ? [val] : val;
|
|
2875
2917
|
const keyValues = array.map((a) => {
|
|
2876
2918
|
if (!a.includes("=")) {
|
|
@@ -2897,28 +2939,28 @@ var metadataOption = {
|
|
|
2897
2939
|
metadata = newMetadata;
|
|
2898
2940
|
},
|
|
2899
2941
|
ssrName: "metadata",
|
|
2900
|
-
id:
|
|
2942
|
+
id: cliFlag50
|
|
2901
2943
|
};
|
|
2902
2944
|
|
|
2903
2945
|
// src/options/mute.tsx
|
|
2904
|
-
import { jsx as
|
|
2946
|
+
import { jsx as jsx47, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
2905
2947
|
var DEFAULT_MUTED_STATE = false;
|
|
2906
2948
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
2907
|
-
var
|
|
2949
|
+
var cliFlag51 = "muted";
|
|
2908
2950
|
var mutedOption = {
|
|
2909
2951
|
name: "Muted",
|
|
2910
|
-
cliFlag:
|
|
2911
|
-
description: () => /* @__PURE__ */
|
|
2952
|
+
cliFlag: cliFlag51,
|
|
2953
|
+
description: () => /* @__PURE__ */ jsx47(Fragment47, {
|
|
2912
2954
|
children: "The Audio of the video will be omitted."
|
|
2913
2955
|
}),
|
|
2914
2956
|
ssrName: "muted",
|
|
2915
2957
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
2916
2958
|
type: false,
|
|
2917
2959
|
getValue: ({ commandLine }) => {
|
|
2918
|
-
if (commandLine[
|
|
2960
|
+
if (commandLine[cliFlag51] !== null) {
|
|
2919
2961
|
return {
|
|
2920
2962
|
source: "cli",
|
|
2921
|
-
value: commandLine[
|
|
2963
|
+
value: commandLine[cliFlag51]
|
|
2922
2964
|
};
|
|
2923
2965
|
}
|
|
2924
2966
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -2935,17 +2977,17 @@ var mutedOption = {
|
|
|
2935
2977
|
setConfig: () => {
|
|
2936
2978
|
mutedState = true;
|
|
2937
2979
|
},
|
|
2938
|
-
id:
|
|
2980
|
+
id: cliFlag51
|
|
2939
2981
|
};
|
|
2940
2982
|
|
|
2941
2983
|
// src/options/no-open.tsx
|
|
2942
|
-
import { jsx as
|
|
2984
|
+
import { jsx as jsx48, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
2943
2985
|
var shouldOpenBrowser = true;
|
|
2944
|
-
var
|
|
2986
|
+
var cliFlag52 = "no-open";
|
|
2945
2987
|
var noOpenOption = {
|
|
2946
2988
|
name: "Disable browser auto-open",
|
|
2947
|
-
cliFlag:
|
|
2948
|
-
description: () => /* @__PURE__ */
|
|
2989
|
+
cliFlag: cliFlag52,
|
|
2990
|
+
description: () => /* @__PURE__ */ jsx48(Fragment48, {
|
|
2949
2991
|
children: "If specified, Remotion will not open a browser window when starting the Studio."
|
|
2950
2992
|
}),
|
|
2951
2993
|
ssrName: null,
|
|
@@ -2964,54 +3006,54 @@ var noOpenOption = {
|
|
|
2964
3006
|
setConfig: (shouldOpen) => {
|
|
2965
3007
|
shouldOpenBrowser = shouldOpen;
|
|
2966
3008
|
},
|
|
2967
|
-
id:
|
|
3009
|
+
id: cliFlag52
|
|
2968
3010
|
};
|
|
2969
3011
|
|
|
2970
3012
|
// src/options/number-of-gif-loops.tsx
|
|
2971
|
-
import { jsx as
|
|
3013
|
+
import { jsx as jsx49, jsxs as jsxs33, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
2972
3014
|
var currentLoop = null;
|
|
2973
3015
|
var validate = (newLoop) => {
|
|
2974
3016
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
2975
3017
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
2976
3018
|
}
|
|
2977
3019
|
};
|
|
2978
|
-
var
|
|
3020
|
+
var cliFlag53 = "number-of-gif-loops";
|
|
2979
3021
|
var numberOfGifLoopsOption = {
|
|
2980
3022
|
name: "Number of GIF loops",
|
|
2981
|
-
cliFlag:
|
|
3023
|
+
cliFlag: cliFlag53,
|
|
2982
3024
|
description: () => {
|
|
2983
|
-
return /* @__PURE__ */
|
|
3025
|
+
return /* @__PURE__ */ jsxs33(Fragment49, {
|
|
2984
3026
|
children: [
|
|
2985
3027
|
"Allows you to set the number of loops as follows:",
|
|
2986
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ jsxs33("ul", {
|
|
2987
3029
|
children: [
|
|
2988
|
-
/* @__PURE__ */
|
|
3030
|
+
/* @__PURE__ */ jsxs33("li", {
|
|
2989
3031
|
children: [
|
|
2990
|
-
/* @__PURE__ */
|
|
3032
|
+
/* @__PURE__ */ jsx49("code", {
|
|
2991
3033
|
children: "null"
|
|
2992
3034
|
}),
|
|
2993
3035
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
2994
3036
|
]
|
|
2995
3037
|
}),
|
|
2996
|
-
/* @__PURE__ */
|
|
3038
|
+
/* @__PURE__ */ jsxs33("li", {
|
|
2997
3039
|
children: [
|
|
2998
|
-
/* @__PURE__ */
|
|
3040
|
+
/* @__PURE__ */ jsx49("code", {
|
|
2999
3041
|
children: "0"
|
|
3000
3042
|
}),
|
|
3001
3043
|
" disables looping"
|
|
3002
3044
|
]
|
|
3003
3045
|
}),
|
|
3004
|
-
/* @__PURE__ */
|
|
3046
|
+
/* @__PURE__ */ jsxs33("li", {
|
|
3005
3047
|
children: [
|
|
3006
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3007
3049
|
children: "1"
|
|
3008
3050
|
}),
|
|
3009
3051
|
" loops the GIF once (plays twice in total)"
|
|
3010
3052
|
]
|
|
3011
3053
|
}),
|
|
3012
|
-
/* @__PURE__ */
|
|
3054
|
+
/* @__PURE__ */ jsxs33("li", {
|
|
3013
3055
|
children: [
|
|
3014
|
-
/* @__PURE__ */
|
|
3056
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3015
3057
|
children: "2"
|
|
3016
3058
|
}),
|
|
3017
3059
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -3026,10 +3068,10 @@ var numberOfGifLoopsOption = {
|
|
|
3026
3068
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
3027
3069
|
type: 0,
|
|
3028
3070
|
getValue: ({ commandLine }) => {
|
|
3029
|
-
if (commandLine[
|
|
3030
|
-
validate(commandLine[
|
|
3071
|
+
if (commandLine[cliFlag53] !== undefined) {
|
|
3072
|
+
validate(commandLine[cliFlag53]);
|
|
3031
3073
|
return {
|
|
3032
|
-
value: commandLine[
|
|
3074
|
+
value: commandLine[cliFlag53],
|
|
3033
3075
|
source: "cli"
|
|
3034
3076
|
};
|
|
3035
3077
|
}
|
|
@@ -3048,21 +3090,21 @@ var numberOfGifLoopsOption = {
|
|
|
3048
3090
|
validate(newLoop);
|
|
3049
3091
|
currentLoop = newLoop;
|
|
3050
3092
|
},
|
|
3051
|
-
id:
|
|
3093
|
+
id: cliFlag53
|
|
3052
3094
|
};
|
|
3053
3095
|
|
|
3054
3096
|
// src/options/number-of-shared-audio-tags.tsx
|
|
3055
|
-
import { jsx as
|
|
3097
|
+
import { jsx as jsx50, jsxs as jsxs34, Fragment as Fragment50 } from "react/jsx-runtime";
|
|
3056
3098
|
var numberOfSharedAudioTags = 0;
|
|
3057
|
-
var
|
|
3099
|
+
var cliFlag54 = "number-of-shared-audio-tags";
|
|
3058
3100
|
var numberOfSharedAudioTagsOption = {
|
|
3059
3101
|
name: "Number of shared audio tags",
|
|
3060
|
-
cliFlag:
|
|
3061
|
-
description: () => /* @__PURE__ */
|
|
3102
|
+
cliFlag: cliFlag54,
|
|
3103
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment50, {
|
|
3062
3104
|
children: [
|
|
3063
3105
|
"Set number of shared audio tags. See",
|
|
3064
3106
|
" ",
|
|
3065
|
-
/* @__PURE__ */
|
|
3107
|
+
/* @__PURE__ */ jsx50("a", {
|
|
3066
3108
|
href: "https://www.remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop",
|
|
3067
3109
|
children: "Using the numberOfSharedAudioTags prop"
|
|
3068
3110
|
}),
|
|
@@ -3074,9 +3116,9 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3074
3116
|
docLink: "https://www.remotion.dev/docs/config#setnumberofsharedaudiotags",
|
|
3075
3117
|
type: 0,
|
|
3076
3118
|
getValue: ({ commandLine }) => {
|
|
3077
|
-
if (commandLine[
|
|
3119
|
+
if (commandLine[cliFlag54] !== undefined) {
|
|
3078
3120
|
return {
|
|
3079
|
-
value: commandLine[
|
|
3121
|
+
value: commandLine[cliFlag54],
|
|
3080
3122
|
source: "cli"
|
|
3081
3123
|
};
|
|
3082
3124
|
}
|
|
@@ -3088,39 +3130,39 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3088
3130
|
setConfig(value2) {
|
|
3089
3131
|
numberOfSharedAudioTags = value2;
|
|
3090
3132
|
},
|
|
3091
|
-
id:
|
|
3133
|
+
id: cliFlag54
|
|
3092
3134
|
};
|
|
3093
3135
|
|
|
3094
3136
|
// src/options/offthreadvideo-cache-size.tsx
|
|
3095
|
-
import { jsx as
|
|
3137
|
+
import { jsx as jsx51, jsxs as jsxs35, Fragment as Fragment51 } from "react/jsx-runtime";
|
|
3096
3138
|
var offthreadVideoCacheSizeInBytes = null;
|
|
3097
|
-
var
|
|
3139
|
+
var cliFlag55 = "offthreadvideo-cache-size-in-bytes";
|
|
3098
3140
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
3099
3141
|
name: "OffthreadVideo cache size",
|
|
3100
|
-
cliFlag:
|
|
3101
|
-
description: () => /* @__PURE__ */
|
|
3142
|
+
cliFlag: cliFlag55,
|
|
3143
|
+
description: () => /* @__PURE__ */ jsxs35(Fragment51, {
|
|
3102
3144
|
children: [
|
|
3103
3145
|
"From v4.0, Remotion has a cache for",
|
|
3104
3146
|
" ",
|
|
3105
|
-
/* @__PURE__ */
|
|
3147
|
+
/* @__PURE__ */ jsx51("a", {
|
|
3106
3148
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3107
|
-
children: /* @__PURE__ */
|
|
3149
|
+
children: /* @__PURE__ */ jsx51("code", {
|
|
3108
3150
|
children: "<OffthreadVideo>"
|
|
3109
3151
|
})
|
|
3110
3152
|
}),
|
|
3111
3153
|
" ",
|
|
3112
3154
|
"frames. The default is ",
|
|
3113
|
-
/* @__PURE__ */
|
|
3155
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3114
3156
|
children: "null"
|
|
3115
3157
|
}),
|
|
3116
3158
|
", corresponding to half of the system memory available when the render starts.",
|
|
3117
|
-
/* @__PURE__ */
|
|
3159
|
+
/* @__PURE__ */ jsx51("br", {}),
|
|
3118
3160
|
" 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.",
|
|
3119
|
-
/* @__PURE__ */
|
|
3161
|
+
/* @__PURE__ */ jsx51("br", {}),
|
|
3120
3162
|
"The used value will be printed when running in verbose mode.",
|
|
3121
|
-
/* @__PURE__ */
|
|
3163
|
+
/* @__PURE__ */ jsx51("br", {}),
|
|
3122
3164
|
"Default: ",
|
|
3123
|
-
/* @__PURE__ */
|
|
3165
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3124
3166
|
children: "null"
|
|
3125
3167
|
})
|
|
3126
3168
|
]
|
|
@@ -3129,10 +3171,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3129
3171
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3130
3172
|
type: 0,
|
|
3131
3173
|
getValue: ({ commandLine }) => {
|
|
3132
|
-
if (commandLine[
|
|
3174
|
+
if (commandLine[cliFlag55] !== undefined) {
|
|
3133
3175
|
return {
|
|
3134
3176
|
source: "cli",
|
|
3135
|
-
value: commandLine[
|
|
3177
|
+
value: commandLine[cliFlag55]
|
|
3136
3178
|
};
|
|
3137
3179
|
}
|
|
3138
3180
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -3149,22 +3191,22 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3149
3191
|
setConfig: (size) => {
|
|
3150
3192
|
offthreadVideoCacheSizeInBytes = size ?? null;
|
|
3151
3193
|
},
|
|
3152
|
-
id:
|
|
3194
|
+
id: cliFlag55
|
|
3153
3195
|
};
|
|
3154
3196
|
|
|
3155
3197
|
// src/options/offthreadvideo-threads.tsx
|
|
3156
|
-
import { jsx as
|
|
3198
|
+
import { jsx as jsx52, jsxs as jsxs36, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
3157
3199
|
var value2 = null;
|
|
3158
|
-
var
|
|
3200
|
+
var cliFlag56 = "offthreadvideo-video-threads";
|
|
3159
3201
|
var offthreadVideoThreadsOption = {
|
|
3160
3202
|
name: "OffthreadVideo threads",
|
|
3161
|
-
cliFlag:
|
|
3162
|
-
description: () => /* @__PURE__ */
|
|
3203
|
+
cliFlag: cliFlag56,
|
|
3204
|
+
description: () => /* @__PURE__ */ jsxs36(Fragment52, {
|
|
3163
3205
|
children: [
|
|
3164
3206
|
"The number of threads that",
|
|
3165
|
-
/* @__PURE__ */
|
|
3207
|
+
/* @__PURE__ */ jsx52("a", {
|
|
3166
3208
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3167
|
-
children: /* @__PURE__ */
|
|
3209
|
+
children: /* @__PURE__ */ jsx52("code", {
|
|
3168
3210
|
children: "<OffthreadVideo>"
|
|
3169
3211
|
})
|
|
3170
3212
|
}),
|
|
@@ -3179,10 +3221,10 @@ var offthreadVideoThreadsOption = {
|
|
|
3179
3221
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3180
3222
|
type: 0,
|
|
3181
3223
|
getValue: ({ commandLine }) => {
|
|
3182
|
-
if (commandLine[
|
|
3224
|
+
if (commandLine[cliFlag56] !== undefined) {
|
|
3183
3225
|
return {
|
|
3184
3226
|
source: "cli",
|
|
3185
|
-
value: commandLine[
|
|
3227
|
+
value: commandLine[cliFlag56]
|
|
3186
3228
|
};
|
|
3187
3229
|
}
|
|
3188
3230
|
if (value2 !== null) {
|
|
@@ -3199,21 +3241,21 @@ var offthreadVideoThreadsOption = {
|
|
|
3199
3241
|
setConfig: (size) => {
|
|
3200
3242
|
value2 = size ?? null;
|
|
3201
3243
|
},
|
|
3202
|
-
id:
|
|
3244
|
+
id: cliFlag56
|
|
3203
3245
|
};
|
|
3204
3246
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
3205
3247
|
|
|
3206
3248
|
// src/options/on-browser-download.tsx
|
|
3207
|
-
import { jsx as
|
|
3208
|
-
var
|
|
3249
|
+
import { jsx as jsx53, jsxs as jsxs37, Fragment as Fragment53 } from "react/jsx-runtime";
|
|
3250
|
+
var cliFlag57 = "on-browser-download";
|
|
3209
3251
|
var onBrowserDownloadOption = {
|
|
3210
3252
|
name: "Browser download callback function",
|
|
3211
|
-
cliFlag:
|
|
3212
|
-
description: () => /* @__PURE__ */
|
|
3253
|
+
cliFlag: cliFlag57,
|
|
3254
|
+
description: () => /* @__PURE__ */ jsxs37(Fragment53, {
|
|
3213
3255
|
children: [
|
|
3214
3256
|
"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.",
|
|
3215
3257
|
" ",
|
|
3216
|
-
/* @__PURE__ */
|
|
3258
|
+
/* @__PURE__ */ jsx53("a", {
|
|
3217
3259
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
3218
3260
|
children: "See here for how to use this option."
|
|
3219
3261
|
})
|
|
@@ -3228,26 +3270,26 @@ var onBrowserDownloadOption = {
|
|
|
3228
3270
|
setConfig: () => {
|
|
3229
3271
|
throw new Error("does not support config file");
|
|
3230
3272
|
},
|
|
3231
|
-
id:
|
|
3273
|
+
id: cliFlag57
|
|
3232
3274
|
};
|
|
3233
3275
|
|
|
3234
3276
|
// src/options/out-dir.tsx
|
|
3235
|
-
import { jsx as
|
|
3236
|
-
var
|
|
3277
|
+
import { jsx as jsx54, jsxs as jsxs38, Fragment as Fragment54 } from "react/jsx-runtime";
|
|
3278
|
+
var cliFlag58 = "out-dir";
|
|
3237
3279
|
var currentOutDir = null;
|
|
3238
3280
|
var outDirOption = {
|
|
3239
3281
|
name: "Output Directory",
|
|
3240
|
-
cliFlag:
|
|
3282
|
+
cliFlag: cliFlag58,
|
|
3241
3283
|
description: () => {
|
|
3242
|
-
return /* @__PURE__ */
|
|
3284
|
+
return /* @__PURE__ */ jsxs38(Fragment54, {
|
|
3243
3285
|
children: [
|
|
3244
3286
|
"Define the location of the resulting bundle. By default it is a folder called ",
|
|
3245
|
-
/* @__PURE__ */
|
|
3287
|
+
/* @__PURE__ */ jsx54("code", {
|
|
3246
3288
|
children: "build"
|
|
3247
3289
|
}),
|
|
3248
3290
|
", adjacent to the",
|
|
3249
3291
|
" ",
|
|
3250
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx54("a", {
|
|
3251
3293
|
href: "/docs/terminology/remotion-root",
|
|
3252
3294
|
children: "Remotion Root"
|
|
3253
3295
|
}),
|
|
@@ -3258,10 +3300,10 @@ var outDirOption = {
|
|
|
3258
3300
|
ssrName: "outDir",
|
|
3259
3301
|
docLink: "https://www.remotion.dev/docs/cli/bundle#--out-dir",
|
|
3260
3302
|
getValue: ({ commandLine }) => {
|
|
3261
|
-
if (commandLine[
|
|
3303
|
+
if (commandLine[cliFlag58] !== undefined) {
|
|
3262
3304
|
return {
|
|
3263
3305
|
source: "cli",
|
|
3264
|
-
value: commandLine[
|
|
3306
|
+
value: commandLine[cliFlag58]
|
|
3265
3307
|
};
|
|
3266
3308
|
}
|
|
3267
3309
|
if (currentOutDir !== null) {
|
|
@@ -3279,7 +3321,7 @@ var outDirOption = {
|
|
|
3279
3321
|
currentOutDir = value3;
|
|
3280
3322
|
},
|
|
3281
3323
|
type: "",
|
|
3282
|
-
id:
|
|
3324
|
+
id: cliFlag58
|
|
3283
3325
|
};
|
|
3284
3326
|
|
|
3285
3327
|
// src/validate.ts
|
|
@@ -3289,21 +3331,21 @@ var validateDimension = NoReactInternals2.validateDimension;
|
|
|
3289
3331
|
var validateDurationInFrames = NoReactInternals2.validateDurationInFrames;
|
|
3290
3332
|
|
|
3291
3333
|
// src/options/override-duration.tsx
|
|
3292
|
-
import { jsx as
|
|
3334
|
+
import { jsx as jsx55, Fragment as Fragment55 } from "react/jsx-runtime";
|
|
3293
3335
|
var currentDuration = null;
|
|
3294
|
-
var
|
|
3336
|
+
var cliFlag59 = "duration";
|
|
3295
3337
|
var overrideDurationOption = {
|
|
3296
3338
|
name: "Override Duration",
|
|
3297
|
-
cliFlag:
|
|
3298
|
-
description: () => /* @__PURE__ */
|
|
3339
|
+
cliFlag: cliFlag59,
|
|
3340
|
+
description: () => /* @__PURE__ */ jsx55(Fragment55, {
|
|
3299
3341
|
children: "Overrides the duration in frames of the composition."
|
|
3300
3342
|
}),
|
|
3301
3343
|
ssrName: null,
|
|
3302
3344
|
docLink: "https://www.remotion.dev/docs/config#overrideduration",
|
|
3303
3345
|
type: null,
|
|
3304
3346
|
getValue: ({ commandLine }) => {
|
|
3305
|
-
if (commandLine[
|
|
3306
|
-
const value3 = commandLine[
|
|
3347
|
+
if (commandLine[cliFlag59] !== undefined) {
|
|
3348
|
+
const value3 = commandLine[cliFlag59];
|
|
3307
3349
|
validateDurationInFrames(value3, {
|
|
3308
3350
|
component: "in --duration flag",
|
|
3309
3351
|
allowFloats: false
|
|
@@ -3331,25 +3373,25 @@ var overrideDurationOption = {
|
|
|
3331
3373
|
});
|
|
3332
3374
|
currentDuration = duration;
|
|
3333
3375
|
},
|
|
3334
|
-
id:
|
|
3376
|
+
id: cliFlag59
|
|
3335
3377
|
};
|
|
3336
3378
|
|
|
3337
3379
|
// src/options/override-fps.tsx
|
|
3338
|
-
import { jsx as
|
|
3380
|
+
import { jsx as jsx56, Fragment as Fragment56 } from "react/jsx-runtime";
|
|
3339
3381
|
var currentFps = null;
|
|
3340
|
-
var
|
|
3382
|
+
var cliFlag60 = "fps";
|
|
3341
3383
|
var overrideFpsOption = {
|
|
3342
3384
|
name: "Override FPS",
|
|
3343
|
-
cliFlag:
|
|
3344
|
-
description: () => /* @__PURE__ */
|
|
3385
|
+
cliFlag: cliFlag60,
|
|
3386
|
+
description: () => /* @__PURE__ */ jsx56(Fragment56, {
|
|
3345
3387
|
children: "Overrides the frames per second of the composition."
|
|
3346
3388
|
}),
|
|
3347
3389
|
ssrName: null,
|
|
3348
3390
|
docLink: "https://www.remotion.dev/docs/config#overridefps",
|
|
3349
3391
|
type: null,
|
|
3350
3392
|
getValue: ({ commandLine }) => {
|
|
3351
|
-
if (commandLine[
|
|
3352
|
-
const value3 = commandLine[
|
|
3393
|
+
if (commandLine[cliFlag60] !== undefined) {
|
|
3394
|
+
const value3 = commandLine[cliFlag60];
|
|
3353
3395
|
validateFps(value3, "in --fps flag", false);
|
|
3354
3396
|
return {
|
|
3355
3397
|
source: "cli",
|
|
@@ -3371,25 +3413,25 @@ var overrideFpsOption = {
|
|
|
3371
3413
|
validateFps(fps, "in Config.overrideFps()", false);
|
|
3372
3414
|
currentFps = fps;
|
|
3373
3415
|
},
|
|
3374
|
-
id:
|
|
3416
|
+
id: cliFlag60
|
|
3375
3417
|
};
|
|
3376
3418
|
|
|
3377
3419
|
// src/options/override-height.tsx
|
|
3378
|
-
import { jsx as
|
|
3420
|
+
import { jsx as jsx57, Fragment as Fragment57 } from "react/jsx-runtime";
|
|
3379
3421
|
var currentHeight = null;
|
|
3380
|
-
var
|
|
3422
|
+
var cliFlag61 = "height";
|
|
3381
3423
|
var overrideHeightOption = {
|
|
3382
3424
|
name: "Override Height",
|
|
3383
|
-
cliFlag:
|
|
3384
|
-
description: () => /* @__PURE__ */
|
|
3425
|
+
cliFlag: cliFlag61,
|
|
3426
|
+
description: () => /* @__PURE__ */ jsx57(Fragment57, {
|
|
3385
3427
|
children: "Overrides the height of the composition."
|
|
3386
3428
|
}),
|
|
3387
3429
|
ssrName: null,
|
|
3388
3430
|
docLink: "https://www.remotion.dev/docs/config#overrideheight",
|
|
3389
3431
|
type: null,
|
|
3390
3432
|
getValue: ({ commandLine }) => {
|
|
3391
|
-
if (commandLine[
|
|
3392
|
-
const value3 = commandLine[
|
|
3433
|
+
if (commandLine[cliFlag61] !== undefined) {
|
|
3434
|
+
const value3 = commandLine[cliFlag61];
|
|
3393
3435
|
validateDimension(value3, "height", "in --height flag");
|
|
3394
3436
|
return {
|
|
3395
3437
|
source: "cli",
|
|
@@ -3411,25 +3453,25 @@ var overrideHeightOption = {
|
|
|
3411
3453
|
validateDimension(height, "height", "in Config.overrideHeight()");
|
|
3412
3454
|
currentHeight = height;
|
|
3413
3455
|
},
|
|
3414
|
-
id:
|
|
3456
|
+
id: cliFlag61
|
|
3415
3457
|
};
|
|
3416
3458
|
|
|
3417
3459
|
// src/options/override-width.tsx
|
|
3418
|
-
import { jsx as
|
|
3460
|
+
import { jsx as jsx58, Fragment as Fragment58 } from "react/jsx-runtime";
|
|
3419
3461
|
var currentWidth = null;
|
|
3420
|
-
var
|
|
3462
|
+
var cliFlag62 = "width";
|
|
3421
3463
|
var overrideWidthOption = {
|
|
3422
3464
|
name: "Override Width",
|
|
3423
|
-
cliFlag:
|
|
3424
|
-
description: () => /* @__PURE__ */
|
|
3465
|
+
cliFlag: cliFlag62,
|
|
3466
|
+
description: () => /* @__PURE__ */ jsx58(Fragment58, {
|
|
3425
3467
|
children: "Overrides the width of the composition."
|
|
3426
3468
|
}),
|
|
3427
3469
|
ssrName: null,
|
|
3428
3470
|
docLink: "https://www.remotion.dev/docs/config#overridewidth",
|
|
3429
3471
|
type: null,
|
|
3430
3472
|
getValue: ({ commandLine }) => {
|
|
3431
|
-
if (commandLine[
|
|
3432
|
-
const value3 = commandLine[
|
|
3473
|
+
if (commandLine[cliFlag62] !== undefined) {
|
|
3474
|
+
const value3 = commandLine[cliFlag62];
|
|
3433
3475
|
validateDimension(value3, "width", "in --width flag");
|
|
3434
3476
|
return {
|
|
3435
3477
|
source: "cli",
|
|
@@ -3451,13 +3493,13 @@ var overrideWidthOption = {
|
|
|
3451
3493
|
validateDimension(width, "width", "in Config.overrideWidth()");
|
|
3452
3494
|
currentWidth = width;
|
|
3453
3495
|
},
|
|
3454
|
-
id:
|
|
3496
|
+
id: cliFlag62
|
|
3455
3497
|
};
|
|
3456
3498
|
|
|
3457
3499
|
// src/options/overwrite.tsx
|
|
3458
|
-
import { jsx as
|
|
3500
|
+
import { jsx as jsx59, jsxs as jsxs39, Fragment as Fragment59 } from "react/jsx-runtime";
|
|
3459
3501
|
var shouldOverwrite = null;
|
|
3460
|
-
var
|
|
3502
|
+
var cliFlag63 = "overwrite";
|
|
3461
3503
|
var validate2 = (value3) => {
|
|
3462
3504
|
if (typeof value3 !== "boolean") {
|
|
3463
3505
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -3465,15 +3507,15 @@ var validate2 = (value3) => {
|
|
|
3465
3507
|
};
|
|
3466
3508
|
var overwriteOption = {
|
|
3467
3509
|
name: "Overwrite output",
|
|
3468
|
-
cliFlag:
|
|
3469
|
-
description: () => /* @__PURE__ */
|
|
3510
|
+
cliFlag: cliFlag63,
|
|
3511
|
+
description: () => /* @__PURE__ */ jsxs39(Fragment59, {
|
|
3470
3512
|
children: [
|
|
3471
3513
|
"If set to ",
|
|
3472
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ jsx59("code", {
|
|
3473
3515
|
children: "false"
|
|
3474
3516
|
}),
|
|
3475
3517
|
", will prevent rendering to a path that already exists. Default is ",
|
|
3476
|
-
/* @__PURE__ */
|
|
3518
|
+
/* @__PURE__ */ jsx59("code", {
|
|
3477
3519
|
children: "true"
|
|
3478
3520
|
}),
|
|
3479
3521
|
"."
|
|
@@ -3483,11 +3525,11 @@ var overwriteOption = {
|
|
|
3483
3525
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
3484
3526
|
type: false,
|
|
3485
3527
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
3486
|
-
if (commandLine[
|
|
3487
|
-
validate2(commandLine[
|
|
3528
|
+
if (commandLine[cliFlag63] !== undefined) {
|
|
3529
|
+
validate2(commandLine[cliFlag63]);
|
|
3488
3530
|
return {
|
|
3489
3531
|
source: "cli",
|
|
3490
|
-
value: commandLine[
|
|
3532
|
+
value: commandLine[cliFlag63]
|
|
3491
3533
|
};
|
|
3492
3534
|
}
|
|
3493
3535
|
if (shouldOverwrite !== null) {
|
|
@@ -3505,36 +3547,36 @@ var overwriteOption = {
|
|
|
3505
3547
|
validate2(value3);
|
|
3506
3548
|
shouldOverwrite = value3;
|
|
3507
3549
|
},
|
|
3508
|
-
id:
|
|
3550
|
+
id: cliFlag63
|
|
3509
3551
|
};
|
|
3510
3552
|
|
|
3511
3553
|
// src/options/package-manager.tsx
|
|
3512
|
-
import { jsx as
|
|
3513
|
-
var
|
|
3554
|
+
import { jsx as jsx60, jsxs as jsxs40, Fragment as Fragment60 } from "react/jsx-runtime";
|
|
3555
|
+
var cliFlag64 = "package-manager";
|
|
3514
3556
|
var currentPackageManager = null;
|
|
3515
3557
|
var packageManagerOption = {
|
|
3516
3558
|
name: "Package Manager",
|
|
3517
|
-
cliFlag:
|
|
3559
|
+
cliFlag: cliFlag64,
|
|
3518
3560
|
description: () => {
|
|
3519
|
-
return /* @__PURE__ */
|
|
3561
|
+
return /* @__PURE__ */ jsxs40(Fragment60, {
|
|
3520
3562
|
children: [
|
|
3521
3563
|
"Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
|
|
3522
|
-
/* @__PURE__ */
|
|
3564
|
+
/* @__PURE__ */ jsx60("br", {}),
|
|
3523
3565
|
"Acceptable values are ",
|
|
3524
|
-
/* @__PURE__ */
|
|
3566
|
+
/* @__PURE__ */ jsx60("code", {
|
|
3525
3567
|
children: "npm"
|
|
3526
3568
|
}),
|
|
3527
3569
|
", ",
|
|
3528
|
-
/* @__PURE__ */
|
|
3570
|
+
/* @__PURE__ */ jsx60("code", {
|
|
3529
3571
|
children: "yarn"
|
|
3530
3572
|
}),
|
|
3531
3573
|
",",
|
|
3532
3574
|
" ",
|
|
3533
|
-
/* @__PURE__ */
|
|
3575
|
+
/* @__PURE__ */ jsx60("code", {
|
|
3534
3576
|
children: "pnpm"
|
|
3535
3577
|
}),
|
|
3536
3578
|
" and ",
|
|
3537
|
-
/* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ jsx60("code", {
|
|
3538
3580
|
children: "bun"
|
|
3539
3581
|
}),
|
|
3540
3582
|
"."
|
|
@@ -3544,10 +3586,10 @@ var packageManagerOption = {
|
|
|
3544
3586
|
ssrName: "packageManager",
|
|
3545
3587
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--package-manager",
|
|
3546
3588
|
getValue: ({ commandLine }) => {
|
|
3547
|
-
if (commandLine[
|
|
3589
|
+
if (commandLine[cliFlag64] !== undefined) {
|
|
3548
3590
|
return {
|
|
3549
3591
|
source: "cli",
|
|
3550
|
-
value: commandLine[
|
|
3592
|
+
value: commandLine[cliFlag64]
|
|
3551
3593
|
};
|
|
3552
3594
|
}
|
|
3553
3595
|
if (currentPackageManager !== null) {
|
|
@@ -3565,7 +3607,7 @@ var packageManagerOption = {
|
|
|
3565
3607
|
currentPackageManager = value3;
|
|
3566
3608
|
},
|
|
3567
3609
|
type: "",
|
|
3568
|
-
id:
|
|
3610
|
+
id: cliFlag64
|
|
3569
3611
|
};
|
|
3570
3612
|
|
|
3571
3613
|
// src/pixel-format.ts
|
|
@@ -3588,17 +3630,17 @@ var validPixelFormatsForCodec = (codec) => {
|
|
|
3588
3630
|
};
|
|
3589
3631
|
|
|
3590
3632
|
// src/options/pixel-format.tsx
|
|
3591
|
-
import { jsx as
|
|
3633
|
+
import { jsx as jsx61, jsxs as jsxs41, Fragment as Fragment61 } from "react/jsx-runtime";
|
|
3592
3634
|
var currentPixelFormat = DEFAULT_PIXEL_FORMAT;
|
|
3593
|
-
var
|
|
3635
|
+
var cliFlag65 = "pixel-format";
|
|
3594
3636
|
var pixelFormatOption = {
|
|
3595
3637
|
name: "Pixel format",
|
|
3596
|
-
cliFlag:
|
|
3597
|
-
description: () => /* @__PURE__ */
|
|
3638
|
+
cliFlag: cliFlag65,
|
|
3639
|
+
description: () => /* @__PURE__ */ jsxs41(Fragment61, {
|
|
3598
3640
|
children: [
|
|
3599
3641
|
"Sets the pixel format in FFmpeg. See",
|
|
3600
3642
|
" ",
|
|
3601
|
-
/* @__PURE__ */
|
|
3643
|
+
/* @__PURE__ */ jsx61("a", {
|
|
3602
3644
|
href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling",
|
|
3603
3645
|
children: "the FFmpeg docs for an explanation"
|
|
3604
3646
|
}),
|
|
@@ -3611,10 +3653,10 @@ var pixelFormatOption = {
|
|
|
3611
3653
|
docLink: "https://www.remotion.dev/docs/config#setpixelformat",
|
|
3612
3654
|
type: DEFAULT_PIXEL_FORMAT,
|
|
3613
3655
|
getValue: ({ commandLine }) => {
|
|
3614
|
-
if (commandLine[
|
|
3656
|
+
if (commandLine[cliFlag65] !== undefined) {
|
|
3615
3657
|
return {
|
|
3616
3658
|
source: "cli",
|
|
3617
|
-
value: commandLine[
|
|
3659
|
+
value: commandLine[cliFlag65]
|
|
3618
3660
|
};
|
|
3619
3661
|
}
|
|
3620
3662
|
if (currentPixelFormat !== DEFAULT_PIXEL_FORMAT) {
|
|
@@ -3634,26 +3676,26 @@ var pixelFormatOption = {
|
|
|
3634
3676
|
}
|
|
3635
3677
|
currentPixelFormat = value3;
|
|
3636
3678
|
},
|
|
3637
|
-
id:
|
|
3679
|
+
id: cliFlag65
|
|
3638
3680
|
};
|
|
3639
3681
|
|
|
3640
3682
|
// src/options/port.tsx
|
|
3641
|
-
import { jsx as
|
|
3642
|
-
var
|
|
3683
|
+
import { jsx as jsx62, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
3684
|
+
var cliFlag66 = "port";
|
|
3643
3685
|
var currentPort = null;
|
|
3644
3686
|
var portOption = {
|
|
3645
3687
|
name: "Port",
|
|
3646
|
-
cliFlag:
|
|
3647
|
-
description: () => /* @__PURE__ */
|
|
3688
|
+
cliFlag: cliFlag66,
|
|
3689
|
+
description: () => /* @__PURE__ */ jsx62(Fragment62, {
|
|
3648
3690
|
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."
|
|
3649
3691
|
}),
|
|
3650
3692
|
ssrName: null,
|
|
3651
3693
|
docLink: "https://www.remotion.dev/docs/config#setstudioport",
|
|
3652
3694
|
getValue: ({ commandLine }) => {
|
|
3653
|
-
if (commandLine[
|
|
3695
|
+
if (commandLine[cliFlag66] !== undefined) {
|
|
3654
3696
|
return {
|
|
3655
3697
|
source: "cli",
|
|
3656
|
-
value: commandLine[
|
|
3698
|
+
value: commandLine[cliFlag66]
|
|
3657
3699
|
};
|
|
3658
3700
|
}
|
|
3659
3701
|
if (currentPort !== null) {
|
|
@@ -3671,25 +3713,25 @@ var portOption = {
|
|
|
3671
3713
|
currentPort = value3;
|
|
3672
3714
|
},
|
|
3673
3715
|
type: 0,
|
|
3674
|
-
id:
|
|
3716
|
+
id: cliFlag66
|
|
3675
3717
|
};
|
|
3676
3718
|
|
|
3677
3719
|
// src/options/prefer-lossless.tsx
|
|
3678
|
-
import { jsx as
|
|
3679
|
-
var
|
|
3720
|
+
import { jsx as jsx63, jsxs as jsxs42, Fragment as Fragment63 } from "react/jsx-runtime";
|
|
3721
|
+
var cliFlag67 = "prefer-lossless";
|
|
3680
3722
|
var input = false;
|
|
3681
3723
|
var preferLosslessAudioOption = {
|
|
3682
3724
|
name: "Prefer lossless",
|
|
3683
|
-
cliFlag:
|
|
3684
|
-
description: () => /* @__PURE__ */
|
|
3725
|
+
cliFlag: cliFlag67,
|
|
3726
|
+
description: () => /* @__PURE__ */ jsxs42(Fragment63, {
|
|
3685
3727
|
children: [
|
|
3686
3728
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
3687
|
-
/* @__PURE__ */
|
|
3729
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3688
3730
|
children: "audioCodec"
|
|
3689
3731
|
}),
|
|
3690
3732
|
", it takes priority over",
|
|
3691
3733
|
" ",
|
|
3692
|
-
/* @__PURE__ */
|
|
3734
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3693
3735
|
children: "preferLossless"
|
|
3694
3736
|
}),
|
|
3695
3737
|
"."
|
|
@@ -3699,7 +3741,7 @@ var preferLosslessAudioOption = {
|
|
|
3699
3741
|
type: false,
|
|
3700
3742
|
ssrName: "preferLossless",
|
|
3701
3743
|
getValue: ({ commandLine }) => {
|
|
3702
|
-
if (commandLine[
|
|
3744
|
+
if (commandLine[cliFlag67]) {
|
|
3703
3745
|
return { value: true, source: "cli" };
|
|
3704
3746
|
}
|
|
3705
3747
|
if (input === true) {
|
|
@@ -3710,19 +3752,19 @@ var preferLosslessAudioOption = {
|
|
|
3710
3752
|
setConfig: (val) => {
|
|
3711
3753
|
input = val;
|
|
3712
3754
|
},
|
|
3713
|
-
id:
|
|
3755
|
+
id: cliFlag67
|
|
3714
3756
|
};
|
|
3715
3757
|
|
|
3716
3758
|
// src/options/props.tsx
|
|
3717
|
-
import { jsx as
|
|
3718
|
-
var
|
|
3759
|
+
import { jsx as jsx64, jsxs as jsxs43, Fragment as Fragment64 } from "react/jsx-runtime";
|
|
3760
|
+
var cliFlag68 = "props";
|
|
3719
3761
|
var propsOption = {
|
|
3720
3762
|
name: "Input Props",
|
|
3721
|
-
cliFlag:
|
|
3722
|
-
description: () => /* @__PURE__ */
|
|
3763
|
+
cliFlag: cliFlag68,
|
|
3764
|
+
description: () => /* @__PURE__ */ jsxs43(Fragment64, {
|
|
3723
3765
|
children: [
|
|
3724
3766
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
3725
|
-
/* @__PURE__ */
|
|
3767
|
+
/* @__PURE__ */ jsxs43("code", {
|
|
3726
3768
|
children: [
|
|
3727
3769
|
"--props='",
|
|
3728
3770
|
"{",
|
|
@@ -3732,7 +3774,7 @@ var propsOption = {
|
|
|
3732
3774
|
]
|
|
3733
3775
|
}),
|
|
3734
3776
|
") or a path to a JSON file (",
|
|
3735
|
-
/* @__PURE__ */
|
|
3777
|
+
/* @__PURE__ */ jsx64("code", {
|
|
3736
3778
|
children: "./path/to/props.json"
|
|
3737
3779
|
}),
|
|
3738
3780
|
")."
|
|
@@ -3741,10 +3783,10 @@ var propsOption = {
|
|
|
3741
3783
|
ssrName: null,
|
|
3742
3784
|
docLink: "https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli",
|
|
3743
3785
|
getValue: ({ commandLine }) => {
|
|
3744
|
-
if (commandLine[
|
|
3786
|
+
if (commandLine[cliFlag68] !== undefined) {
|
|
3745
3787
|
return {
|
|
3746
3788
|
source: "cli",
|
|
3747
|
-
value: commandLine[
|
|
3789
|
+
value: commandLine[cliFlag68]
|
|
3748
3790
|
};
|
|
3749
3791
|
}
|
|
3750
3792
|
return {
|
|
@@ -3756,11 +3798,11 @@ var propsOption = {
|
|
|
3756
3798
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
3757
3799
|
},
|
|
3758
3800
|
type: "",
|
|
3759
|
-
id:
|
|
3801
|
+
id: cliFlag68
|
|
3760
3802
|
};
|
|
3761
3803
|
|
|
3762
3804
|
// src/options/prores-profile.tsx
|
|
3763
|
-
import { jsx as
|
|
3805
|
+
import { jsx as jsx65, jsxs as jsxs44, Fragment as Fragment65 } from "react/jsx-runtime";
|
|
3764
3806
|
var validProResProfiles = [
|
|
3765
3807
|
"4444-xq",
|
|
3766
3808
|
"4444",
|
|
@@ -3770,14 +3812,14 @@ var validProResProfiles = [
|
|
|
3770
3812
|
"proxy"
|
|
3771
3813
|
];
|
|
3772
3814
|
var proResProfile;
|
|
3773
|
-
var
|
|
3815
|
+
var cliFlag69 = "prores-profile";
|
|
3774
3816
|
var proResProfileOption = {
|
|
3775
3817
|
name: "ProRes profile",
|
|
3776
|
-
cliFlag:
|
|
3777
|
-
description: () => /* @__PURE__ */
|
|
3818
|
+
cliFlag: cliFlag69,
|
|
3819
|
+
description: () => /* @__PURE__ */ jsxs44(Fragment65, {
|
|
3778
3820
|
children: [
|
|
3779
3821
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
3780
|
-
/* @__PURE__ */
|
|
3822
|
+
/* @__PURE__ */ jsx65("code", {
|
|
3781
3823
|
children: "prores"
|
|
3782
3824
|
}),
|
|
3783
3825
|
". Possible values:",
|
|
@@ -3785,12 +3827,12 @@ var proResProfileOption = {
|
|
|
3785
3827
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
3786
3828
|
". Default:",
|
|
3787
3829
|
" ",
|
|
3788
|
-
/* @__PURE__ */
|
|
3830
|
+
/* @__PURE__ */ jsx65("code", {
|
|
3789
3831
|
children: '"hq"'
|
|
3790
3832
|
}),
|
|
3791
3833
|
". See",
|
|
3792
3834
|
" ",
|
|
3793
|
-
/* @__PURE__ */
|
|
3835
|
+
/* @__PURE__ */ jsx65("a", {
|
|
3794
3836
|
href: "https://video.stackexchange.com/a/14715",
|
|
3795
3837
|
children: "here"
|
|
3796
3838
|
}),
|
|
@@ -3801,10 +3843,10 @@ var proResProfileOption = {
|
|
|
3801
3843
|
docLink: "https://www.remotion.dev/docs/config#setproresprofile",
|
|
3802
3844
|
type: undefined,
|
|
3803
3845
|
getValue: ({ commandLine }) => {
|
|
3804
|
-
if (commandLine[
|
|
3846
|
+
if (commandLine[cliFlag69] !== undefined) {
|
|
3805
3847
|
return {
|
|
3806
3848
|
source: "cli",
|
|
3807
|
-
value: String(commandLine[
|
|
3849
|
+
value: String(commandLine[cliFlag69])
|
|
3808
3850
|
};
|
|
3809
3851
|
}
|
|
3810
3852
|
if (proResProfile !== undefined) {
|
|
@@ -3821,24 +3863,24 @@ var proResProfileOption = {
|
|
|
3821
3863
|
setConfig: (value3) => {
|
|
3822
3864
|
proResProfile = value3;
|
|
3823
3865
|
},
|
|
3824
|
-
id:
|
|
3866
|
+
id: cliFlag69
|
|
3825
3867
|
};
|
|
3826
3868
|
|
|
3827
3869
|
// src/options/public-dir.tsx
|
|
3828
|
-
import { jsx as
|
|
3829
|
-
var
|
|
3870
|
+
import { jsx as jsx66, jsxs as jsxs45, Fragment as Fragment66 } from "react/jsx-runtime";
|
|
3871
|
+
var cliFlag70 = "public-dir";
|
|
3830
3872
|
var currentPublicDir = null;
|
|
3831
3873
|
var publicDirOption = {
|
|
3832
3874
|
name: "Public Directory",
|
|
3833
|
-
cliFlag:
|
|
3875
|
+
cliFlag: cliFlag70,
|
|
3834
3876
|
description: () => {
|
|
3835
|
-
return /* @__PURE__ */
|
|
3877
|
+
return /* @__PURE__ */ jsxs45(Fragment66, {
|
|
3836
3878
|
children: [
|
|
3837
3879
|
"Define the location of the",
|
|
3838
3880
|
" ",
|
|
3839
|
-
/* @__PURE__ */
|
|
3881
|
+
/* @__PURE__ */ jsx66("a", {
|
|
3840
3882
|
href: "/docs/terminology/public-dir",
|
|
3841
|
-
children: /* @__PURE__ */
|
|
3883
|
+
children: /* @__PURE__ */ jsx66("code", {
|
|
3842
3884
|
children: "public/ directory"
|
|
3843
3885
|
})
|
|
3844
3886
|
}),
|
|
@@ -3849,10 +3891,10 @@ var publicDirOption = {
|
|
|
3849
3891
|
ssrName: "publicDir",
|
|
3850
3892
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
3851
3893
|
getValue: ({ commandLine }) => {
|
|
3852
|
-
if (commandLine[
|
|
3894
|
+
if (commandLine[cliFlag70] !== undefined) {
|
|
3853
3895
|
return {
|
|
3854
3896
|
source: "cli",
|
|
3855
|
-
value: commandLine[
|
|
3897
|
+
value: commandLine[cliFlag70]
|
|
3856
3898
|
};
|
|
3857
3899
|
}
|
|
3858
3900
|
if (currentPublicDir !== null) {
|
|
@@ -3870,20 +3912,20 @@ var publicDirOption = {
|
|
|
3870
3912
|
currentPublicDir = value3;
|
|
3871
3913
|
},
|
|
3872
3914
|
type: "",
|
|
3873
|
-
id:
|
|
3915
|
+
id: cliFlag70
|
|
3874
3916
|
};
|
|
3875
3917
|
|
|
3876
3918
|
// src/options/public-license-key.tsx
|
|
3877
|
-
import { jsx as
|
|
3878
|
-
var
|
|
3919
|
+
import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
|
|
3920
|
+
var cliFlag71 = "public-license-key";
|
|
3879
3921
|
var currentPublicLicenseKey = null;
|
|
3880
3922
|
var publicLicenseKeyOption = {
|
|
3881
3923
|
name: "Public License Key",
|
|
3882
|
-
cliFlag:
|
|
3883
|
-
description: () => /* @__PURE__ */
|
|
3924
|
+
cliFlag: cliFlag71,
|
|
3925
|
+
description: () => /* @__PURE__ */ jsxs46(Fragment67, {
|
|
3884
3926
|
children: [
|
|
3885
3927
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
3886
|
-
/* @__PURE__ */
|
|
3928
|
+
/* @__PURE__ */ jsx67("a", {
|
|
3887
3929
|
href: "https://remotion.pro/dashboard",
|
|
3888
3930
|
children: "remotion.pro"
|
|
3889
3931
|
}),
|
|
@@ -3893,10 +3935,10 @@ var publicLicenseKeyOption = {
|
|
|
3893
3935
|
ssrName: "publicLicenseKey",
|
|
3894
3936
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
3895
3937
|
getValue: ({ commandLine }) => {
|
|
3896
|
-
if (commandLine[
|
|
3938
|
+
if (commandLine[cliFlag71] !== undefined) {
|
|
3897
3939
|
return {
|
|
3898
3940
|
source: "cli",
|
|
3899
|
-
value: commandLine[
|
|
3941
|
+
value: commandLine[cliFlag71]
|
|
3900
3942
|
};
|
|
3901
3943
|
}
|
|
3902
3944
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -3917,29 +3959,29 @@ var publicLicenseKeyOption = {
|
|
|
3917
3959
|
currentPublicLicenseKey = value3;
|
|
3918
3960
|
},
|
|
3919
3961
|
type: null,
|
|
3920
|
-
id:
|
|
3962
|
+
id: cliFlag71
|
|
3921
3963
|
};
|
|
3922
3964
|
|
|
3923
3965
|
// src/options/public-path.tsx
|
|
3924
|
-
import { jsx as
|
|
3925
|
-
var
|
|
3966
|
+
import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
|
|
3967
|
+
var cliFlag72 = "public-path";
|
|
3926
3968
|
var currentPublicPath = null;
|
|
3927
3969
|
var publicPathOption = {
|
|
3928
3970
|
name: "Public Path",
|
|
3929
|
-
cliFlag:
|
|
3971
|
+
cliFlag: cliFlag72,
|
|
3930
3972
|
description: () => {
|
|
3931
|
-
return /* @__PURE__ */
|
|
3973
|
+
return /* @__PURE__ */ jsxs47(Fragment68, {
|
|
3932
3974
|
children: [
|
|
3933
3975
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
3934
|
-
/* @__PURE__ */
|
|
3976
|
+
/* @__PURE__ */ jsx68("code", {
|
|
3935
3977
|
children: "/"
|
|
3936
3978
|
}),
|
|
3937
3979
|
", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
|
|
3938
|
-
/* @__PURE__ */
|
|
3980
|
+
/* @__PURE__ */ jsx68("code", {
|
|
3939
3981
|
children: "https://localhost:3000/"
|
|
3940
3982
|
}),
|
|
3941
3983
|
"). If you are deploying to a subdirectory (e.g. ",
|
|
3942
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ jsx68("code", {
|
|
3943
3985
|
children: "/sites/my-site/"
|
|
3944
3986
|
}),
|
|
3945
3987
|
"), you should set this to the subdirectory."
|
|
@@ -3949,10 +3991,10 @@ var publicPathOption = {
|
|
|
3949
3991
|
ssrName: "publicPath",
|
|
3950
3992
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
3951
3993
|
getValue: ({ commandLine }) => {
|
|
3952
|
-
if (commandLine[
|
|
3994
|
+
if (commandLine[cliFlag72] !== undefined) {
|
|
3953
3995
|
return {
|
|
3954
3996
|
source: "cli",
|
|
3955
|
-
value: commandLine[
|
|
3997
|
+
value: commandLine[cliFlag72]
|
|
3956
3998
|
};
|
|
3957
3999
|
}
|
|
3958
4000
|
if (currentPublicPath !== null) {
|
|
@@ -3970,29 +4012,29 @@ var publicPathOption = {
|
|
|
3970
4012
|
currentPublicPath = value3;
|
|
3971
4013
|
},
|
|
3972
4014
|
type: "",
|
|
3973
|
-
id:
|
|
4015
|
+
id: cliFlag72
|
|
3974
4016
|
};
|
|
3975
4017
|
|
|
3976
4018
|
// src/options/repro.tsx
|
|
3977
|
-
import { jsx as
|
|
4019
|
+
import { jsx as jsx69, Fragment as Fragment69 } from "react/jsx-runtime";
|
|
3978
4020
|
var enableRepro = false;
|
|
3979
4021
|
var setRepro = (should) => {
|
|
3980
4022
|
enableRepro = should;
|
|
3981
4023
|
};
|
|
3982
|
-
var
|
|
4024
|
+
var cliFlag73 = "repro";
|
|
3983
4025
|
var reproOption = {
|
|
3984
4026
|
name: "Create reproduction",
|
|
3985
|
-
cliFlag:
|
|
3986
|
-
description: () => /* @__PURE__ */
|
|
4027
|
+
cliFlag: cliFlag73,
|
|
4028
|
+
description: () => /* @__PURE__ */ jsx69(Fragment69, {
|
|
3987
4029
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
3988
4030
|
}),
|
|
3989
4031
|
ssrName: "repro",
|
|
3990
4032
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
3991
4033
|
type: false,
|
|
3992
4034
|
getValue: ({ commandLine }) => {
|
|
3993
|
-
if (commandLine[
|
|
4035
|
+
if (commandLine[cliFlag73] !== undefined) {
|
|
3994
4036
|
return {
|
|
3995
|
-
value: commandLine[
|
|
4037
|
+
value: commandLine[cliFlag73],
|
|
3996
4038
|
source: "cli"
|
|
3997
4039
|
};
|
|
3998
4040
|
}
|
|
@@ -4008,27 +4050,27 @@ var reproOption = {
|
|
|
4008
4050
|
};
|
|
4009
4051
|
},
|
|
4010
4052
|
setConfig: setRepro,
|
|
4011
|
-
id:
|
|
4053
|
+
id: cliFlag73
|
|
4012
4054
|
};
|
|
4013
4055
|
|
|
4014
4056
|
// src/options/rspack.tsx
|
|
4015
|
-
import { jsx as
|
|
4057
|
+
import { jsx as jsx70, Fragment as Fragment70 } from "react/jsx-runtime";
|
|
4016
4058
|
var rspackEnabled = false;
|
|
4017
|
-
var
|
|
4059
|
+
var cliFlag74 = "experimental-rspack";
|
|
4018
4060
|
var rspackOption = {
|
|
4019
4061
|
name: "Experimental Rspack",
|
|
4020
|
-
cliFlag:
|
|
4021
|
-
description: () => /* @__PURE__ */
|
|
4062
|
+
cliFlag: cliFlag74,
|
|
4063
|
+
description: () => /* @__PURE__ */ jsx70(Fragment70, {
|
|
4022
4064
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4023
4065
|
}),
|
|
4024
4066
|
ssrName: null,
|
|
4025
4067
|
docLink: null,
|
|
4026
4068
|
type: false,
|
|
4027
4069
|
getValue: ({ commandLine }) => {
|
|
4028
|
-
if (commandLine[
|
|
4070
|
+
if (commandLine[cliFlag74] !== undefined) {
|
|
4029
4071
|
rspackEnabled = true;
|
|
4030
4072
|
return {
|
|
4031
|
-
value: commandLine[
|
|
4073
|
+
value: commandLine[cliFlag74],
|
|
4032
4074
|
source: "cli"
|
|
4033
4075
|
};
|
|
4034
4076
|
}
|
|
@@ -4040,21 +4082,21 @@ var rspackOption = {
|
|
|
4040
4082
|
setConfig(value3) {
|
|
4041
4083
|
rspackEnabled = value3;
|
|
4042
4084
|
},
|
|
4043
|
-
id:
|
|
4085
|
+
id: cliFlag74
|
|
4044
4086
|
};
|
|
4045
4087
|
|
|
4046
4088
|
// src/options/runs.tsx
|
|
4047
|
-
import { jsx as
|
|
4089
|
+
import { jsx as jsx71, jsxs as jsxs48, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4048
4090
|
var DEFAULT_RUNS = 3;
|
|
4049
4091
|
var currentRuns = DEFAULT_RUNS;
|
|
4050
|
-
var
|
|
4092
|
+
var cliFlag75 = "runs";
|
|
4051
4093
|
var runsOption = {
|
|
4052
4094
|
name: "Benchmark runs",
|
|
4053
|
-
cliFlag:
|
|
4054
|
-
description: () => /* @__PURE__ */
|
|
4095
|
+
cliFlag: cliFlag75,
|
|
4096
|
+
description: () => /* @__PURE__ */ jsxs48(Fragment71, {
|
|
4055
4097
|
children: [
|
|
4056
4098
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4057
|
-
/* @__PURE__ */
|
|
4099
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4058
4100
|
children: DEFAULT_RUNS
|
|
4059
4101
|
}),
|
|
4060
4102
|
"."
|
|
@@ -4064,10 +4106,10 @@ var runsOption = {
|
|
|
4064
4106
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--runs",
|
|
4065
4107
|
type: DEFAULT_RUNS,
|
|
4066
4108
|
getValue: ({ commandLine }) => {
|
|
4067
|
-
if (commandLine[
|
|
4068
|
-
const value3 = Number(commandLine[
|
|
4109
|
+
if (commandLine[cliFlag75] !== undefined) {
|
|
4110
|
+
const value3 = Number(commandLine[cliFlag75]);
|
|
4069
4111
|
if (isNaN(value3) || value3 < 1) {
|
|
4070
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
4112
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag75]}`);
|
|
4071
4113
|
}
|
|
4072
4114
|
return { value: value3, source: "cli" };
|
|
4073
4115
|
}
|
|
@@ -4082,21 +4124,21 @@ var runsOption = {
|
|
|
4082
4124
|
}
|
|
4083
4125
|
currentRuns = value3;
|
|
4084
4126
|
},
|
|
4085
|
-
id:
|
|
4127
|
+
id: cliFlag75
|
|
4086
4128
|
};
|
|
4087
4129
|
|
|
4088
4130
|
// src/options/sample-rate.tsx
|
|
4089
|
-
import { jsx as
|
|
4090
|
-
var
|
|
4131
|
+
import { jsx as jsx72, jsxs as jsxs49, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4132
|
+
var cliFlag76 = "sample-rate";
|
|
4091
4133
|
var currentSampleRate = 48000;
|
|
4092
4134
|
var sampleRateOption = {
|
|
4093
4135
|
name: "Sample Rate",
|
|
4094
|
-
cliFlag:
|
|
4095
|
-
description: () => /* @__PURE__ */
|
|
4136
|
+
cliFlag: cliFlag76,
|
|
4137
|
+
description: () => /* @__PURE__ */ jsxs49(Fragment72, {
|
|
4096
4138
|
children: [
|
|
4097
4139
|
"Controls the sample rate of the output audio. The default is",
|
|
4098
4140
|
" ",
|
|
4099
|
-
/* @__PURE__ */
|
|
4141
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4100
4142
|
children: "48000"
|
|
4101
4143
|
}),
|
|
4102
4144
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4106,8 +4148,8 @@ var sampleRateOption = {
|
|
|
4106
4148
|
docLink: "https://www.remotion.dev/docs/sample-rate",
|
|
4107
4149
|
type: 48000,
|
|
4108
4150
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4109
|
-
if (commandLine[
|
|
4110
|
-
return { value: commandLine[
|
|
4151
|
+
if (commandLine[cliFlag76] !== undefined) {
|
|
4152
|
+
return { value: commandLine[cliFlag76], source: "cli" };
|
|
4111
4153
|
}
|
|
4112
4154
|
if (currentSampleRate !== 48000) {
|
|
4113
4155
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -4123,13 +4165,13 @@ var sampleRateOption = {
|
|
|
4123
4165
|
setConfig: (value3) => {
|
|
4124
4166
|
currentSampleRate = value3;
|
|
4125
4167
|
},
|
|
4126
|
-
id:
|
|
4168
|
+
id: cliFlag76
|
|
4127
4169
|
};
|
|
4128
4170
|
|
|
4129
4171
|
// src/options/scale.tsx
|
|
4130
|
-
import { jsx as
|
|
4172
|
+
import { jsx as jsx73, jsxs as jsxs50, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4131
4173
|
var currentScale = 1;
|
|
4132
|
-
var
|
|
4174
|
+
var cliFlag77 = "scale";
|
|
4133
4175
|
var validateScale = (value3) => {
|
|
4134
4176
|
if (typeof value3 !== "number") {
|
|
4135
4177
|
throw new Error("scale must be a number.");
|
|
@@ -4137,15 +4179,15 @@ var validateScale = (value3) => {
|
|
|
4137
4179
|
};
|
|
4138
4180
|
var scaleOption = {
|
|
4139
4181
|
name: "Scale",
|
|
4140
|
-
cliFlag:
|
|
4141
|
-
description: () => /* @__PURE__ */
|
|
4182
|
+
cliFlag: cliFlag77,
|
|
4183
|
+
description: () => /* @__PURE__ */ jsxs50(Fragment73, {
|
|
4142
4184
|
children: [
|
|
4143
4185
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
4144
|
-
/* @__PURE__ */
|
|
4186
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4145
4187
|
children: "1.5"
|
|
4146
4188
|
}),
|
|
4147
4189
|
". See ",
|
|
4148
|
-
/* @__PURE__ */
|
|
4190
|
+
/* @__PURE__ */ jsx73("a", {
|
|
4149
4191
|
href: "https://www.remotion.dev/docs/scaling",
|
|
4150
4192
|
children: "Scaling"
|
|
4151
4193
|
}),
|
|
@@ -4156,11 +4198,11 @@ var scaleOption = {
|
|
|
4156
4198
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
4157
4199
|
type: 0,
|
|
4158
4200
|
getValue: ({ commandLine }) => {
|
|
4159
|
-
if (commandLine[
|
|
4160
|
-
validateScale(commandLine[
|
|
4201
|
+
if (commandLine[cliFlag77] !== undefined) {
|
|
4202
|
+
validateScale(commandLine[cliFlag77]);
|
|
4161
4203
|
return {
|
|
4162
4204
|
source: "cli",
|
|
4163
|
-
value: commandLine[
|
|
4205
|
+
value: commandLine[cliFlag77]
|
|
4164
4206
|
};
|
|
4165
4207
|
}
|
|
4166
4208
|
if (currentScale !== null) {
|
|
@@ -4177,13 +4219,13 @@ var scaleOption = {
|
|
|
4177
4219
|
setConfig: (scale) => {
|
|
4178
4220
|
currentScale = scale;
|
|
4179
4221
|
},
|
|
4180
|
-
id:
|
|
4222
|
+
id: cliFlag77
|
|
4181
4223
|
};
|
|
4182
4224
|
|
|
4183
4225
|
// src/options/still-frame.tsx
|
|
4184
4226
|
import { NoReactInternals as NoReactInternals3 } from "remotion/no-react";
|
|
4185
|
-
import { jsx as
|
|
4186
|
-
var
|
|
4227
|
+
import { jsx as jsx74, jsxs as jsxs51, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4228
|
+
var cliFlag78 = "frame";
|
|
4187
4229
|
var currentFrame = null;
|
|
4188
4230
|
var validate3 = (frame) => {
|
|
4189
4231
|
NoReactInternals3.validateFrame({
|
|
@@ -4194,17 +4236,17 @@ var validate3 = (frame) => {
|
|
|
4194
4236
|
};
|
|
4195
4237
|
var stillFrameOption = {
|
|
4196
4238
|
name: "Frame",
|
|
4197
|
-
cliFlag:
|
|
4198
|
-
description: () => /* @__PURE__ */
|
|
4239
|
+
cliFlag: cliFlag78,
|
|
4240
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment74, {
|
|
4199
4241
|
children: [
|
|
4200
4242
|
"Which frame should be rendered when rendering a still. Default",
|
|
4201
4243
|
" ",
|
|
4202
|
-
/* @__PURE__ */
|
|
4244
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4203
4245
|
children: "0"
|
|
4204
4246
|
}),
|
|
4205
4247
|
". From v3.2.27, negative values are allowed, with",
|
|
4206
4248
|
" ",
|
|
4207
|
-
/* @__PURE__ */
|
|
4249
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4208
4250
|
children: "-1"
|
|
4209
4251
|
}),
|
|
4210
4252
|
" being the last frame."
|
|
@@ -4213,8 +4255,8 @@ var stillFrameOption = {
|
|
|
4213
4255
|
ssrName: "frame",
|
|
4214
4256
|
docLink: "https://www.remotion.dev/docs/cli/still#--frame",
|
|
4215
4257
|
getValue: ({ commandLine }) => {
|
|
4216
|
-
if (commandLine[
|
|
4217
|
-
const frame = Number(commandLine[
|
|
4258
|
+
if (commandLine[cliFlag78] !== undefined) {
|
|
4259
|
+
const frame = Number(commandLine[cliFlag78]);
|
|
4218
4260
|
validate3(frame);
|
|
4219
4261
|
return {
|
|
4220
4262
|
source: "cli",
|
|
@@ -4239,24 +4281,24 @@ var stillFrameOption = {
|
|
|
4239
4281
|
currentFrame = value3;
|
|
4240
4282
|
},
|
|
4241
4283
|
type: 0,
|
|
4242
|
-
id:
|
|
4284
|
+
id: cliFlag78
|
|
4243
4285
|
};
|
|
4244
4286
|
|
|
4245
4287
|
// src/options/still-image-format.tsx
|
|
4246
|
-
import { jsx as
|
|
4288
|
+
import { jsx as jsx75, jsxs as jsxs52, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4247
4289
|
var currentStillImageFormat = null;
|
|
4248
|
-
var
|
|
4290
|
+
var cliFlag79 = "image-format";
|
|
4249
4291
|
var stillImageFormatOption = {
|
|
4250
4292
|
name: "Still Image Format",
|
|
4251
|
-
cliFlag:
|
|
4252
|
-
description: () => /* @__PURE__ */
|
|
4293
|
+
cliFlag: cliFlag79,
|
|
4294
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment75, {
|
|
4253
4295
|
children: [
|
|
4254
4296
|
"The image format to use when rendering a still. Must be one of",
|
|
4255
4297
|
" ",
|
|
4256
4298
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4257
4299
|
". Default:",
|
|
4258
4300
|
" ",
|
|
4259
|
-
/* @__PURE__ */
|
|
4301
|
+
/* @__PURE__ */ jsx75("code", {
|
|
4260
4302
|
children: '"png"'
|
|
4261
4303
|
}),
|
|
4262
4304
|
"."
|
|
@@ -4266,8 +4308,8 @@ var stillImageFormatOption = {
|
|
|
4266
4308
|
docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
|
|
4267
4309
|
type: null,
|
|
4268
4310
|
getValue: ({ commandLine }) => {
|
|
4269
|
-
if (commandLine[
|
|
4270
|
-
const value3 = commandLine[
|
|
4311
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4312
|
+
const value3 = commandLine[cliFlag79];
|
|
4271
4313
|
if (!validStillImageFormats.includes(value3)) {
|
|
4272
4314
|
throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
4273
4315
|
}
|
|
@@ -4305,16 +4347,16 @@ var stillImageFormatOption = {
|
|
|
4305
4347
|
|
|
4306
4348
|
// src/options/throw-if-site-exists.tsx
|
|
4307
4349
|
var DEFAULT5 = false;
|
|
4308
|
-
var
|
|
4350
|
+
var cliFlag80 = "throw-if-site-exists";
|
|
4309
4351
|
var throwIfSiteExistsOption = {
|
|
4310
|
-
cliFlag:
|
|
4352
|
+
cliFlag: cliFlag80,
|
|
4311
4353
|
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.`,
|
|
4312
4354
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
4313
4355
|
getValue: ({ commandLine }) => {
|
|
4314
|
-
if (commandLine[
|
|
4356
|
+
if (commandLine[cliFlag80]) {
|
|
4315
4357
|
return {
|
|
4316
4358
|
source: "cli",
|
|
4317
|
-
value: commandLine[
|
|
4359
|
+
value: commandLine[cliFlag80]
|
|
4318
4360
|
};
|
|
4319
4361
|
}
|
|
4320
4362
|
return {
|
|
@@ -4328,41 +4370,41 @@ var throwIfSiteExistsOption = {
|
|
|
4328
4370
|
},
|
|
4329
4371
|
ssrName: "throwIfSiteExists",
|
|
4330
4372
|
type: false,
|
|
4331
|
-
id:
|
|
4373
|
+
id: cliFlag80
|
|
4332
4374
|
};
|
|
4333
4375
|
|
|
4334
4376
|
// src/options/timeout.tsx
|
|
4335
|
-
import { jsx as
|
|
4377
|
+
import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4336
4378
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
4337
4379
|
var validate4 = (value3) => {
|
|
4338
4380
|
if (typeof value3 !== "number") {
|
|
4339
4381
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
4340
4382
|
}
|
|
4341
4383
|
};
|
|
4342
|
-
var
|
|
4384
|
+
var cliFlag81 = "timeout";
|
|
4343
4385
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
4344
4386
|
name: "delayRender() timeout",
|
|
4345
|
-
cliFlag:
|
|
4346
|
-
description: () => /* @__PURE__ */
|
|
4387
|
+
cliFlag: cliFlag81,
|
|
4388
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment76, {
|
|
4347
4389
|
children: [
|
|
4348
4390
|
"A number describing how long the render may take to resolve all",
|
|
4349
4391
|
" ",
|
|
4350
|
-
/* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4351
4393
|
href: "https://remotion.dev/docs/delay-render",
|
|
4352
|
-
children: /* @__PURE__ */
|
|
4394
|
+
children: /* @__PURE__ */ jsx76("code", {
|
|
4353
4395
|
children: "delayRender()"
|
|
4354
4396
|
})
|
|
4355
4397
|
}),
|
|
4356
4398
|
" ",
|
|
4357
4399
|
"calls",
|
|
4358
4400
|
" ",
|
|
4359
|
-
/* @__PURE__ */
|
|
4401
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4360
4402
|
style: { fontSize: "inherit" },
|
|
4361
4403
|
href: "https://remotion.dev/docs/timeout",
|
|
4362
4404
|
children: "before it times out"
|
|
4363
4405
|
}),
|
|
4364
4406
|
". Default: ",
|
|
4365
|
-
/* @__PURE__ */
|
|
4407
|
+
/* @__PURE__ */ jsx76("code", {
|
|
4366
4408
|
children: "30000"
|
|
4367
4409
|
})
|
|
4368
4410
|
]
|
|
@@ -4371,10 +4413,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4371
4413
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
4372
4414
|
type: 0,
|
|
4373
4415
|
getValue: ({ commandLine }) => {
|
|
4374
|
-
if (commandLine[
|
|
4416
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4375
4417
|
return {
|
|
4376
4418
|
source: "cli",
|
|
4377
|
-
value: commandLine[
|
|
4419
|
+
value: commandLine[cliFlag81]
|
|
4378
4420
|
};
|
|
4379
4421
|
}
|
|
4380
4422
|
if (currentTimeout !== null) {
|
|
@@ -4393,27 +4435,27 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4393
4435
|
validate4(value3);
|
|
4394
4436
|
currentTimeout = value3;
|
|
4395
4437
|
},
|
|
4396
|
-
id:
|
|
4438
|
+
id: cliFlag81
|
|
4397
4439
|
};
|
|
4398
4440
|
|
|
4399
4441
|
// src/options/user-agent.tsx
|
|
4400
|
-
import { jsx as
|
|
4442
|
+
import { jsx as jsx77, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4401
4443
|
var userAgent = null;
|
|
4402
|
-
var
|
|
4444
|
+
var cliFlag82 = "user-agent";
|
|
4403
4445
|
var userAgentOption = {
|
|
4404
4446
|
name: "User agent",
|
|
4405
|
-
cliFlag:
|
|
4406
|
-
description: () => /* @__PURE__ */
|
|
4447
|
+
cliFlag: cliFlag82,
|
|
4448
|
+
description: () => /* @__PURE__ */ jsx77(Fragment77, {
|
|
4407
4449
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
4408
4450
|
}),
|
|
4409
4451
|
ssrName: "userAgent",
|
|
4410
4452
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--user-agent",
|
|
4411
4453
|
type: null,
|
|
4412
4454
|
getValue: ({ commandLine }) => {
|
|
4413
|
-
if (commandLine[
|
|
4455
|
+
if (commandLine[cliFlag82] !== undefined) {
|
|
4414
4456
|
return {
|
|
4415
4457
|
source: "cli",
|
|
4416
|
-
value: commandLine[
|
|
4458
|
+
value: commandLine[cliFlag82]
|
|
4417
4459
|
};
|
|
4418
4460
|
}
|
|
4419
4461
|
if (userAgent !== null) {
|
|
@@ -4430,25 +4472,25 @@ var userAgentOption = {
|
|
|
4430
4472
|
setConfig: (value3) => {
|
|
4431
4473
|
userAgent = value3;
|
|
4432
4474
|
},
|
|
4433
|
-
id:
|
|
4475
|
+
id: cliFlag82
|
|
4434
4476
|
};
|
|
4435
4477
|
|
|
4436
4478
|
// src/options/version-flag.tsx
|
|
4437
|
-
import { jsx as
|
|
4438
|
-
var
|
|
4479
|
+
import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4480
|
+
var cliFlag83 = "version";
|
|
4439
4481
|
var versionFlagOption = {
|
|
4440
4482
|
name: "Version",
|
|
4441
|
-
cliFlag:
|
|
4442
|
-
description: () => /* @__PURE__ */
|
|
4483
|
+
cliFlag: cliFlag83,
|
|
4484
|
+
description: () => /* @__PURE__ */ jsx78(Fragment78, {
|
|
4443
4485
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
4444
4486
|
}),
|
|
4445
4487
|
ssrName: null,
|
|
4446
4488
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--version",
|
|
4447
4489
|
getValue: ({ commandLine }) => {
|
|
4448
|
-
if (commandLine[
|
|
4490
|
+
if (commandLine[cliFlag83] !== undefined) {
|
|
4449
4491
|
return {
|
|
4450
4492
|
source: "cli",
|
|
4451
|
-
value: String(commandLine[
|
|
4493
|
+
value: String(commandLine[cliFlag83])
|
|
4452
4494
|
};
|
|
4453
4495
|
}
|
|
4454
4496
|
return {
|
|
@@ -4460,30 +4502,30 @@ var versionFlagOption = {
|
|
|
4460
4502
|
throw new Error("Cannot set version via config file");
|
|
4461
4503
|
},
|
|
4462
4504
|
type: "",
|
|
4463
|
-
id:
|
|
4505
|
+
id: cliFlag83
|
|
4464
4506
|
};
|
|
4465
4507
|
|
|
4466
4508
|
// src/options/video-bitrate.tsx
|
|
4467
|
-
import { jsx as
|
|
4509
|
+
import { jsx as jsx79, jsxs as jsxs54, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4468
4510
|
var videoBitrate = null;
|
|
4469
|
-
var
|
|
4511
|
+
var cliFlag84 = "video-bitrate";
|
|
4470
4512
|
var videoBitrateOption = {
|
|
4471
4513
|
name: "Video Bitrate",
|
|
4472
|
-
cliFlag:
|
|
4473
|
-
description: () => /* @__PURE__ */
|
|
4514
|
+
cliFlag: cliFlag84,
|
|
4515
|
+
description: () => /* @__PURE__ */ jsxs54(Fragment79, {
|
|
4474
4516
|
children: [
|
|
4475
4517
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
4476
4518
|
"'",
|
|
4477
4519
|
"s",
|
|
4478
|
-
/* @__PURE__ */
|
|
4520
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4479
4521
|
children: "-b:v"
|
|
4480
4522
|
}),
|
|
4481
4523
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
4482
|
-
/* @__PURE__ */
|
|
4524
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4483
4525
|
children: "512K"
|
|
4484
4526
|
}),
|
|
4485
4527
|
" for 512 kbps, ",
|
|
4486
|
-
/* @__PURE__ */
|
|
4528
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4487
4529
|
children: "1M"
|
|
4488
4530
|
}),
|
|
4489
4531
|
" for 1 Mbps."
|
|
@@ -4493,10 +4535,10 @@ var videoBitrateOption = {
|
|
|
4493
4535
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
4494
4536
|
type: "",
|
|
4495
4537
|
getValue: ({ commandLine }) => {
|
|
4496
|
-
if (commandLine[
|
|
4538
|
+
if (commandLine[cliFlag84] !== undefined) {
|
|
4497
4539
|
return {
|
|
4498
4540
|
source: "cli",
|
|
4499
|
-
value: commandLine[
|
|
4541
|
+
value: commandLine[cliFlag84]
|
|
4500
4542
|
};
|
|
4501
4543
|
}
|
|
4502
4544
|
if (videoBitrate !== null) {
|
|
@@ -4513,33 +4555,33 @@ var videoBitrateOption = {
|
|
|
4513
4555
|
setConfig: (bitrate) => {
|
|
4514
4556
|
videoBitrate = bitrate;
|
|
4515
4557
|
},
|
|
4516
|
-
id:
|
|
4558
|
+
id: cliFlag84
|
|
4517
4559
|
};
|
|
4518
4560
|
|
|
4519
4561
|
// src/options/video-cache-size.tsx
|
|
4520
|
-
import { jsx as
|
|
4562
|
+
import { jsx as jsx80, jsxs as jsxs55, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4521
4563
|
var mediaCacheSizeInBytes = null;
|
|
4522
|
-
var
|
|
4564
|
+
var cliFlag85 = "media-cache-size-in-bytes";
|
|
4523
4565
|
var mediaCacheSizeInBytesOption = {
|
|
4524
4566
|
name: "@remotion/media cache size",
|
|
4525
|
-
cliFlag:
|
|
4526
|
-
description: () => /* @__PURE__ */
|
|
4567
|
+
cliFlag: cliFlag85,
|
|
4568
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment80, {
|
|
4527
4569
|
children: [
|
|
4528
4570
|
"Specify the maximum size of the cache that ",
|
|
4529
|
-
/* @__PURE__ */
|
|
4571
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4530
4572
|
children: "<Video>"
|
|
4531
4573
|
}),
|
|
4532
4574
|
" and",
|
|
4533
4575
|
" ",
|
|
4534
|
-
/* @__PURE__ */
|
|
4576
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4535
4577
|
children: "<Audio>"
|
|
4536
4578
|
}),
|
|
4537
4579
|
" from ",
|
|
4538
|
-
/* @__PURE__ */
|
|
4580
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4539
4581
|
children: "@remotion/media"
|
|
4540
4582
|
}),
|
|
4541
4583
|
" may use combined, in bytes. ",
|
|
4542
|
-
/* @__PURE__ */
|
|
4584
|
+
/* @__PURE__ */ jsx80("br", {}),
|
|
4543
4585
|
"The default is half of the available system memory when the render starts."
|
|
4544
4586
|
]
|
|
4545
4587
|
}),
|
|
@@ -4547,10 +4589,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4547
4589
|
docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
|
|
4548
4590
|
type: 0,
|
|
4549
4591
|
getValue: ({ commandLine }) => {
|
|
4550
|
-
if (commandLine[
|
|
4592
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
4551
4593
|
return {
|
|
4552
4594
|
source: "cli",
|
|
4553
|
-
value: commandLine[
|
|
4595
|
+
value: commandLine[cliFlag85]
|
|
4554
4596
|
};
|
|
4555
4597
|
}
|
|
4556
4598
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -4567,7 +4609,7 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4567
4609
|
setConfig: (size) => {
|
|
4568
4610
|
mediaCacheSizeInBytes = size ?? null;
|
|
4569
4611
|
},
|
|
4570
|
-
id:
|
|
4612
|
+
id: cliFlag85
|
|
4571
4613
|
};
|
|
4572
4614
|
|
|
4573
4615
|
// src/path-normalize.ts
|
|
@@ -4686,7 +4728,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
4686
4728
|
};
|
|
4687
4729
|
|
|
4688
4730
|
// src/options/video-codec.tsx
|
|
4689
|
-
import { jsx as
|
|
4731
|
+
import { jsx as jsx81, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
4690
4732
|
var codec;
|
|
4691
4733
|
var setCodec = (newCodec) => {
|
|
4692
4734
|
if (newCodec === undefined) {
|
|
@@ -4710,11 +4752,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
4710
4752
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
4711
4753
|
};
|
|
4712
4754
|
};
|
|
4713
|
-
var
|
|
4755
|
+
var cliFlag86 = "codec";
|
|
4714
4756
|
var videoCodecOption = {
|
|
4715
4757
|
name: "Codec",
|
|
4716
|
-
cliFlag:
|
|
4717
|
-
description: () => /* @__PURE__ */
|
|
4758
|
+
cliFlag: cliFlag86,
|
|
4759
|
+
description: () => /* @__PURE__ */ jsx81(Fragment81, {
|
|
4718
4760
|
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."
|
|
4719
4761
|
}),
|
|
4720
4762
|
ssrName: "codec",
|
|
@@ -4737,7 +4779,7 @@ var videoCodecOption = {
|
|
|
4737
4779
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
4738
4780
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
4739
4781
|
}
|
|
4740
|
-
const cliArgument = commandLine[
|
|
4782
|
+
const cliArgument = commandLine[cliFlag86];
|
|
4741
4783
|
if (cliArgument) {
|
|
4742
4784
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
4743
4785
|
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.`);
|
|
@@ -4783,24 +4825,24 @@ var videoCodecOption = {
|
|
|
4783
4825
|
return { value: DEFAULT_CODEC, source: "default" };
|
|
4784
4826
|
},
|
|
4785
4827
|
setConfig: setCodec,
|
|
4786
|
-
id:
|
|
4828
|
+
id: cliFlag86
|
|
4787
4829
|
};
|
|
4788
4830
|
|
|
4789
4831
|
// src/options/video-image-format.tsx
|
|
4790
|
-
import { jsx as
|
|
4832
|
+
import { jsx as jsx82, jsxs as jsxs56, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
4791
4833
|
var currentVideoImageFormat = null;
|
|
4792
|
-
var
|
|
4834
|
+
var cliFlag87 = "image-format";
|
|
4793
4835
|
var videoImageFormatOption = {
|
|
4794
4836
|
name: "Video Image Format",
|
|
4795
|
-
cliFlag:
|
|
4796
|
-
description: () => /* @__PURE__ */
|
|
4837
|
+
cliFlag: cliFlag87,
|
|
4838
|
+
description: () => /* @__PURE__ */ jsxs56(Fragment82, {
|
|
4797
4839
|
children: [
|
|
4798
4840
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
4799
4841
|
" ",
|
|
4800
4842
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4801
4843
|
". Default:",
|
|
4802
4844
|
" ",
|
|
4803
|
-
/* @__PURE__ */
|
|
4845
|
+
/* @__PURE__ */ jsx82("code", {
|
|
4804
4846
|
children: '"jpeg"'
|
|
4805
4847
|
}),
|
|
4806
4848
|
". JPEG is faster, but does not support transparency."
|
|
@@ -4810,8 +4852,8 @@ var videoImageFormatOption = {
|
|
|
4810
4852
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#imageformat",
|
|
4811
4853
|
type: null,
|
|
4812
4854
|
getValue: ({ commandLine }) => {
|
|
4813
|
-
if (commandLine[
|
|
4814
|
-
const value3 = commandLine[
|
|
4855
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
4856
|
+
const value3 = commandLine[cliFlag87];
|
|
4815
4857
|
if (!validVideoImageFormats.includes(value3)) {
|
|
4816
4858
|
throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
4817
4859
|
}
|
|
@@ -4848,12 +4890,12 @@ var videoImageFormatOption = {
|
|
|
4848
4890
|
};
|
|
4849
4891
|
|
|
4850
4892
|
// src/options/webhook-custom-data.tsx
|
|
4851
|
-
import { jsxs as
|
|
4852
|
-
var
|
|
4893
|
+
import { jsxs as jsxs57, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
4894
|
+
var cliFlag88 = "webhook-custom-data";
|
|
4853
4895
|
var webhookCustomDataOption = {
|
|
4854
4896
|
name: "Webhook custom data",
|
|
4855
|
-
cliFlag:
|
|
4856
|
-
description: (type) => /* @__PURE__ */
|
|
4897
|
+
cliFlag: cliFlag88,
|
|
4898
|
+
description: (type) => /* @__PURE__ */ jsxs57(Fragment83, {
|
|
4857
4899
|
children: [
|
|
4858
4900
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
4859
4901
|
" ",
|
|
@@ -4869,24 +4911,24 @@ var webhookCustomDataOption = {
|
|
|
4869
4911
|
setConfig: () => {
|
|
4870
4912
|
throw new Error("Not implemented");
|
|
4871
4913
|
},
|
|
4872
|
-
id:
|
|
4914
|
+
id: cliFlag88
|
|
4873
4915
|
};
|
|
4874
4916
|
|
|
4875
4917
|
// src/options/webpack-poll.tsx
|
|
4876
|
-
import { jsx as
|
|
4877
|
-
var
|
|
4918
|
+
import { jsx as jsx83, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
4919
|
+
var cliFlag89 = "webpack-poll";
|
|
4878
4920
|
var webpackPolling = null;
|
|
4879
4921
|
var webpackPollOption = {
|
|
4880
4922
|
name: "Webpack Polling",
|
|
4881
|
-
cliFlag:
|
|
4882
|
-
description: () => /* @__PURE__ */
|
|
4923
|
+
cliFlag: cliFlag89,
|
|
4924
|
+
description: () => /* @__PURE__ */ jsx83(Fragment84, {
|
|
4883
4925
|
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."
|
|
4884
4926
|
}),
|
|
4885
4927
|
ssrName: null,
|
|
4886
4928
|
docLink: "https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds",
|
|
4887
4929
|
getValue: ({ commandLine }) => {
|
|
4888
|
-
if (commandLine[
|
|
4889
|
-
const val = commandLine[
|
|
4930
|
+
if (commandLine[cliFlag89] !== undefined) {
|
|
4931
|
+
const val = commandLine[cliFlag89];
|
|
4890
4932
|
if (typeof val !== "number") {
|
|
4891
4933
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
4892
4934
|
}
|
|
@@ -4913,11 +4955,11 @@ var webpackPollOption = {
|
|
|
4913
4955
|
webpackPolling = value3;
|
|
4914
4956
|
},
|
|
4915
4957
|
type: 0,
|
|
4916
|
-
id:
|
|
4958
|
+
id: cliFlag89
|
|
4917
4959
|
};
|
|
4918
4960
|
|
|
4919
4961
|
// src/options/x264-preset.tsx
|
|
4920
|
-
import { jsx as
|
|
4962
|
+
import { jsx as jsx84, jsxs as jsxs58, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
4921
4963
|
var x264PresetOptions = [
|
|
4922
4964
|
"ultrafast",
|
|
4923
4965
|
"superfast",
|
|
@@ -4931,63 +4973,63 @@ var x264PresetOptions = [
|
|
|
4931
4973
|
"placebo"
|
|
4932
4974
|
];
|
|
4933
4975
|
var preset = null;
|
|
4934
|
-
var
|
|
4976
|
+
var cliFlag90 = "x264-preset";
|
|
4935
4977
|
var DEFAULT_PRESET = "medium";
|
|
4936
4978
|
var x264Option = {
|
|
4937
4979
|
name: "x264 Preset",
|
|
4938
|
-
cliFlag:
|
|
4939
|
-
description: () => /* @__PURE__ */
|
|
4980
|
+
cliFlag: cliFlag90,
|
|
4981
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment85, {
|
|
4940
4982
|
children: [
|
|
4941
4983
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
4942
4984
|
" ",
|
|
4943
|
-
/* @__PURE__ */
|
|
4985
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4944
4986
|
children: "h264"
|
|
4945
4987
|
}),
|
|
4946
4988
|
" codec.",
|
|
4947
|
-
/* @__PURE__ */
|
|
4989
|
+
/* @__PURE__ */ jsx84("br", {}),
|
|
4948
4990
|
"Possible values: ",
|
|
4949
|
-
/* @__PURE__ */
|
|
4991
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4950
4992
|
children: "superfast"
|
|
4951
4993
|
}),
|
|
4952
4994
|
", ",
|
|
4953
|
-
/* @__PURE__ */
|
|
4995
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4954
4996
|
children: "veryfast"
|
|
4955
4997
|
}),
|
|
4956
4998
|
",",
|
|
4957
4999
|
" ",
|
|
4958
|
-
/* @__PURE__ */
|
|
5000
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4959
5001
|
children: "faster"
|
|
4960
5002
|
}),
|
|
4961
5003
|
", ",
|
|
4962
|
-
/* @__PURE__ */
|
|
5004
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4963
5005
|
children: "fast"
|
|
4964
5006
|
}),
|
|
4965
5007
|
", ",
|
|
4966
|
-
/* @__PURE__ */
|
|
5008
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4967
5009
|
children: "medium"
|
|
4968
5010
|
}),
|
|
4969
5011
|
",",
|
|
4970
5012
|
" ",
|
|
4971
|
-
/* @__PURE__ */
|
|
5013
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4972
5014
|
children: "slow"
|
|
4973
5015
|
}),
|
|
4974
5016
|
", ",
|
|
4975
|
-
/* @__PURE__ */
|
|
5017
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4976
5018
|
children: "slower"
|
|
4977
5019
|
}),
|
|
4978
5020
|
", ",
|
|
4979
|
-
/* @__PURE__ */
|
|
5021
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4980
5022
|
children: "veryslow"
|
|
4981
5023
|
}),
|
|
4982
5024
|
",",
|
|
4983
5025
|
" ",
|
|
4984
|
-
/* @__PURE__ */
|
|
5026
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4985
5027
|
children: "placebo"
|
|
4986
5028
|
}),
|
|
4987
5029
|
".",
|
|
4988
|
-
/* @__PURE__ */
|
|
5030
|
+
/* @__PURE__ */ jsx84("br", {}),
|
|
4989
5031
|
"Default: ",
|
|
4990
|
-
/* @__PURE__ */
|
|
5032
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4991
5033
|
children: DEFAULT_PRESET
|
|
4992
5034
|
})
|
|
4993
5035
|
]
|
|
@@ -4996,7 +5038,7 @@ var x264Option = {
|
|
|
4996
5038
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
4997
5039
|
type: "fast",
|
|
4998
5040
|
getValue: ({ commandLine }) => {
|
|
4999
|
-
const value3 = commandLine[
|
|
5041
|
+
const value3 = commandLine[cliFlag90];
|
|
5000
5042
|
if (typeof value3 !== "undefined") {
|
|
5001
5043
|
return { value: value3, source: "cli" };
|
|
5002
5044
|
}
|
|
@@ -5008,7 +5050,7 @@ var x264Option = {
|
|
|
5008
5050
|
setConfig: (profile) => {
|
|
5009
5051
|
preset = profile;
|
|
5010
5052
|
},
|
|
5011
|
-
id:
|
|
5053
|
+
id: cliFlag90
|
|
5012
5054
|
};
|
|
5013
5055
|
|
|
5014
5056
|
// src/options/index.tsx
|
|
@@ -5037,6 +5079,7 @@ var allOptions = {
|
|
|
5037
5079
|
folderExpiryOption,
|
|
5038
5080
|
enableMultiprocessOnLinuxOption,
|
|
5039
5081
|
glOption,
|
|
5082
|
+
gopSizeOption,
|
|
5040
5083
|
enableLambdaInsights,
|
|
5041
5084
|
encodingMaxRateOption,
|
|
5042
5085
|
encodingBufferSizeOption,
|
|
@@ -5114,6 +5157,7 @@ var optionsMap = {
|
|
|
5114
5157
|
numberOfGifLoops: numberOfGifLoopsOption,
|
|
5115
5158
|
repro: reproOption,
|
|
5116
5159
|
x264Preset: x264Option,
|
|
5160
|
+
gopSize: gopSizeOption,
|
|
5117
5161
|
audioBitrate: audioBitrateOption,
|
|
5118
5162
|
colorSpace: colorSpaceOption,
|
|
5119
5163
|
codec: videoCodecOption,
|
|
@@ -5195,6 +5239,7 @@ var optionsMap = {
|
|
|
5195
5239
|
audioBitrate: audioBitrateOption,
|
|
5196
5240
|
deleteAfter: deleteAfterOption,
|
|
5197
5241
|
x264Preset: x264Option,
|
|
5242
|
+
gopSize: gopSizeOption,
|
|
5198
5243
|
encodingMaxRate: encodingMaxRateOption,
|
|
5199
5244
|
encodingBufferSize: encodingBufferSizeOption,
|
|
5200
5245
|
colorSpace: colorSpaceOption,
|
|
@@ -5233,6 +5278,7 @@ var optionsMap = {
|
|
|
5233
5278
|
audioBitrate: audioBitrateOption,
|
|
5234
5279
|
videoBitrate: videoBitrateOption,
|
|
5235
5280
|
x264Preset: x264Option,
|
|
5281
|
+
gopSize: gopSizeOption,
|
|
5236
5282
|
encodingMaxRate: encodingMaxRateOption,
|
|
5237
5283
|
encodingBufferSize: encodingBufferSizeOption,
|
|
5238
5284
|
muted: mutedOption,
|