@remotion/studio 4.0.366 → 4.0.367
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/components/Modals.js +1 -1
- package/dist/components/RenderButton.js +3 -2
- package/dist/components/RenderModal/RenderModal.d.ts +7 -4
- package/dist/components/RenderModal/RenderModal.js +10 -4
- package/dist/components/RenderModal/RenderModalBasic.d.ts +4 -4
- package/dist/components/RenderQueue/actions.d.ts +3 -2
- package/dist/components/SidebarRenderButton.js +2 -1
- package/dist/esm/chunk-dve56fb5.js +42410 -0
- package/dist/esm/chunk-rnxwsmc3.js +42417 -0
- package/dist/esm/chunk-ycr2rhjx.js +42417 -0
- package/dist/esm/chunk-z4rfd84y.js +42410 -0
- package/dist/esm/internals.mjs +29 -20
- package/dist/esm/previewEntry.mjs +29 -20
- package/dist/esm/renderEntry.mjs +3 -2
- package/dist/helpers/prores-labels.d.ts +2 -2
- package/dist/helpers/retry-payload.js +8 -5
- package/dist/renderEntry.js +1 -0
- package/dist/state/modals.d.ts +7 -5
- package/package.json +9 -9
package/dist/esm/internals.mjs
CHANGED
|
@@ -2571,7 +2571,7 @@ var SidebarRenderButton = ({ composition, visible }) => {
|
|
|
2571
2571
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
2572
2572
|
initialProResProfile: defaults.proResProfile,
|
|
2573
2573
|
initialx264Preset: defaults.x264Preset,
|
|
2574
|
-
initialPixelFormat:
|
|
2574
|
+
initialPixelFormat: null,
|
|
2575
2575
|
initialAudioBitrate: defaults.audioBitrate,
|
|
2576
2576
|
initialVideoBitrate: defaults.videoBitrate,
|
|
2577
2577
|
initialEveryNthFrame: defaults.everyNthFrame,
|
|
@@ -2601,7 +2601,8 @@ var SidebarRenderButton = ({ composition, visible }) => {
|
|
|
2601
2601
|
defaulMetadata: defaults.metadata,
|
|
2602
2602
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
2603
2603
|
initialChromeMode: defaults.chromeMode,
|
|
2604
|
-
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes
|
|
2604
|
+
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes,
|
|
2605
|
+
renderDefaults: defaults
|
|
2605
2606
|
});
|
|
2606
2607
|
if (isMobileLayout) {
|
|
2607
2608
|
setSidebarCollapsedState({ left: "collapsed", right: "collapsed" });
|
|
@@ -15957,7 +15958,7 @@ var makeRetryPayload = (job) => {
|
|
|
15957
15958
|
compositionId: job.compositionId,
|
|
15958
15959
|
initialFrame: job.frame,
|
|
15959
15960
|
initialStillImageFormat: job.imageFormat,
|
|
15960
|
-
initialVideoImageFormat:
|
|
15961
|
+
initialVideoImageFormat: null,
|
|
15961
15962
|
initialJpegQuality: job.jpegQuality ?? defaults.jpegQuality,
|
|
15962
15963
|
initialScale: job.scale,
|
|
15963
15964
|
initialLogLevel: job.logLevel,
|
|
@@ -15966,7 +15967,7 @@ var makeRetryPayload = (job) => {
|
|
|
15966
15967
|
minConcurrency: defaults.minConcurrency,
|
|
15967
15968
|
initialMuted: defaults.muted,
|
|
15968
15969
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
15969
|
-
initialProResProfile:
|
|
15970
|
+
initialProResProfile: null,
|
|
15970
15971
|
initialx264Preset: defaults.x264Preset,
|
|
15971
15972
|
initialPixelFormat: defaults.pixelFormat,
|
|
15972
15973
|
initialAudioBitrate: defaults.audioBitrate,
|
|
@@ -15998,7 +15999,8 @@ var makeRetryPayload = (job) => {
|
|
|
15998
15999
|
renderTypeOfLastRender: "still",
|
|
15999
16000
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
16000
16001
|
initialChromeMode: job.chromeMode,
|
|
16001
|
-
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes
|
|
16002
|
+
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
16003
|
+
renderDefaults: defaults
|
|
16002
16004
|
};
|
|
16003
16005
|
}
|
|
16004
16006
|
if (job.type === "sequence") {
|
|
@@ -16006,7 +16008,7 @@ var makeRetryPayload = (job) => {
|
|
|
16006
16008
|
type: "render",
|
|
16007
16009
|
initialFrame: 0,
|
|
16008
16010
|
compositionId: job.compositionId,
|
|
16009
|
-
initialVideoImageFormat:
|
|
16011
|
+
initialVideoImageFormat: null,
|
|
16010
16012
|
initialJpegQuality: job.jpegQuality ?? defaults.jpegQuality,
|
|
16011
16013
|
initialScale: job.scale,
|
|
16012
16014
|
initialLogLevel: job.logLevel,
|
|
@@ -16015,7 +16017,7 @@ var makeRetryPayload = (job) => {
|
|
|
16015
16017
|
minConcurrency: defaults.minConcurrency,
|
|
16016
16018
|
initialMuted: defaults.muted,
|
|
16017
16019
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
16018
|
-
initialProResProfile:
|
|
16020
|
+
initialProResProfile: null,
|
|
16019
16021
|
initialx264Preset: defaults.x264Preset,
|
|
16020
16022
|
initialPixelFormat: defaults.pixelFormat,
|
|
16021
16023
|
initialAudioBitrate: defaults.audioBitrate,
|
|
@@ -16048,7 +16050,8 @@ var makeRetryPayload = (job) => {
|
|
|
16048
16050
|
renderTypeOfLastRender: "sequence",
|
|
16049
16051
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
16050
16052
|
initialChromeMode: job.chromeMode,
|
|
16051
|
-
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes
|
|
16053
|
+
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
16054
|
+
renderDefaults: defaults
|
|
16052
16055
|
};
|
|
16053
16056
|
}
|
|
16054
16057
|
if (job.type === "video") {
|
|
@@ -16066,7 +16069,7 @@ var makeRetryPayload = (job) => {
|
|
|
16066
16069
|
minConcurrency: defaults.minConcurrency,
|
|
16067
16070
|
initialMuted: job.muted,
|
|
16068
16071
|
initialEnforceAudioTrack: job.enforceAudioTrack,
|
|
16069
|
-
initialProResProfile: job.proResProfile ??
|
|
16072
|
+
initialProResProfile: job.proResProfile ?? null,
|
|
16070
16073
|
initialx264Preset: job.x264Preset ?? defaults.x264Preset,
|
|
16071
16074
|
initialPixelFormat: job.pixelFormat,
|
|
16072
16075
|
initialAudioBitrate: job.audioBitrate,
|
|
@@ -16098,7 +16101,8 @@ var makeRetryPayload = (job) => {
|
|
|
16098
16101
|
renderTypeOfLastRender: "video",
|
|
16099
16102
|
initialHardwareAcceleration: job.hardwareAcceleration,
|
|
16100
16103
|
initialChromeMode: job.chromeMode,
|
|
16101
|
-
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes
|
|
16104
|
+
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
16105
|
+
renderDefaults: defaults
|
|
16102
16106
|
};
|
|
16103
16107
|
}
|
|
16104
16108
|
throw new Error(`Job ${JSON.stringify(job)} Not implemented`);
|
|
@@ -17755,7 +17759,7 @@ var RenderButton = () => {
|
|
|
17755
17759
|
compositionId: video.id,
|
|
17756
17760
|
initialFrame: getCurrentFrame2(),
|
|
17757
17761
|
initialStillImageFormat: defaults.stillImageFormat,
|
|
17758
|
-
initialVideoImageFormat:
|
|
17762
|
+
initialVideoImageFormat: null,
|
|
17759
17763
|
initialJpegQuality: defaults.jpegQuality,
|
|
17760
17764
|
initialScale: window.remotion_renderDefaults?.scale ?? 1,
|
|
17761
17765
|
initialLogLevel: defaults.logLevel,
|
|
@@ -17766,7 +17770,7 @@ var RenderButton = () => {
|
|
|
17766
17770
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
17767
17771
|
initialProResProfile: defaults.proResProfile,
|
|
17768
17772
|
initialx264Preset: defaults.x264Preset,
|
|
17769
|
-
initialPixelFormat:
|
|
17773
|
+
initialPixelFormat: null,
|
|
17770
17774
|
initialAudioBitrate: defaults.audioBitrate,
|
|
17771
17775
|
initialVideoBitrate: defaults.videoBitrate,
|
|
17772
17776
|
initialEveryNthFrame: defaults.everyNthFrame,
|
|
@@ -17796,7 +17800,8 @@ var RenderButton = () => {
|
|
|
17796
17800
|
defaulMetadata: defaults.metadata,
|
|
17797
17801
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
17798
17802
|
initialChromeMode: defaults.chromeMode,
|
|
17799
|
-
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes
|
|
17803
|
+
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes,
|
|
17804
|
+
renderDefaults: defaults
|
|
17800
17805
|
});
|
|
17801
17806
|
}, [video, setSelectedModal, getCurrentFrame2, props, inFrame, outFrame]);
|
|
17802
17807
|
if (!video) {
|
|
@@ -18012,7 +18017,8 @@ var renderStillOnWeb = async ({
|
|
|
18012
18017
|
defaultCodec: null,
|
|
18013
18018
|
defaultOutName: null,
|
|
18014
18019
|
defaultVideoImageFormat: null,
|
|
18015
|
-
defaultPixelFormat: null
|
|
18020
|
+
defaultPixelFormat: null,
|
|
18021
|
+
defaultProResProfile: null
|
|
18016
18022
|
},
|
|
18017
18023
|
folders: [],
|
|
18018
18024
|
compositions: [
|
|
@@ -18060,7 +18066,8 @@ var renderStillOnWeb = async ({
|
|
|
18060
18066
|
defaultCodec: null,
|
|
18061
18067
|
defaultOutName: null,
|
|
18062
18068
|
defaultVideoImageFormat: null,
|
|
18063
|
-
defaultPixelFormat: null
|
|
18069
|
+
defaultPixelFormat: null,
|
|
18070
|
+
defaultProResProfile: null
|
|
18064
18071
|
},
|
|
18065
18072
|
audioLatencyHint: "interactive",
|
|
18066
18073
|
children: /* @__PURE__ */ jsx176(Internals44.CanUseRemotionHooks, {
|
|
@@ -40116,7 +40123,8 @@ var RenderModal = ({
|
|
|
40116
40123
|
renderTypeOfLastRender,
|
|
40117
40124
|
initialHardwareAcceleration,
|
|
40118
40125
|
defaultMetadata,
|
|
40119
|
-
initialChromeMode
|
|
40126
|
+
initialChromeMode,
|
|
40127
|
+
renderDefaults
|
|
40120
40128
|
}) => {
|
|
40121
40129
|
const { setSelectedModal } = useContext80(ModalsContext);
|
|
40122
40130
|
const context = useContext80(ResolvedCompositionContext);
|
|
@@ -40151,7 +40159,7 @@ var RenderModal = ({
|
|
|
40151
40159
|
const [unclampedFrame, setFrame] = useState79(() => initialFrame);
|
|
40152
40160
|
const [saving, setSaving] = useState79(false);
|
|
40153
40161
|
const [stillImageFormat, setStillImageFormat] = useState79(() => initialStillImageFormat);
|
|
40154
|
-
const [videoImageFormat, setVideoImageFormat] = useState79(() => initialVideoImageFormat);
|
|
40162
|
+
const [videoImageFormat, setVideoImageFormat] = useState79(() => initialVideoImageFormat ?? resolvedComposition.defaultVideoImageFormat ?? renderDefaults.videoImageFormat);
|
|
40155
40163
|
const [sequenceImageFormat, setSequenceImageFormat] = useState79(() => initialStillImageFormat === "jpeg" ? "jpeg" : "png");
|
|
40156
40164
|
const [concurrency, setConcurrency] = useState79(() => initialConcurrency);
|
|
40157
40165
|
const [videoCodecForVideoTab, setVideoCodecForVideoTab] = useState79(() => initialVideoCodecForVideoTab);
|
|
@@ -40204,10 +40212,10 @@ var RenderModal = ({
|
|
|
40204
40212
|
const [outName, setOutName] = useState79(() => initialOutName);
|
|
40205
40213
|
const [endFrameOrNull, setEndFrame] = useState79(() => outFrameMark ?? null);
|
|
40206
40214
|
const [startFrameOrNull, setStartFrame] = useState79(() => inFrameMark ?? null);
|
|
40207
|
-
const [proResProfileSetting, setProResProfile] = useState79(() => initialProResProfile);
|
|
40215
|
+
const [proResProfileSetting, setProResProfile] = useState79(() => initialProResProfile ?? resolvedComposition.defaultProResProfile ?? "hq");
|
|
40208
40216
|
const [x264PresetSetting, setx264Preset] = useState79(() => initialx264Preset);
|
|
40209
40217
|
const [hardwareAcceleration, setHardwareAcceleration] = useState79(() => initialHardwareAcceleration);
|
|
40210
|
-
const [userPreferredPixelFormat, setPixelFormat] = useState79(() => initialPixelFormat);
|
|
40218
|
+
const [userPreferredPixelFormat, setPixelFormat] = useState79(() => initialPixelFormat ?? resolvedComposition.defaultPixelFormat ?? renderDefaults.pixelFormat);
|
|
40211
40219
|
const [preferredQualityControlType, setQualityControl] = useState79(() => initialVideoBitrate === null ? "crf" : "bitrate");
|
|
40212
40220
|
const [
|
|
40213
40221
|
shouldHaveCustomTargetAudioBitrate,
|
|
@@ -41752,7 +41760,8 @@ var Modals = ({ readOnlyStudio }) => {
|
|
|
41752
41760
|
renderTypeOfLastRender: modalContextType.renderTypeOfLastRender,
|
|
41753
41761
|
defaultMetadata: modalContextType.defaulMetadata,
|
|
41754
41762
|
initialHardwareAcceleration: modalContextType.initialHardwareAcceleration,
|
|
41755
|
-
initialChromeMode: modalContextType.initialChromeMode
|
|
41763
|
+
initialChromeMode: modalContextType.initialChromeMode,
|
|
41764
|
+
renderDefaults: modalContextType.renderDefaults
|
|
41756
41765
|
}),
|
|
41757
41766
|
modalContextType && canRender && modalContextType.type === "render-progress" && /* @__PURE__ */ jsx262(RenderStatusModal, {
|
|
41758
41767
|
jobId: modalContextType.jobId
|
|
@@ -2576,7 +2576,7 @@ var SidebarRenderButton = ({ composition, visible }) => {
|
|
|
2576
2576
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
2577
2577
|
initialProResProfile: defaults.proResProfile,
|
|
2578
2578
|
initialx264Preset: defaults.x264Preset,
|
|
2579
|
-
initialPixelFormat:
|
|
2579
|
+
initialPixelFormat: null,
|
|
2580
2580
|
initialAudioBitrate: defaults.audioBitrate,
|
|
2581
2581
|
initialVideoBitrate: defaults.videoBitrate,
|
|
2582
2582
|
initialEveryNthFrame: defaults.everyNthFrame,
|
|
@@ -2606,7 +2606,8 @@ var SidebarRenderButton = ({ composition, visible }) => {
|
|
|
2606
2606
|
defaulMetadata: defaults.metadata,
|
|
2607
2607
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
2608
2608
|
initialChromeMode: defaults.chromeMode,
|
|
2609
|
-
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes
|
|
2609
|
+
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes,
|
|
2610
|
+
renderDefaults: defaults
|
|
2610
2611
|
});
|
|
2611
2612
|
if (isMobileLayout) {
|
|
2612
2613
|
setSidebarCollapsedState({ left: "collapsed", right: "collapsed" });
|
|
@@ -16237,7 +16238,7 @@ var makeRetryPayload = (job) => {
|
|
|
16237
16238
|
compositionId: job.compositionId,
|
|
16238
16239
|
initialFrame: job.frame,
|
|
16239
16240
|
initialStillImageFormat: job.imageFormat,
|
|
16240
|
-
initialVideoImageFormat:
|
|
16241
|
+
initialVideoImageFormat: null,
|
|
16241
16242
|
initialJpegQuality: job.jpegQuality ?? defaults.jpegQuality,
|
|
16242
16243
|
initialScale: job.scale,
|
|
16243
16244
|
initialLogLevel: job.logLevel,
|
|
@@ -16246,7 +16247,7 @@ var makeRetryPayload = (job) => {
|
|
|
16246
16247
|
minConcurrency: defaults.minConcurrency,
|
|
16247
16248
|
initialMuted: defaults.muted,
|
|
16248
16249
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
16249
|
-
initialProResProfile:
|
|
16250
|
+
initialProResProfile: null,
|
|
16250
16251
|
initialx264Preset: defaults.x264Preset,
|
|
16251
16252
|
initialPixelFormat: defaults.pixelFormat,
|
|
16252
16253
|
initialAudioBitrate: defaults.audioBitrate,
|
|
@@ -16278,7 +16279,8 @@ var makeRetryPayload = (job) => {
|
|
|
16278
16279
|
renderTypeOfLastRender: "still",
|
|
16279
16280
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
16280
16281
|
initialChromeMode: job.chromeMode,
|
|
16281
|
-
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes
|
|
16282
|
+
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
16283
|
+
renderDefaults: defaults
|
|
16282
16284
|
};
|
|
16283
16285
|
}
|
|
16284
16286
|
if (job.type === "sequence") {
|
|
@@ -16286,7 +16288,7 @@ var makeRetryPayload = (job) => {
|
|
|
16286
16288
|
type: "render",
|
|
16287
16289
|
initialFrame: 0,
|
|
16288
16290
|
compositionId: job.compositionId,
|
|
16289
|
-
initialVideoImageFormat:
|
|
16291
|
+
initialVideoImageFormat: null,
|
|
16290
16292
|
initialJpegQuality: job.jpegQuality ?? defaults.jpegQuality,
|
|
16291
16293
|
initialScale: job.scale,
|
|
16292
16294
|
initialLogLevel: job.logLevel,
|
|
@@ -16295,7 +16297,7 @@ var makeRetryPayload = (job) => {
|
|
|
16295
16297
|
minConcurrency: defaults.minConcurrency,
|
|
16296
16298
|
initialMuted: defaults.muted,
|
|
16297
16299
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
16298
|
-
initialProResProfile:
|
|
16300
|
+
initialProResProfile: null,
|
|
16299
16301
|
initialx264Preset: defaults.x264Preset,
|
|
16300
16302
|
initialPixelFormat: defaults.pixelFormat,
|
|
16301
16303
|
initialAudioBitrate: defaults.audioBitrate,
|
|
@@ -16328,7 +16330,8 @@ var makeRetryPayload = (job) => {
|
|
|
16328
16330
|
renderTypeOfLastRender: "sequence",
|
|
16329
16331
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
16330
16332
|
initialChromeMode: job.chromeMode,
|
|
16331
|
-
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes
|
|
16333
|
+
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
16334
|
+
renderDefaults: defaults
|
|
16332
16335
|
};
|
|
16333
16336
|
}
|
|
16334
16337
|
if (job.type === "video") {
|
|
@@ -16346,7 +16349,7 @@ var makeRetryPayload = (job) => {
|
|
|
16346
16349
|
minConcurrency: defaults.minConcurrency,
|
|
16347
16350
|
initialMuted: job.muted,
|
|
16348
16351
|
initialEnforceAudioTrack: job.enforceAudioTrack,
|
|
16349
|
-
initialProResProfile: job.proResProfile ??
|
|
16352
|
+
initialProResProfile: job.proResProfile ?? null,
|
|
16350
16353
|
initialx264Preset: job.x264Preset ?? defaults.x264Preset,
|
|
16351
16354
|
initialPixelFormat: job.pixelFormat,
|
|
16352
16355
|
initialAudioBitrate: job.audioBitrate,
|
|
@@ -16378,7 +16381,8 @@ var makeRetryPayload = (job) => {
|
|
|
16378
16381
|
renderTypeOfLastRender: "video",
|
|
16379
16382
|
initialHardwareAcceleration: job.hardwareAcceleration,
|
|
16380
16383
|
initialChromeMode: job.chromeMode,
|
|
16381
|
-
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes
|
|
16384
|
+
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
16385
|
+
renderDefaults: defaults
|
|
16382
16386
|
};
|
|
16383
16387
|
}
|
|
16384
16388
|
throw new Error(`Job ${JSON.stringify(job)} Not implemented`);
|
|
@@ -18035,7 +18039,7 @@ var RenderButton = () => {
|
|
|
18035
18039
|
compositionId: video.id,
|
|
18036
18040
|
initialFrame: getCurrentFrame2(),
|
|
18037
18041
|
initialStillImageFormat: defaults.stillImageFormat,
|
|
18038
|
-
initialVideoImageFormat:
|
|
18042
|
+
initialVideoImageFormat: null,
|
|
18039
18043
|
initialJpegQuality: defaults.jpegQuality,
|
|
18040
18044
|
initialScale: window.remotion_renderDefaults?.scale ?? 1,
|
|
18041
18045
|
initialLogLevel: defaults.logLevel,
|
|
@@ -18046,7 +18050,7 @@ var RenderButton = () => {
|
|
|
18046
18050
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
18047
18051
|
initialProResProfile: defaults.proResProfile,
|
|
18048
18052
|
initialx264Preset: defaults.x264Preset,
|
|
18049
|
-
initialPixelFormat:
|
|
18053
|
+
initialPixelFormat: null,
|
|
18050
18054
|
initialAudioBitrate: defaults.audioBitrate,
|
|
18051
18055
|
initialVideoBitrate: defaults.videoBitrate,
|
|
18052
18056
|
initialEveryNthFrame: defaults.everyNthFrame,
|
|
@@ -18076,7 +18080,8 @@ var RenderButton = () => {
|
|
|
18076
18080
|
defaulMetadata: defaults.metadata,
|
|
18077
18081
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
18078
18082
|
initialChromeMode: defaults.chromeMode,
|
|
18079
|
-
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes
|
|
18083
|
+
initialMediaCacheSizeInBytes: defaults.mediaCacheSizeInBytes,
|
|
18084
|
+
renderDefaults: defaults
|
|
18080
18085
|
});
|
|
18081
18086
|
}, [video, setSelectedModal, getCurrentFrame2, props, inFrame, outFrame]);
|
|
18082
18087
|
if (!video) {
|
|
@@ -18292,7 +18297,8 @@ var renderStillOnWeb = async ({
|
|
|
18292
18297
|
defaultCodec: null,
|
|
18293
18298
|
defaultOutName: null,
|
|
18294
18299
|
defaultVideoImageFormat: null,
|
|
18295
|
-
defaultPixelFormat: null
|
|
18300
|
+
defaultPixelFormat: null,
|
|
18301
|
+
defaultProResProfile: null
|
|
18296
18302
|
},
|
|
18297
18303
|
folders: [],
|
|
18298
18304
|
compositions: [
|
|
@@ -18340,7 +18346,8 @@ var renderStillOnWeb = async ({
|
|
|
18340
18346
|
defaultCodec: null,
|
|
18341
18347
|
defaultOutName: null,
|
|
18342
18348
|
defaultVideoImageFormat: null,
|
|
18343
|
-
defaultPixelFormat: null
|
|
18349
|
+
defaultPixelFormat: null,
|
|
18350
|
+
defaultProResProfile: null
|
|
18344
18351
|
},
|
|
18345
18352
|
audioLatencyHint: "interactive",
|
|
18346
18353
|
children: /* @__PURE__ */ jsx177(Internals44.CanUseRemotionHooks, {
|
|
@@ -40396,7 +40403,8 @@ var RenderModal = ({
|
|
|
40396
40403
|
renderTypeOfLastRender,
|
|
40397
40404
|
initialHardwareAcceleration,
|
|
40398
40405
|
defaultMetadata,
|
|
40399
|
-
initialChromeMode
|
|
40406
|
+
initialChromeMode,
|
|
40407
|
+
renderDefaults
|
|
40400
40408
|
}) => {
|
|
40401
40409
|
const { setSelectedModal } = useContext80(ModalsContext);
|
|
40402
40410
|
const context = useContext80(ResolvedCompositionContext);
|
|
@@ -40431,7 +40439,7 @@ var RenderModal = ({
|
|
|
40431
40439
|
const [unclampedFrame, setFrame] = useState80(() => initialFrame);
|
|
40432
40440
|
const [saving, setSaving] = useState80(false);
|
|
40433
40441
|
const [stillImageFormat, setStillImageFormat] = useState80(() => initialStillImageFormat);
|
|
40434
|
-
const [videoImageFormat, setVideoImageFormat] = useState80(() => initialVideoImageFormat);
|
|
40442
|
+
const [videoImageFormat, setVideoImageFormat] = useState80(() => initialVideoImageFormat ?? resolvedComposition.defaultVideoImageFormat ?? renderDefaults.videoImageFormat);
|
|
40435
40443
|
const [sequenceImageFormat, setSequenceImageFormat] = useState80(() => initialStillImageFormat === "jpeg" ? "jpeg" : "png");
|
|
40436
40444
|
const [concurrency, setConcurrency] = useState80(() => initialConcurrency);
|
|
40437
40445
|
const [videoCodecForVideoTab, setVideoCodecForVideoTab] = useState80(() => initialVideoCodecForVideoTab);
|
|
@@ -40484,10 +40492,10 @@ var RenderModal = ({
|
|
|
40484
40492
|
const [outName, setOutName] = useState80(() => initialOutName);
|
|
40485
40493
|
const [endFrameOrNull, setEndFrame] = useState80(() => outFrameMark ?? null);
|
|
40486
40494
|
const [startFrameOrNull, setStartFrame] = useState80(() => inFrameMark ?? null);
|
|
40487
|
-
const [proResProfileSetting, setProResProfile] = useState80(() => initialProResProfile);
|
|
40495
|
+
const [proResProfileSetting, setProResProfile] = useState80(() => initialProResProfile ?? resolvedComposition.defaultProResProfile ?? "hq");
|
|
40488
40496
|
const [x264PresetSetting, setx264Preset] = useState80(() => initialx264Preset);
|
|
40489
40497
|
const [hardwareAcceleration, setHardwareAcceleration] = useState80(() => initialHardwareAcceleration);
|
|
40490
|
-
const [userPreferredPixelFormat, setPixelFormat] = useState80(() => initialPixelFormat);
|
|
40498
|
+
const [userPreferredPixelFormat, setPixelFormat] = useState80(() => initialPixelFormat ?? resolvedComposition.defaultPixelFormat ?? renderDefaults.pixelFormat);
|
|
40491
40499
|
const [preferredQualityControlType, setQualityControl] = useState80(() => initialVideoBitrate === null ? "crf" : "bitrate");
|
|
40492
40500
|
const [
|
|
40493
40501
|
shouldHaveCustomTargetAudioBitrate,
|
|
@@ -42032,7 +42040,8 @@ var Modals = ({ readOnlyStudio }) => {
|
|
|
42032
42040
|
renderTypeOfLastRender: modalContextType.renderTypeOfLastRender,
|
|
42033
42041
|
defaultMetadata: modalContextType.defaulMetadata,
|
|
42034
42042
|
initialHardwareAcceleration: modalContextType.initialHardwareAcceleration,
|
|
42035
|
-
initialChromeMode: modalContextType.initialChromeMode
|
|
42043
|
+
initialChromeMode: modalContextType.initialChromeMode,
|
|
42044
|
+
renderDefaults: modalContextType.renderDefaults
|
|
42036
42045
|
}),
|
|
42037
42046
|
modalContextType && canRender && modalContextType.type === "render-progress" && /* @__PURE__ */ jsx263(RenderStatusModal, {
|
|
42038
42047
|
jobId: modalContextType.jobId
|
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -158,7 +158,8 @@ var renderContent = (Root) => {
|
|
|
158
158
|
defaultCodec: bundleMode.compositionDefaultCodec,
|
|
159
159
|
defaultOutName: bundleMode.compositionDefaultOutName,
|
|
160
160
|
defaultVideoImageFormat: bundleMode.compositionDefaultVideoImageFormat,
|
|
161
|
-
defaultPixelFormat: bundleMode.compositionDefaultPixelFormat
|
|
161
|
+
defaultPixelFormat: bundleMode.compositionDefaultPixelFormat,
|
|
162
|
+
defaultProResProfile: bundleMode.compositionDefaultProResProfile
|
|
162
163
|
},
|
|
163
164
|
children: [
|
|
164
165
|
/* @__PURE__ */ jsx(Root, {}),
|
|
@@ -189,7 +190,7 @@ var renderContent = (Root) => {
|
|
|
189
190
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
190
191
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
191
192
|
}));
|
|
192
|
-
import("./chunk-
|
|
193
|
+
import("./chunk-ycr2rhjx.js").then(({ StudioInternals }) => {
|
|
193
194
|
window.remotion_isStudio = true;
|
|
194
195
|
window.remotion_isReadOnlyStudio = true;
|
|
195
196
|
Internals.enableSequenceStackTraces();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const labelProResProfile: (profile: ProResProfile) => "4444" | "4444 XQ (Best)" | "HQ" | "Proxy (Worst)" | "Light" | "Standard";
|
|
1
|
+
import type { _InternalTypes } from 'remotion';
|
|
2
|
+
export declare const labelProResProfile: (profile: _InternalTypes["ProResProfile"]) => "4444" | "4444 XQ (Best)" | "HQ" | "Proxy (Worst)" | "Light" | "Standard";
|
|
@@ -14,7 +14,7 @@ const makeRetryPayload = (job) => {
|
|
|
14
14
|
compositionId: job.compositionId,
|
|
15
15
|
initialFrame: job.frame,
|
|
16
16
|
initialStillImageFormat: job.imageFormat,
|
|
17
|
-
initialVideoImageFormat:
|
|
17
|
+
initialVideoImageFormat: null,
|
|
18
18
|
initialJpegQuality: (_a = job.jpegQuality) !== null && _a !== void 0 ? _a : defaults.jpegQuality,
|
|
19
19
|
initialScale: job.scale,
|
|
20
20
|
initialLogLevel: job.logLevel,
|
|
@@ -23,7 +23,7 @@ const makeRetryPayload = (job) => {
|
|
|
23
23
|
minConcurrency: defaults.minConcurrency,
|
|
24
24
|
initialMuted: defaults.muted,
|
|
25
25
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
26
|
-
initialProResProfile:
|
|
26
|
+
initialProResProfile: null,
|
|
27
27
|
initialx264Preset: defaults.x264Preset,
|
|
28
28
|
initialPixelFormat: defaults.pixelFormat,
|
|
29
29
|
initialAudioBitrate: defaults.audioBitrate,
|
|
@@ -56,6 +56,7 @@ const makeRetryPayload = (job) => {
|
|
|
56
56
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
57
57
|
initialChromeMode: job.chromeMode,
|
|
58
58
|
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
59
|
+
renderDefaults: defaults,
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
if (job.type === 'sequence') {
|
|
@@ -63,7 +64,7 @@ const makeRetryPayload = (job) => {
|
|
|
63
64
|
type: 'render',
|
|
64
65
|
initialFrame: 0,
|
|
65
66
|
compositionId: job.compositionId,
|
|
66
|
-
initialVideoImageFormat:
|
|
67
|
+
initialVideoImageFormat: null,
|
|
67
68
|
initialJpegQuality: (_b = job.jpegQuality) !== null && _b !== void 0 ? _b : defaults.jpegQuality,
|
|
68
69
|
initialScale: job.scale,
|
|
69
70
|
initialLogLevel: job.logLevel,
|
|
@@ -72,7 +73,7 @@ const makeRetryPayload = (job) => {
|
|
|
72
73
|
minConcurrency: defaults.minConcurrency,
|
|
73
74
|
initialMuted: defaults.muted,
|
|
74
75
|
initialEnforceAudioTrack: defaults.enforceAudioTrack,
|
|
75
|
-
initialProResProfile:
|
|
76
|
+
initialProResProfile: null,
|
|
76
77
|
initialx264Preset: defaults.x264Preset,
|
|
77
78
|
initialPixelFormat: defaults.pixelFormat,
|
|
78
79
|
initialAudioBitrate: defaults.audioBitrate,
|
|
@@ -106,6 +107,7 @@ const makeRetryPayload = (job) => {
|
|
|
106
107
|
initialHardwareAcceleration: defaults.hardwareAcceleration,
|
|
107
108
|
initialChromeMode: job.chromeMode,
|
|
108
109
|
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
110
|
+
renderDefaults: defaults,
|
|
109
111
|
};
|
|
110
112
|
}
|
|
111
113
|
if (job.type === 'video') {
|
|
@@ -123,7 +125,7 @@ const makeRetryPayload = (job) => {
|
|
|
123
125
|
minConcurrency: defaults.minConcurrency,
|
|
124
126
|
initialMuted: job.muted,
|
|
125
127
|
initialEnforceAudioTrack: job.enforceAudioTrack,
|
|
126
|
-
initialProResProfile: (_d = job.proResProfile) !== null && _d !== void 0 ? _d :
|
|
128
|
+
initialProResProfile: (_d = job.proResProfile) !== null && _d !== void 0 ? _d : null,
|
|
127
129
|
initialx264Preset: (_e = job.x264Preset) !== null && _e !== void 0 ? _e : defaults.x264Preset,
|
|
128
130
|
initialPixelFormat: job.pixelFormat,
|
|
129
131
|
initialAudioBitrate: job.audioBitrate,
|
|
@@ -156,6 +158,7 @@ const makeRetryPayload = (job) => {
|
|
|
156
158
|
initialHardwareAcceleration: job.hardwareAcceleration,
|
|
157
159
|
initialChromeMode: job.chromeMode,
|
|
158
160
|
initialMediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
161
|
+
renderDefaults: defaults,
|
|
159
162
|
};
|
|
160
163
|
}
|
|
161
164
|
throw new Error(`Job ${JSON.stringify(job)} Not implemented`);
|
package/dist/renderEntry.js
CHANGED
|
@@ -184,6 +184,7 @@ const renderContent = (Root) => {
|
|
|
184
184
|
defaultOutName: bundleMode.compositionDefaultOutName,
|
|
185
185
|
defaultVideoImageFormat: bundleMode.compositionDefaultVideoImageFormat,
|
|
186
186
|
defaultPixelFormat: bundleMode.compositionDefaultPixelFormat,
|
|
187
|
+
defaultProResProfile: bundleMode.compositionDefaultProResProfile,
|
|
187
188
|
}, children: [(0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsx)(GetVideoComposition, { state: bundleMode })] }));
|
|
188
189
|
renderToDOM(markup);
|
|
189
190
|
}
|
package/dist/state/modals.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { AudioCodec, ChromeMode, Codec, ColorSpace, LogLevel, OpenGlRenderer, PixelFormat,
|
|
1
|
+
import type { AudioCodec, ChromeMode, Codec, ColorSpace, LogLevel, OpenGlRenderer, PixelFormat, StillImageFormat, VideoImageFormat, X264Preset } from '@remotion/renderer';
|
|
2
2
|
import type { HardwareAccelerationOption } from '@remotion/renderer/client';
|
|
3
|
-
import type { PackageManager } from '@remotion/studio-shared';
|
|
3
|
+
import type { PackageManager, RenderDefaults } from '@remotion/studio-shared';
|
|
4
4
|
import type React from 'react';
|
|
5
|
+
import type { _InternalTypes } from 'remotion';
|
|
5
6
|
import type { CompType } from '../components/NewComposition/DuplicateComposition';
|
|
6
7
|
import type { QuickSwitcherMode } from '../components/QuickSwitcher/NoResults';
|
|
7
8
|
import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
|
|
@@ -11,16 +12,16 @@ export type RenderModalState = {
|
|
|
11
12
|
compositionId: string;
|
|
12
13
|
initialFrame: number;
|
|
13
14
|
initialStillImageFormat: StillImageFormat;
|
|
14
|
-
initialVideoImageFormat: VideoImageFormat;
|
|
15
|
+
initialVideoImageFormat: VideoImageFormat | null;
|
|
15
16
|
initialJpegQuality: number;
|
|
16
17
|
initialScale: number;
|
|
17
18
|
initialLogLevel: LogLevel;
|
|
18
19
|
initialConcurrency: number;
|
|
19
20
|
initialMuted: boolean;
|
|
20
21
|
initialEnforceAudioTrack: boolean;
|
|
21
|
-
initialProResProfile: ProResProfile;
|
|
22
|
+
initialProResProfile: _InternalTypes['ProResProfile'] | null;
|
|
22
23
|
initialx264Preset: X264Preset;
|
|
23
|
-
initialPixelFormat: PixelFormat;
|
|
24
|
+
initialPixelFormat: PixelFormat | null;
|
|
24
25
|
initialVideoBitrate: string | null;
|
|
25
26
|
initialAudioBitrate: string | null;
|
|
26
27
|
initialEveryNthFrame: number;
|
|
@@ -53,6 +54,7 @@ export type RenderModalState = {
|
|
|
53
54
|
defaultConfigurationAudioCodec: AudioCodec | null;
|
|
54
55
|
renderTypeOfLastRender: RenderType | null;
|
|
55
56
|
defaulMetadata: Record<string, string> | null;
|
|
57
|
+
renderDefaults: RenderDefaults;
|
|
56
58
|
};
|
|
57
59
|
export type ModalState = {
|
|
58
60
|
type: 'duplicate-comp';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/studio",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.367",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"semver": "7.5.3",
|
|
28
|
-
"remotion": "4.0.
|
|
29
|
-
"@remotion/player": "4.0.
|
|
30
|
-
"@remotion/media-utils": "4.0.
|
|
31
|
-
"@remotion/renderer": "4.0.
|
|
32
|
-
"@remotion/web-renderer": "4.0.
|
|
33
|
-
"@remotion/studio-shared": "4.0.
|
|
34
|
-
"@remotion/zod-types": "4.0.
|
|
28
|
+
"remotion": "4.0.367",
|
|
29
|
+
"@remotion/player": "4.0.367",
|
|
30
|
+
"@remotion/media-utils": "4.0.367",
|
|
31
|
+
"@remotion/renderer": "4.0.367",
|
|
32
|
+
"@remotion/web-renderer": "4.0.367",
|
|
33
|
+
"@remotion/studio-shared": "4.0.367",
|
|
34
|
+
"@remotion/zod-types": "4.0.367",
|
|
35
35
|
"mediabunny": "1.24.2",
|
|
36
36
|
"memfs": "3.4.3",
|
|
37
37
|
"source-map": "0.7.3",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react": "19.0.0",
|
|
43
43
|
"react-dom": "19.0.0",
|
|
44
44
|
"@types/semver": "^7.3.4",
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.367",
|
|
46
46
|
"eslint": "9.19.0"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|