Skip to content

🎥 Make videos programmatically with React

Gate experimental tracks and refine timeline clip styling

Jonny Burger6f38dd19445a
diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.ts
index 6bf9c61e8c..652bec2d7b 100644
--- a/packages/cli/src/config/index.ts
+++ b/packages/cli/src/config/index.ts
@@ -146,6 +146,7 @@ const {
canvasTabsOption,
forceNewStudioOption,
experimentalKeepAudioContextAliveOption,
+ experimentalTracksOption,
numberOfSharedAudioTagsOption,
ipv4Option,
pixelFormatOption,
@@ -646,6 +647,11 @@ type FlatConfig = RemotionConfigObject &
* Omitted actions use their default shortcut. Set an action to null to disable it.
*/
setKeyboardShortcuts: (shortcuts: StudioKeyboardShortcuts) => void;
+ /**
+ * Enable experimental timeline tracks in the Remotion Studio.
+ * @default false
+ */
+ setExperimentalTracksEnabled: (enabled: boolean) => void;
/**
* Set the audio codec to use for the output video.
* See the Encoding guide in the docs for defaults and available options.
@@ -791,6 +797,7 @@ export const Config: FlatConfig = {
setKeyboardShortcuts,
setInteractivityEnabled: interactivityOption.setConfig,
setCanvasTabsEnabled: canvasTabsOption.setConfig,
+ setExperimentalTracksEnabled: experimentalTracksOption.setConfig,
setAllowHtmlInCanvasEnabled: allowHtmlInCanvasOption.setConfig,
setRspack: rspackOption.setConfig,
setExperimentalRspackEnabled: rspackOption.setConfig,
diff --git a/packages/cli/src/parsed-cli.ts b/packages/cli/src/parsed-cli.ts
index 2aef725891..029ddc57ad 100644
--- a/packages/cli/src/parsed-cli.ts
+++ b/packages/cli/src/parsed-cli.ts
@@ -36,6 +36,7 @@ const {
publicLicenseKeyOption,
forceNewStudioOption,
experimentalKeepAudioContextAliveOption,
+ experimentalTracksOption,
numberOfSharedAudioTagsOption,
ipv4Option,
pixelFormatOption,
@@ -120,6 +121,9 @@ export type CommandLineOptions = {
[experimentalKeepAudioContextAliveOption.cliFlag]: TypeOfOption<
typeof experimentalKeepAudioContextAliveOption
> | null;
+ [experimentalTracksOption.cliFlag]: TypeOfOption<
+ typeof experimentalTracksOption
+ > | null;
[offthreadVideoCacheSizeInBytesOption.cliFlag]: TypeOfOption<
typeof offthreadVideoCacheSizeInBytesOption
>;
@@ -244,6 +248,7 @@ export const BooleanFlags = [
isProductionOption.cliFlag,
forceNewStudioOption.cliFlag,
experimentalKeepAudioContextAliveOption.cliFlag,
+ experimentalTracksOption.cliFlag,
bundleCacheOption.cliFlag,
rspackOption.cliFlag,
skipSkillsOption.cliFlag,
@@ -270,6 +275,7 @@ export const parsedCli = minimist<CommandLineOptions>(process.argv.slice(2), {
[isProductionOption.cliFlag]: null,
[forceNewStudioOption.cliFlag]: null,
[experimentalKeepAudioContextAliveOption.cliFlag]: null,
+ [experimentalTracksOption.cliFlag]: null,
[mutedOption.cliFlag]: null,
[enableCancellationOption.cliFlag]: null,
[rspackOption.cliFlag]: null,
diff --git a/packages/cli/src/print-help.ts b/packages/cli/src/print-help.ts
index e5a66cfac4..83b54c3d18 100644
--- a/packages/cli/src/print-help.ts
+++ b/packages/cli/src/print-help.ts
@@ -81,6 +81,7 @@ const studioOptions = options(
'disable-keyboard-shortcuts',
'disable-canvas-tabs',
'disable-interactivity',
+ 'experimental-tracks',
'allow-html-in-canvas',
'editor',
'coding-agent',
diff --git a/packages/cli/src/studio.ts b/packages/cli/src/studio.ts
index 53e2aa26e4..6a3c04431e 100644
--- a/packages/cli/src/studio.ts
+++ b/packages/cli/src/studio.ts
@@ -45,6 +45,7 @@ const {
canvasTabsOption,
forceNewStudioOption,
experimentalKeepAudioContextAliveOption,
+ experimentalTracksOption,
numberOfSharedAudioTagsOption,
audioLatencyHintOption,
ipv4Option,
@@ -170,6 +171,9 @@ export const studioCommand = async (
commandLine: parsedCli,
}).value,
elementLibraries: ConfigInternals.getElementLibraries(),
+ experimentalTracksEnabled: experimentalTracksOption.getValue({
+ commandLine: parsedCli,
+ }).value,
interactivityEnabled: interactivityOption.getValue({
commandLine: parsedCli,
}).value,
@@ -195,6 +199,7 @@ export const studioCommand = async (
beepOnFinish: beepOnFinishOption.getConfigValue(),
enableCrossSiteIsolation:
enableCrossSiteIsolationOption.getConfigValue(),
+ experimentalTracksEnabled: experimentalTracksOption.getConfigValue(),
interactivityEnabled: interactivityOption.getConfigValue(),
keyboardShortcutsEnabled: keyboardShortcutsOption.getConfigValue(),
logLevel: logLevelOption.getConfigValue(),
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index 4834960b14..a0c2d79570 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -898,16 +898,18 @@ const RegularSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
)}
</SequenceContext.Provider>
);
- const sequence =
- timelineTrack === null ||
- timelineTrackRole === 'container' ||
- timelineTrackRole === 'track' ? (
- sequenceContent
- ) : (
- <TimelineTrackContext.Provider value={null}>
- {sequenceContent}
- </TimelineTrackContext.Provider>
- );
+ // Keep the provider mounted when track grouping changes so clip state survives.
+ const sequence = (
+ <TimelineTrackContext.Provider
+ value={
+ timelineTrackRole === 'container' || timelineTrackRole === 'track'
+ ? timelineTrack
+ : null
+ }
+ >
+ {sequenceContent}
+ </TimelineTrackContext.Provider>
+ );
return shouldDiscoverOutline ? (
<SequenceOrderMarker
diff --git a/packages/core/src/Track.tsx b/packages/core/src/Track.tsx
index 4c8a8212e4..27d6a7e292 100644
--- a/packages/core/src/Track.tsx
+++ b/packages/core/src/Track.tsx
@@ -1,8 +1,11 @@
-import React, {useMemo, useState} from 'react';
+import React, {useContext, useMemo, useState} from 'react';
import {addSequenceStackTraces} from './enable-sequence-stack-traces.js';
import {sequenceSchema} from './interactivity-schema.js';
import {SequenceWithoutSchema, type SequenceProps} from './Sequence.js';
-import {TimelineTrackContext} from './timeline-track-context.js';
+import {
+ ExperimentalTracksEnabledContext,
+ TimelineTrackContext,
+} from './timeline-track-context.js';
import {withInteractivitySchema} from './with-interactivity-schema.js';
export type TrackProps = Pick<
@@ -29,7 +32,11 @@ export const TrackWithoutSchema: React.FC<SequenceProps> = ({
...props
}) => {
const [id] = useState(() => String(Math.random()));
- const value = useMemo(() => ({id, name}), [id, name]);
+ const tracksEnabled = useContext(ExperimentalTracksEnabledContext);
+ const value = useMemo(
+ () => (tracksEnabled ? {id, name} : null),
+ [id, name, tracksEnabled],
+ );
return (
<TimelineTrackContext.Provider value={value}>
diff --git a/packages/core/src/internals.ts b/packages/core/src/internals.ts
index 795d69758b..6abd25f45e 100644
--- a/packages/core/src/internals.ts
+++ b/packages/core/src/internals.ts
@@ -223,7 +223,10 @@ import {
useTimelineContext,
useTimelineSetFrameWithoutSeek,
} from './timeline-position-state.js';
-import {TimelineTrackContext} from './timeline-track-context.js';
+import {
+ ExperimentalTracksEnabledContext,
+ TimelineTrackContext,
+} from './timeline-track-context.js';
import {
AbsoluteTimeContext,
PlaybackRateContext,
@@ -398,6 +401,7 @@ export const Internals = {
truthy,
SequenceContext,
TimelineTrackContext,
+ ExperimentalTracksEnabledContext,
TrackWithoutSchema,
PremountContext,
usePremounting,
diff --git a/packages/core/src/timeline-track-context.ts b/packages/core/src/timeline-track-context.ts
index 04d73dd4c6..1011a1f52f 100644
--- a/packages/core/src/timeline-track-context.ts
+++ b/packages/core/src/timeline-track-context.ts
@@ -10,3 +10,5 @@ export type TimelineTrackItem = TimelineTrack & {
};
export const TimelineTrackContext = createContext<TimelineTrack | null>(null);
+
+export const ExperimentalTracksEnabledContext = createContext(false);
diff --git a/packages/core/src/wrap-remotion-context.tsx b/packages/core/src/wrap-remotion-context.tsx
index ad3f1526f8..c7ae11f95f 100644
--- a/packages/core/src/wrap-remotion-context.tsx
+++ b/packages/core/src/wrap-remotion-context.tsx
@@ -16,6 +16,10 @@ import {
SequenceManagerRefContext,
VisualModePropStatusesRefContext,
} from './SequenceManager.js';
+import {
+ ExperimentalTracksEnabledContext,
+ TimelineTrackContext,
+} from './timeline-track-context.js';
import {SetTimelineContext, TimelineContext} from './TimelineContext.js';
export function useRemotionContexts() {
@@ -23,6 +27,10 @@ export function useRemotionContexts() {
const timelineContext = React.useContext(TimelineContext);
const setTimelineContext = React.useContext(SetTimelineContext);
const sequenceContext = React.useContext(SequenceContext);
+ const experimentalTracksEnabled = React.useContext(
+ ExperimentalTracksEnabledContext,
+ );
+ const timelineTrackContext = React.useContext(TimelineTrackContext);
const canUseRemotionHooksContext = React.useContext(CanUseRemotionHooks);
const preloadContext = React.useContext(PreloadContext);
const resolveCompositionContext = React.useContext(ResolveCompositionContext);
@@ -41,6 +49,8 @@ export function useRemotionContexts() {
timelineContext,
setTimelineContext,
sequenceContext,
+ experimentalTracksEnabled,
+ timelineTrackContext,
canUseRemotionHooksContext,
preloadContext,
resolveCompositionContext,
@@ -54,6 +64,8 @@ export function useRemotionContexts() {
[
compositionManagerCtx,
sequenceContext,
+ experimentalTracksEnabled,
+ timelineTrackContext,
setTimelineContext,
timelineContext,
canUseRemotionHooksContext,
@@ -108,7 +120,15 @@ export const RemotionContextProvider = (
<BufferingContextReact.Provider
value={contexts.bufferManagerContext}
>
- {children}
+ <ExperimentalTracksEnabledContext.Provider
+ value={contexts.experimentalTracksEnabled}
+ >
+ <TimelineTrackContext.Provider
+ value={contexts.timelineTrackContext}
+ >
+ {children}
+ </TimelineTrackContext.Provider>
+ </ExperimentalTracksEnabledContext.Provider>
</BufferingContextReact.Provider>
</SequenceContext.Provider>
</SetTimelineContext.Provider>
diff --git a/packages/docs/docs/cli/studio.mdx b/packages/docs/docs/cli/studio.mdx
index 166dc27195..83a76174a6 100644
--- a/packages/docs/docs/cli/studio.mdx
+++ b/packages/docs/docs/cli/studio.mdx
@@ -61,6 +61,10 @@ Inline JSON string isn't supported on Windows shells because it removes the `"`
<Options id="disable-interactivity" />
+### `--experimental-tracks`<AvailableFrom v="4.0.534" />
+
+<Options id="experimental-tracks" />
+
### `--allow-html-in-canvas`<AvailableFrom v="4.0.447" />
<Options id="allow-html-in-canvas" />
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index 40be139a35..04069fff8c 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -278,6 +278,20 @@ Config.setCanvasTabsEnabled(false);
The [`--disable-canvas-tabs`](/docs/options/disable-canvas-tabs) flag takes precedence over this option.
+## `setExperimentalTracksEnabled()`<AvailableFrom v="4.0.534" />
+
+<Options id="experimental-tracks" />
+
+```ts twoslash title="remotion.config.ts"
+import {Config} from '@remotion/cli/config';
+// ---cut---
+Config.setExperimentalTracksEnabled(true);
+```
+
+Changes apply immediately in the Studio without reloading the page.
+
+The [`--experimental-tracks`](/docs/options/experimental-tracks) flag takes precedence over this option.
+
## `setDefaultEditor()`<AvailableFrom v="4.0.503" />
<Options id="editor" />
diff --git a/packages/docs/docs/options/buffer-size.mdx b/packages/docs/docs/options/buffer-size.mdx
index 55be39e5d9..e886e56478 100644
--- a/packages/docs/docs/options/buffer-size.mdx
+++ b/packages/docs/docs/options/buffer-size.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-buffer-size.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "FFmpeg -bufsize flag"
-sidebar_position: 41
+sidebar_position: 42
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/encoding-buffer-size.tsx
---
diff --git a/packages/docs/docs/options/bundle-cache.mdx b/packages/docs/docs/options/bundle-cache.mdx
index 909edb7dd1..3c418bce31 100644
--- a/packages/docs/docs/options/bundle-cache.mdx
+++ b/packages/docs/docs/options/bundle-cache.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-bundle-cache.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Webpack Bundle Caching"
-sidebar_position: 95
+sidebar_position: 96
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/bundle-cache.tsx
---
diff --git a/packages/docs/docs/options/delete-after.mdx b/packages/docs/docs/options/delete-after.mdx
index f1c884e275..e569e12610 100644
--- a/packages/docs/docs/options/delete-after.mdx
+++ b/packages/docs/docs/options/delete-after.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-delete-after.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Lambda render expiration"
-sidebar_position: 57
+sidebar_position: 58
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/delete-after.tsx
---
diff --git a/packages/docs/docs/options/duration.mdx b/packages/docs/docs/options/duration.mdx
index 18269029bf..5f7650d790 100644
--- a/packages/docs/docs/options/duration.mdx
+++ b/packages/docs/docs/options/duration.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-duration.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Override Duration"
-sidebar_position: 69
+sidebar_position: 70
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/override-duration.tsx
---
diff --git a/packages/docs/docs/options/enable-folder-expiry.mdx b/packages/docs/docs/options/enable-folder-expiry.mdx
index d73165e4dc..cdfc7adf8f 100644
--- a/packages/docs/docs/options/enable-folder-expiry.mdx
+++ b/packages/docs/docs/options/enable-folder-expiry.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-enable-folder-expiry.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Lambda render expiration"
-sidebar_position: 58
+sidebar_position: 59
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/folder-expiry.tsx
---
diff --git a/packages/docs/docs/options/enable-lambda-insights.mdx b/packages/docs/docs/options/enable-lambda-insights.mdx
index a8597857e3..c5f0de4075 100644
--- a/packages/docs/docs/options/enable-lambda-insights.mdx
+++ b/packages/docs/docs/options/enable-lambda-insights.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-enable-lambda-insights.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Enable Lambda Insights"
-sidebar_position: 36
+sidebar_position: 37
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/enable-lambda-insights.tsx
---
diff --git a/packages/docs/docs/options/enable-multiprocess-on-linux.mdx b/packages/docs/docs/options/enable-multiprocess-on-linux.mdx
index 3a307a53fe..99ba46c1e1 100644
--- a/packages/docs/docs/options/enable-multiprocess-on-linux.mdx
+++ b/packages/docs/docs/options/enable-multiprocess-on-linux.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-enable-multiprocess-on-linux.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Enable Multiprocess on Linux"
-sidebar_position: 37
+sidebar_position: 38
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/enable-multiprocess-on-linux.tsx
---
diff --git a/packages/docs/docs/options/enforce-audio-track.mdx b/packages/docs/docs/options/enforce-audio-track.mdx
index 0a919fe92b..ddf7470fa5 100644
--- a/packages/docs/docs/options/enforce-audio-track.mdx
+++ b/packages/docs/docs/options/enforce-audio-track.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-enforce-audio-track.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Enforce Audio Track"
-sidebar_position: 38
+sidebar_position: 39
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/enforce-audio.tsx
---
diff --git a/packages/docs/docs/options/env-file.mdx b/packages/docs/docs/options/env-file.mdx
index bdb72392cb..9844b3a9f2 100644
--- a/packages/docs/docs/options/env-file.mdx
+++ b/packages/docs/docs/options/env-file.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-env-file.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Env File"
-sidebar_position: 39
+sidebar_position: 40
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/env-file.tsx
---
diff --git a/packages/docs/docs/options/every-nth-frame.mdx b/packages/docs/docs/options/every-nth-frame.mdx
index a4ac85ae6e..47908b6216 100644
--- a/packages/docs/docs/options/every-nth-frame.mdx
+++ b/packages/docs/docs/options/every-nth-frame.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-every-nth-frame.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Every nth frame"
-sidebar_position: 40
+sidebar_position: 41
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/every-nth-frame.tsx
---
diff --git a/packages/docs/docs/options/experimental-keep-audio-context-alive.mdx b/packages/docs/docs/options/experimental-keep-audio-context-alive.mdx
index fa7f293c7c..0abf2ba35f 100644
--- a/packages/docs/docs/options/experimental-keep-audio-context-alive.mdx
+++ b/packages/docs/docs/options/experimental-keep-audio-context-alive.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-experimental-keep-audio-context-alive.pn
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Keep AudioContext alive (experimental)"
-sidebar_position: 56
+sidebar_position: 57
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/experimental-keep-audio-context-alive.tsx
---
diff --git a/packages/docs/docs/options/experimental-tracks.mdx b/packages/docs/docs/options/experimental-tracks.mdx
new file mode 100644
index 0000000000..b648ac88af
--- /dev/null
+++ b/packages/docs/docs/options/experimental-tracks.mdx
@@ -0,0 +1,33 @@
+---
+image: /generated/articles-docs-options-experimental-tracks.png
+# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
+# Regenerate: cd packages/docs && bun run generate-option-docs
+title: "Enable experimental timeline tracks"
+sidebar_position: 36
+crumb: Options
+custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/experimental-tracks.tsx
+---
+
+Enable experimental timeline tracks in the Remotion Studio. Group clips from `<Track>`, `<Series>` and `<TransitionSeries>` on shared rows, with overlays on additional rows. Disabled by default.
+
+## CLI flag
+
+```text
+--experimental-tracks
+```
+
+The following CLI commands accept this option:
+
+- [`remotion studio`](/docs/cli/studio)
+
+## Config file
+
+```ts twoslash title="remotion.config.ts"
+import {Config} from '@remotion/cli/config';
+// ---cut---
+Config.setExperimentalTracksEnabled(true);
+```
+
+## See also
+
+- [All options](/docs/options)
diff --git a/packages/docs/docs/options/for-seamless-aac-concatenation.mdx b/packages/docs/docs/options/for-seamless-aac-concatenation.mdx
index 09d732a1eb..af46eed7d6 100644
--- a/packages/docs/docs/options/for-seamless-aac-concatenation.mdx
+++ b/packages/docs/docs/options/for-seamless-aac-concatenation.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-for-seamless-aac-concatenation.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "For seamless AAC concatenation"
-sidebar_position: 43
+sidebar_position: 44
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/for-seamless-aac-concatenation.tsx
---
diff --git a/packages/docs/docs/options/force-new.mdx b/packages/docs/docs/options/force-new.mdx
index 32ee513db5..c2a0891680 100644
--- a/packages/docs/docs/options/force-new.mdx
+++ b/packages/docs/docs/options/force-new.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-force-new.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Force New Studio"
-sidebar_position: 44
+sidebar_position: 45
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/force-new-studio.tsx
---
diff --git a/packages/docs/docs/options/fps.mdx b/packages/docs/docs/options/fps.mdx
index 789a57c9f5..82287e0839 100644
--- a/packages/docs/docs/options/fps.mdx
+++ b/packages/docs/docs/options/fps.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-fps.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Override FPS"
-sidebar_position: 70
+sidebar_position: 71
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/override-fps.tsx
---
diff --git a/packages/docs/docs/options/frame.mdx b/packages/docs/docs/options/frame.mdx
index 12e1172d9d..a2f1241eef 100644
--- a/packages/docs/docs/options/frame.mdx
+++ b/packages/docs/docs/options/frame.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-frame.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Frame"
-sidebar_position: 45
+sidebar_position: 46
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/still-frame.tsx
---
diff --git a/packages/docs/docs/options/frames.mdx b/packages/docs/docs/options/frames.mdx
index c277464175..81f2c8cf36 100644
--- a/packages/docs/docs/options/frames.mdx
+++ b/packages/docs/docs/options/frames.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-frames.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Frame Range"
-sidebar_position: 46
+sidebar_position: 47
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/frames.tsx
---
diff --git a/packages/docs/docs/options/gl.mdx b/packages/docs/docs/options/gl.mdx
index 2f2f1d6210..dd1469ccb7 100644
--- a/packages/docs/docs/options/gl.mdx
+++ b/packages/docs/docs/options/gl.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-gl.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "OpenGL renderer"
-sidebar_position: 67
+sidebar_position: 68
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/gl.tsx
---
diff --git a/packages/docs/docs/options/gop.mdx b/packages/docs/docs/options/gop.mdx
index 61b35a1f75..4e2a346489 100644
--- a/packages/docs/docs/options/gop.mdx
+++ b/packages/docs/docs/options/gop.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-gop.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "GOP size"
-sidebar_position: 47
+sidebar_position: 48
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/gop-size.tsx
---
diff --git a/packages/docs/docs/options/hardware-acceleration.mdx b/packages/docs/docs/options/hardware-acceleration.mdx
index cd7bdc0af3..c7582afce7 100644
--- a/packages/docs/docs/options/hardware-acceleration.mdx
+++ b/packages/docs/docs/options/hardware-acceleration.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-hardware-acceleration.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Hardware Acceleration"
-sidebar_position: 48
+sidebar_position: 49
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/hardware-acceleration.tsx
---
diff --git a/packages/docs/docs/options/height.mdx b/packages/docs/docs/options/height.mdx
index fac69b73ab..4827a2907f 100644
--- a/packages/docs/docs/options/height.mdx
+++ b/packages/docs/docs/options/height.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-height.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Override Height"
-sidebar_position: 71
+sidebar_position: 72
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/override-height.tsx
---
diff --git a/packages/docs/docs/options/ignore-certificate-errors.mdx b/packages/docs/docs/options/ignore-certificate-errors.mdx
index e7d291de83..23ed458767 100644
--- a/packages/docs/docs/options/ignore-certificate-errors.mdx
+++ b/packages/docs/docs/options/ignore-certificate-errors.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-ignore-certificate-errors.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Ignore certificate errors"
-sidebar_position: 49
+sidebar_position: 50
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/ignore-certificate-errors.tsx
---
diff --git a/packages/docs/docs/options/image-sequence-pattern.mdx b/packages/docs/docs/options/image-sequence-pattern.mdx
index 84f6533975..3253c28eca 100644
--- a/packages/docs/docs/options/image-sequence-pattern.mdx
+++ b/packages/docs/docs/options/image-sequence-pattern.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-image-sequence-pattern.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Image Sequence Pattern"
-sidebar_position: 51
+sidebar_position: 52
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/image-sequence-pattern.tsx
---
diff --git a/packages/docs/docs/options/index.mdx b/packages/docs/docs/options/index.mdx
index e69e2520d8..a7ebd3307c 100644
--- a/packages/docs/docs/options/index.mdx
+++ b/packages/docs/docs/options/index.mdx
@@ -49,6 +49,7 @@ Only the CLI reads the config file. In programmatic APIs, you need to pass all o
- [Disallow parallel encoding](/docs/options/disallow-parallel-encoding) (`--disallow-parallel-encoding`)
- [Enable cancellation](/docs/options/enable-cancellation) (`--enable-cancellation`)
- [Enable Cross-Site Isolation](/docs/options/cross-site-isolation) (`--cross-site-isolation`)
+- [Enable experimental timeline tracks](/docs/options/experimental-tracks) (`--experimental-tracks`)
- [Enable Lambda Insights](/docs/options/enable-lambda-insights) (`--enable-lambda-insights`)
- [Enable Multiprocess on Linux](/docs/options/enable-multiprocess-on-linux) (`--enable-multiprocess-on-linux`)
- [Enforce Audio Track](/docs/options/enforce-audio-track) (`--enforce-audio-track`)
diff --git a/packages/docs/docs/options/ipv4.mdx b/packages/docs/docs/options/ipv4.mdx
index ac5149513c..3c02a9f07f 100644
--- a/packages/docs/docs/options/ipv4.mdx
+++ b/packages/docs/docs/options/ipv4.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-ipv4.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "IPv4"
-sidebar_position: 53
+sidebar_position: 54
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/ipv4.tsx
---
diff --git a/packages/docs/docs/options/is-production.mdx b/packages/docs/docs/options/is-production.mdx
index 4a030e9fe7..0e3c8d9d90 100644
--- a/packages/docs/docs/options/is-production.mdx
+++ b/packages/docs/docs/options/is-production.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-is-production.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Is Production"
-sidebar_position: 54
+sidebar_position: 55
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/is-production.tsx
---
diff --git a/packages/docs/docs/options/jpeg-quality.mdx b/packages/docs/docs/options/jpeg-quality.mdx
index 1eb5426870..2b87554827 100644
--- a/packages/docs/docs/options/jpeg-quality.mdx
+++ b/packages/docs/docs/options/jpeg-quality.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-jpeg-quality.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "JPEG Quality"
-sidebar_position: 55
+sidebar_position: 56
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/jpeg-quality.tsx
---
diff --git a/packages/docs/docs/options/license-key.mdx b/packages/docs/docs/options/license-key.mdx
index b30d0c81e0..c956e7258f 100644
--- a/packages/docs/docs/options/license-key.mdx
+++ b/packages/docs/docs/options/license-key.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-license-key.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "License key"
-sidebar_position: 59
+sidebar_position: 60
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/license-key.tsx
---
diff --git a/packages/docs/docs/options/log.mdx b/packages/docs/docs/options/log.mdx
index 115ff808fd..75f7796b0d 100644
--- a/packages/docs/docs/options/log.mdx
+++ b/packages/docs/docs/options/log.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-log.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Log Level"
-sidebar_position: 60
+sidebar_position: 61
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/log-level.tsx
---
diff --git a/packages/docs/docs/options/max-rate.mdx b/packages/docs/docs/options/max-rate.mdx
index b85cc439aa..d799c56b59 100644
--- a/packages/docs/docs/options/max-rate.mdx
+++ b/packages/docs/docs/options/max-rate.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-max-rate.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "FFmpeg -maxrate flag"
-sidebar_position: 42
+sidebar_position: 43
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/encoding-max-rate.tsx
---
diff --git a/packages/docs/docs/options/metadata.mdx b/packages/docs/docs/options/metadata.mdx
index 32ad855c18..04a16607c9 100644
--- a/packages/docs/docs/options/metadata.mdx
+++ b/packages/docs/docs/options/metadata.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-metadata.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Metadata"
-sidebar_position: 61
+sidebar_position: 62
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/metadata.tsx
---
diff --git a/packages/docs/docs/options/muted.mdx b/packages/docs/docs/options/muted.mdx
index 1a27007570..0a0c1f6189 100644
--- a/packages/docs/docs/options/muted.mdx
+++ b/packages/docs/docs/options/muted.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-muted.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Muted"
-sidebar_position: 62
+sidebar_position: 63
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/mute.tsx
---
diff --git a/packages/docs/docs/options/number-of-gif-loops.mdx b/packages/docs/docs/options/number-of-gif-loops.mdx
index f8a05c3d88..ecb81e5bc9 100644
--- a/packages/docs/docs/options/number-of-gif-loops.mdx
+++ b/packages/docs/docs/options/number-of-gif-loops.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-number-of-gif-loops.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Number of GIF loops"
-sidebar_position: 63
+sidebar_position: 64
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/number-of-gif-loops.tsx
---
diff --git a/packages/docs/docs/options/number-of-shared-audio-tags.mdx b/packages/docs/docs/options/number-of-shared-audio-tags.mdx
index 471c7e1c69..1f0306ab16 100644
--- a/packages/docs/docs/options/number-of-shared-audio-tags.mdx
+++ b/packages/docs/docs/options/number-of-shared-audio-tags.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-number-of-shared-audio-tags.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Number of shared audio tags"
-sidebar_position: 64
+sidebar_position: 65
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/number-of-shared-audio-tags.tsx
---
diff --git a/packages/docs/docs/options/offthreadvideo-cache-size-in-bytes.mdx b/packages/docs/docs/options/offthreadvideo-cache-size-in-bytes.mdx
index 99ed9ea130..6de60aa42c 100644
--- a/packages/docs/docs/options/offthreadvideo-cache-size-in-bytes.mdx
+++ b/packages/docs/docs/options/offthreadvideo-cache-size-in-bytes.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-offthreadvideo-cache-size-in-bytes.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "OffthreadVideo cache size"
-sidebar_position: 65
+sidebar_position: 66
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/offthreadvideo-cache-size.tsx
---
diff --git a/packages/docs/docs/options/offthreadvideo-video-threads.mdx b/packages/docs/docs/options/offthreadvideo-video-threads.mdx
index 1392601d51..84e33641a1 100644
--- a/packages/docs/docs/options/offthreadvideo-video-threads.mdx
+++ b/packages/docs/docs/options/offthreadvideo-video-threads.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-offthreadvideo-video-threads.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "OffthreadVideo threads"
-sidebar_position: 66
+sidebar_position: 67
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/offthreadvideo-threads.tsx
---
diff --git a/packages/docs/docs/options/out-dir.mdx b/packages/docs/docs/options/out-dir.mdx
index 1f37337225..37d22e8e7a 100644
--- a/packages/docs/docs/options/out-dir.mdx
+++ b/packages/docs/docs/options/out-dir.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-out-dir.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Output Directory"
-sidebar_position: 68
+sidebar_position: 69
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/out-dir.tsx
---
diff --git a/packages/docs/docs/options/overwrite.mdx b/packages/docs/docs/options/overwrite.mdx
index 0e6d5f5af9..16561508ff 100644
--- a/packages/docs/docs/options/overwrite.mdx
+++ b/packages/docs/docs/options/overwrite.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-overwrite.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Overwrite output"
-sidebar_position: 73
+sidebar_position: 74
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/overwrite.tsx
---
diff --git a/packages/docs/docs/options/package-manager.mdx b/packages/docs/docs/options/package-manager.mdx
index be2fb67198..1e7cada9fe 100644
--- a/packages/docs/docs/options/package-manager.mdx
+++ b/packages/docs/docs/options/package-manager.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-package-manager.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Package Manager"
-sidebar_position: 74
+sidebar_position: 75
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/package-manager.tsx
---
diff --git a/packages/docs/docs/options/pixel-format.mdx b/packages/docs/docs/options/pixel-format.mdx
index bbfb8ca4c3..132c2fc992 100644
--- a/packages/docs/docs/options/pixel-format.mdx
+++ b/packages/docs/docs/options/pixel-format.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-pixel-format.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Pixel format"
-sidebar_position: 75
+sidebar_position: 76
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/pixel-format.tsx
---
diff --git a/packages/docs/docs/options/port.mdx b/packages/docs/docs/options/port.mdx
index 5cac87f50b..71e136508c 100644
--- a/packages/docs/docs/options/port.mdx
+++ b/packages/docs/docs/options/port.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-port.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Port"
-sidebar_position: 76
+sidebar_position: 77
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/port.tsx
---
diff --git a/packages/docs/docs/options/prefer-lossless.mdx b/packages/docs/docs/options/prefer-lossless.mdx
index ddb2c89572..99c32f21f9 100644
--- a/packages/docs/docs/options/prefer-lossless.mdx
+++ b/packages/docs/docs/options/prefer-lossless.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-prefer-lossless.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Prefer lossless"
-sidebar_position: 77
+sidebar_position: 78
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/prefer-lossless.tsx
---
diff --git a/packages/docs/docs/options/preview-sample-rate.mdx b/packages/docs/docs/options/preview-sample-rate.mdx
index c7e3a5b3a7..72090e7a5a 100644
--- a/packages/docs/docs/options/preview-sample-rate.mdx
+++ b/packages/docs/docs/options/preview-sample-rate.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-preview-sample-rate.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Preview Sample Rate"
-sidebar_position: 78
+sidebar_position: 79
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/preview-sample-rate.tsx
---
diff --git a/packages/docs/docs/options/props.mdx b/packages/docs/docs/options/props.mdx
index 43709602a7..c128a1a405 100644
--- a/packages/docs/docs/options/props.mdx
+++ b/packages/docs/docs/options/props.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-props.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Input Props"
-sidebar_position: 52
+sidebar_position: 53
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/props.tsx
---
diff --git a/packages/docs/docs/options/prores-profile.mdx b/packages/docs/docs/options/prores-profile.mdx
index 879e5d98af..1e574f50aa 100644
--- a/packages/docs/docs/options/prores-profile.mdx
+++ b/packages/docs/docs/options/prores-profile.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-prores-profile.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "ProRes profile"
-sidebar_position: 79
+sidebar_position: 80
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/prores-profile.tsx
---
diff --git a/packages/docs/docs/options/public-dir.mdx b/packages/docs/docs/options/public-dir.mdx
index d9f07fa561..bb1a7ede58 100644
--- a/packages/docs/docs/options/public-dir.mdx
+++ b/packages/docs/docs/options/public-dir.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-public-dir.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Public Directory"
-sidebar_position: 80
+sidebar_position: 81
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/public-dir.tsx
---
diff --git a/packages/docs/docs/options/public-license-key.mdx b/packages/docs/docs/options/public-license-key.mdx
index d73f12540e..953d887b2d 100644
--- a/packages/docs/docs/options/public-license-key.mdx
+++ b/packages/docs/docs/options/public-license-key.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-public-license-key.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Public License Key"
-sidebar_position: 81
+sidebar_position: 82
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/public-license-key.tsx
---
diff --git a/packages/docs/docs/options/public-path.mdx b/packages/docs/docs/options/public-path.mdx
index 125047c2da..3f85d3dd19 100644
--- a/packages/docs/docs/options/public-path.mdx
+++ b/packages/docs/docs/options/public-path.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-public-path.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Public Path"
-sidebar_position: 82
+sidebar_position: 83
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/public-path.tsx
---
diff --git a/packages/docs/docs/options/rspack.mdx b/packages/docs/docs/options/rspack.mdx
index 15497d817a..fc7bd26edc 100644
--- a/packages/docs/docs/options/rspack.mdx
+++ b/packages/docs/docs/options/rspack.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-rspack.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Rspack"
-sidebar_position: 83
+sidebar_position: 84
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/rspack.tsx
---
diff --git a/packages/docs/docs/options/sample-rate.mdx b/packages/docs/docs/options/sample-rate.mdx
index 8791fe7d24..bc4eeec589 100644
--- a/packages/docs/docs/options/sample-rate.mdx
+++ b/packages/docs/docs/options/sample-rate.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-sample-rate.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Sample Rate"
-sidebar_position: 84
+sidebar_position: 85
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/sample-rate.tsx
---
diff --git a/packages/docs/docs/options/scale.mdx b/packages/docs/docs/options/scale.mdx
index 39b2abe1be..2a0476e6e3 100644
--- a/packages/docs/docs/options/scale.mdx
+++ b/packages/docs/docs/options/scale.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-scale.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Scale"
-sidebar_position: 85
+sidebar_position: 86
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/scale.tsx
---
diff --git a/packages/docs/docs/options/separate-audio-to.mdx b/packages/docs/docs/options/separate-audio-to.mdx
index a15bd49abb..1b10378cc0 100644
--- a/packages/docs/docs/options/separate-audio-to.mdx
+++ b/packages/docs/docs/options/separate-audio-to.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-separate-audio-to.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Separate audio to"
-sidebar_position: 86
+sidebar_position: 87
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/separate-audio.tsx
---
diff --git a/packages/docs/docs/options/sequence.mdx b/packages/docs/docs/options/sequence.mdx
index 4b7ac042e8..08502574da 100644
--- a/packages/docs/docs/options/sequence.mdx
+++ b/packages/docs/docs/options/sequence.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-sequence.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Image Sequence"
-sidebar_position: 50
+sidebar_position: 51
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/image-sequence.tsx
---
diff --git a/packages/docs/docs/options/skip-skills.mdx b/packages/docs/docs/options/skip-skills.mdx
index 03833666c7..82709c7712 100644
--- a/packages/docs/docs/options/skip-skills.mdx
+++ b/packages/docs/docs/options/skip-skills.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-skip-skills.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Skip Skills"
-sidebar_position: 87
+sidebar_position: 88
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/skip-skills.tsx
---
diff --git a/packages/docs/docs/options/still-image-format.mdx b/packages/docs/docs/options/still-image-format.mdx
index cbcb6d5c9c..5167a07710 100644
--- a/packages/docs/docs/options/still-image-format.mdx
+++ b/packages/docs/docs/options/still-image-format.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-still-image-format.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Still Image Format"
-sidebar_position: 88
+sidebar_position: 89
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/still-image-format.tsx
---
diff --git a/packages/docs/docs/options/throw-if-site-exists.mdx b/packages/docs/docs/options/throw-if-site-exists.mdx
index 8a1e77673d..d13096a2f8 100644
--- a/packages/docs/docs/options/throw-if-site-exists.mdx
+++ b/packages/docs/docs/options/throw-if-site-exists.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-throw-if-site-exists.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Throw if site exists"
-sidebar_position: 89
+sidebar_position: 90
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/throw-if-site-exists.tsx
---
diff --git a/packages/docs/docs/options/user-agent.mdx b/packages/docs/docs/options/user-agent.mdx
index 9d58204725..d4c39d14ee 100644
--- a/packages/docs/docs/options/user-agent.mdx
+++ b/packages/docs/docs/options/user-agent.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-user-agent.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "User agent"
-sidebar_position: 90
+sidebar_position: 91
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/user-agent.tsx
---
diff --git a/packages/docs/docs/options/version.mdx b/packages/docs/docs/options/version.mdx
index 247fc87a9d..fdaaafe9f6 100644
--- a/packages/docs/docs/options/version.mdx
+++ b/packages/docs/docs/options/version.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-version.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Version"
-sidebar_position: 91
+sidebar_position: 92
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/version-flag.tsx
---
diff --git a/packages/docs/docs/options/video-bitrate.mdx b/packages/docs/docs/options/video-bitrate.mdx
index 1d7f80b17c..383d1738f4 100644
--- a/packages/docs/docs/options/video-bitrate.mdx
+++ b/packages/docs/docs/options/video-bitrate.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-video-bitrate.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Video Bitrate"
-sidebar_position: 92
+sidebar_position: 93
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/video-bitrate.tsx
---
diff --git a/packages/docs/docs/options/video-image-format.mdx b/packages/docs/docs/options/video-image-format.mdx
index 9dc0a39d45..0cc344acab 100644
--- a/packages/docs/docs/options/video-image-format.mdx
+++ b/packages/docs/docs/options/video-image-format.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-video-image-format.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Video Image Format"
-sidebar_position: 93
+sidebar_position: 94
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/video-image-format.tsx
---
diff --git a/packages/docs/docs/options/webhook-custom-data.mdx b/packages/docs/docs/options/webhook-custom-data.mdx
index 5412cc57f0..312e588671 100644
--- a/packages/docs/docs/options/webhook-custom-data.mdx
+++ b/packages/docs/docs/options/webhook-custom-data.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-webhook-custom-data.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Webhook custom data"
-sidebar_position: 94
+sidebar_position: 95
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/webhook-custom-data.tsx
---
diff --git a/packages/docs/docs/options/webpack-poll.mdx b/packages/docs/docs/options/webpack-poll.mdx
index c75559b025..689bc6d393 100644
--- a/packages/docs/docs/options/webpack-poll.mdx
+++ b/packages/docs/docs/options/webpack-poll.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-webpack-poll.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Webpack Polling"
-sidebar_position: 96
+sidebar_position: 97
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/webpack-poll.tsx
---
diff --git a/packages/docs/docs/options/width.mdx b/packages/docs/docs/options/width.mdx
index a8414ba520..164136a148 100644
--- a/packages/docs/docs/options/width.mdx
+++ b/packages/docs/docs/options/width.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-width.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "Override Width"
-sidebar_position: 72
+sidebar_position: 73
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/override-width.tsx
---
diff --git a/packages/docs/docs/options/x264-preset.mdx b/packages/docs/docs/options/x264-preset.mdx
index c7925b9b04..a11a295dcc 100644
--- a/packages/docs/docs/options/x264-preset.mdx
+++ b/packages/docs/docs/options/x264-preset.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-options-x264-preset.png
# Generated by packages/docs/generate-option-docs.ts. Do not edit directly.
# Regenerate: cd packages/docs && bun run generate-option-docs
title: "x264 Preset"
-sidebar_position: 97
+sidebar_position: 98
crumb: Options
custom_edit_url: https://github.com/remotion-dev/remotion/edit/main/packages/renderer/src/options/x264-preset.tsx
---
diff --git a/packages/renderer/src/options/experimental-tracks.tsx b/packages/renderer/src/options/experimental-tracks.tsx
new file mode 100644
index 0000000000..7859d3857d
--- /dev/null
+++ b/packages/renderer/src/options/experimental-tracks.tsx
@@ -0,0 +1,45 @@
+import type {AnyRemotionOption} from './option';
+
+let experimentalTracksEnabled = false;
+let configuredExperimentalTracksEnabled: boolean | null = null;
+
+const cliFlag = 'experimental-tracks' as const;
+
+export const experimentalTracksOption = {
+ name: 'Enable experimental timeline tracks',
+ cliFlag,
+ description: () => (
+ <>
+ Enable experimental timeline tracks in the Remotion Studio. Group clips
+ from <code>{'<Track>'}</code>, <code>{'<Series>'}</code> and{' '}
+ <code>{'<TransitionSeries>'}</code> on shared rows, with overlays on
+ additional rows. Disabled by default.
+ </>
+ ),
+ ssrName: null,
+ docLink: 'https://www.remotion.dev/docs/options/experimental-tracks',
+ type: false as boolean,
+ getValue: ({commandLine}) => {
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
+ return {
+ value: commandLine[cliFlag] as boolean,
+ source: 'cli',
+ };
+ }
+
+ return {
+ value: experimentalTracksEnabled,
+ source: 'config',
+ };
+ },
+ setConfig(value) {
+ experimentalTracksEnabled = value;
+ configuredExperimentalTracksEnabled = value;
+ },
+ getConfigValue: () => configuredExperimentalTracksEnabled,
+ reset: () => {
+ experimentalTracksEnabled = false;
+ configuredExperimentalTracksEnabled = null;
+ },
+ id: cliFlag,
+} satisfies AnyRemotionOption<boolean>;
diff --git a/packages/renderer/src/options/index.tsx b/packages/renderer/src/options/index.tsx
index d4885d94c4..daa6c57e95 100644
--- a/packages/renderer/src/options/index.tsx
+++ b/packages/renderer/src/options/index.tsx
@@ -32,6 +32,7 @@ import {enforceAudioOption} from './enforce-audio';
import {envFileOption} from './env-file';
import {everyNthFrameOption} from './every-nth-frame';
import {experimentalKeepAudioContextAliveOption} from './experimental-keep-audio-context-alive';
+import {experimentalTracksOption} from './experimental-tracks';
import {folderExpiryOption} from './folder-expiry';
import {forSeamlessAacConcatenationOption} from './for-seamless-aac-concatenation';
import {forceNewStudioOption} from './force-new-studio';
@@ -171,6 +172,7 @@ export const allOptions = {
framesOption,
forceNewStudioOption,
experimentalKeepAudioContextAliveOption,
+ experimentalTracksOption,
numberOfSharedAudioTagsOption,
ipv4Option,
stillImageFormatOption,
diff --git a/packages/studio-shared/src/config-method-lifecycles.ts b/packages/studio-shared/src/config-method-lifecycles.ts
index 933bd9eacb..5ade547188 100644
--- a/packages/studio-shared/src/config-method-lifecycles.ts
+++ b/packages/studio-shared/src/config-method-lifecycles.ts
@@ -52,6 +52,7 @@ export const configMethodLifecycles = {
setEveryNthFrame: 'runtime',
setExperimentalKeepAudioContextAlive: 'reload',
setExperimentalRspackEnabled: 'restart',
+ setExperimentalTracksEnabled: 'runtime',
setForSeamlessAacConcatenation: 'runtime',
setForceNewStudioEnabled: 'restart',
setFrameRange: 'runtime',
diff --git a/packages/studio-shared/src/studio-runtime-config.ts b/packages/studio-shared/src/studio-runtime-config.ts
index 20a13ec769..440d0743c9 100644
--- a/packages/studio-shared/src/studio-runtime-config.ts
+++ b/packages/studio-shared/src/studio-runtime-config.ts
@@ -10,6 +10,7 @@ export type ConfigFileStudioSettings = {
readonly audioLatencyHint: AudioContextLatencyCategory | null;
readonly beepOnFinish: boolean | null;
readonly enableCrossSiteIsolation: boolean | null;
+ readonly experimentalTracksEnabled?: boolean | null;
readonly interactivityEnabled: boolean | null;
readonly keyboardShortcutsEnabled: boolean | null;
readonly logLevel: LogLevel | null;
@@ -28,6 +29,7 @@ export type StudioRuntimeConfig = {
readonly maxTimelineTracks: number | null;
readonly askAIEnabled: boolean;
readonly elementLibraries?: readonly StudioElementLibrary[];
+ readonly experimentalTracksEnabled?: boolean;
readonly interactivityEnabled: boolean;
readonly keyboardShortcutsEnabled: boolean;
readonly keyboardShortcuts?: StudioKeyboardShortcuts | null;
diff --git a/packages/studio/src/components/StudioSettings.tsx b/packages/studio/src/components/StudioSettings.tsx
index 963b4f4497..0e6b77ebab 100644
--- a/packages/studio/src/components/StudioSettings.tsx
+++ b/packages/studio/src/components/StudioSettings.tsx
@@ -48,6 +48,7 @@ const initialSettings: ConfigFileStudioSettings = {
audioLatencyHint: null,
beepOnFinish: null,
enableCrossSiteIsolation: null,
+ experimentalTracksEnabled: null,
interactivityEnabled: null,
keyboardShortcutsEnabled: null,
logLevel: null,
@@ -166,7 +167,9 @@ export const StudioSettings: React.FC = () => {
setter: string,
value: ConfigFileStudioSettings[keyof ConfigFileStudioSettings],
): ConfigUpdate =>
- value === null ? {setter, type: 'delete'} : {setter, type: 'set', value};
+ value === null || value === undefined
+ ? {setter, type: 'delete'}
+ : {setter, type: 'set', value};
const updatesForEditedSetters = [
update('setAskAIEnabled', settings.askAIEnabled),
@@ -179,6 +182,10 @@ export const StudioSettings: React.FC = () => {
),
update('setRspack', settings.rspack),
update('setInteractivityEnabled', settings.interactivityEnabled),
+ update(
+ 'setExperimentalTracksEnabled',
+ settings.experimentalTracksEnabled,
+ ),
update('setCanvasTabsEnabled', settings.canvasTabsEnabled),
update('setLogLevel', settings.logLevel),
].filter((item) => editedSetters.has(item.setter));
@@ -320,6 +327,42 @@ export const StudioSettings: React.FC = () => {
</div>
</label>
+ <div style={optionRow}>
+ <div style={label}>
+ Experimental tracks
+ <InfoBubble
+ aria-label="About experimental tracks"
+ horizontalAlignment="right"
+ >
+ <div
+ style={{
+ padding: 12,
+ maxWidth: 280,
+ fontSize: 14,
+ lineHeight: 1.5,
+ }}
+ >
+ Groups Track, Series, and TransitionSeries clips on shared
+ timeline rows, with extra rows for overlays. Disabled by default.
+ Changes apply immediately after saving, without reloading Studio.
+ </div>
+ </InfoBubble>
+ </div>
+ <label style={rightRow} aria-label="Experimental tracks">
+ <Checkbox
+ checked={settings.experimentalTracksEnabled === true}
+ name="Experimental tracks"
+ onChange={(event) =>
+ changeSetting(
+ 'experimentalTracksEnabled',
+ 'setExperimentalTracksEnabled',
+ event.target.checked ? true : null,
+ )
+ }
+ />
+ </label>
+ </div>
+
<p style={sectionTitle}>Audio</p>
<ConfigSelect
defaultLabel="Playback"
diff --git a/packages/studio/src/components/Timeline/Timeline.tsx b/packages/studio/src/components/Timeline/Timeline.tsx
index 48ac48966d..66e3a4fa40 100644
--- a/packages/studio/src/components/Timeline/Timeline.tsx
+++ b/packages/studio/src/components/Timeline/Timeline.tsx
@@ -300,11 +300,14 @@ const TimelineTrackChildrenSyncer: React.FC<{
),
[frame, packedItems],
);
- const previousActiveIds = useRef<ReadonlySet<string>>(new Set());
+ // Publish even an empty set when tracks are re-enabled after seeking.
+ const previousActiveIds = useRef<ReadonlySet<string> | null>(null);
useLayoutEffect(() => {
+ const previous = previousActiveIds.current;
if (
- previousActiveIds.current.size === activeTrackItemIds.size &&
- [...activeTrackItemIds].every((id) => previousActiveIds.current.has(id))
+ previous !== null &&
+ previous.size === activeTrackItemIds.size &&
+ [...activeTrackItemIds].every((id) => previous.has(id))
) {
return;
}
@@ -317,6 +320,9 @@ const TimelineTrackChildrenSyncer: React.FC<{
});
const TimelineInner: React.FC = () => {
+ const experimentalTracksEnabled = useContext(
+ Internals.ExperimentalTracksEnabledContext,
+ );
const sequences = Internals.useSequenceManagerSequences();
const {canvasContent, compositions} = useContext(
Internals.CompositionManager,
@@ -612,10 +618,12 @@ const TimelineInner: React.FC = () => {
return (
<TimelineContextMenuArea>
- <TimelineTrackChildrenSyncer
- tracks={filtered}
- onChange={setActiveTrackItemIds}
- />
+ {experimentalTracksEnabled ? (
+ <TimelineTrackChildrenSyncer
+ tracks={filtered}
+ onChange={setActiveTrackItemIds}
+ />
+ ) : null}
{sequences.map((sequence) => {
if (!shouldSubscribeToSequenceProps(sequence, previewInteractive)) {
return null;
diff --git a/packages/studio/src/components/Timeline/TimelinePackedTrack.tsx b/packages/studio/src/components/Timeline/TimelinePackedTrack.tsx
index 3e8a6d751d..69a07d7faf 100644
--- a/packages/studio/src/components/Timeline/TimelinePackedTrack.tsx
+++ b/packages/studio/src/components/Timeline/TimelinePackedTrack.tsx
@@ -17,6 +17,33 @@ export const TimelinePackedTrack: React.FC<{
readonly items: readonly TimelineTrackWithDisplayGroup[];
readonly auxiliaryRows: readonly (readonly TimelineTrackWithDisplayGroup[])[];
}> = ({track, items, auxiliaryRows}) => {
+ const labelStartFrames = useMemo(() => {
+ const starts = new Map<string, number>();
+ let precedingTransition: TimelineTrackWithDisplayGroup['sequence'] | null =
+ null;
+ // Match transitions to their incoming clips before reordering for painting.
+ for (const {sequence} of items) {
+ if (sequence.timelineTrack?.role === 'transition') {
+ precedingTransition = sequence;
+ } else if (sequence.timelineTrack?.role === 'clip') {
+ if (
+ precedingTransition !== null &&
+ precedingTransition.from < sequence.from + sequence.duration &&
+ precedingTransition.from + precedingTransition.duration >
+ sequence.from
+ ) {
+ starts.set(
+ sequence.id,
+ precedingTransition.from + precedingTransition.duration,
+ );
+ }
+
+ precedingTransition = null;
+ }
+ }
+
+ return starts;
+ }, [items]);
const rows = useMemo(() => {
const clips = items.filter(
(item) => item.sequence.timelineTrack?.role === 'clip',
@@ -81,6 +108,7 @@ export const TimelinePackedTrack: React.FC<{
>
<TimelineSequence
s={item.sequence}
+ labelStartFrame={labelStartFrames.get(item.sequence.id) ?? null}
cascadedStart={item.cascadedStart}
localStart={item.localStart}
connectedCompositions={
diff --git a/packages/studio/src/components/Timeline/TimelineSequence.tsx b/packages/studio/src/components/Timeline/TimelineSequence.tsx
index 5e89aa1b08..450760410d 100644
--- a/packages/studio/src/components/Timeline/TimelineSequence.tsx
+++ b/packages/studio/src/components/Timeline/TimelineSequence.tsx
@@ -20,6 +20,7 @@ import type {
import {Internals} from 'remotion';
import {StudioServerConnectionCtx} from '../../helpers/client-id';
import {
+ BLACK_ALPHA_22,
BLUE,
TIMELINE_AUDIO_GRADIENT,
TIMELINE_BACKGROUND_COLOR,
@@ -28,6 +29,7 @@ import {
TIMELINE_VIDEO_GRADIENT,
TRANSPARENT,
WHITE,
+ WHITE_ALPHA_15,
WHITE_ALPHA_20,
} from '../../helpers/colors';
import {createDragAwareDoubleClickTracker} from '../../helpers/drag-aware-double-click';
@@ -124,8 +126,6 @@ const EDGE_DRAG_HIGHLIGHT_WIDTH = 12;
const MIN_SECONDARY_LEFT_EDGE_ACTION_WIDTH = 32;
const PACKED_LABEL_HEIGHT = 15;
const PACKED_LABEL_BOTTOM = 1;
-const PACKED_TRANSITION_HEIGHT =
- TIMELINE_PACKED_TRACK_HEIGHT - PACKED_LABEL_HEIGHT - PACKED_LABEL_BOTTOM;
type TimelineEdgeHighlightEdge = 'left' | 'right' | 'source-only';
@@ -215,6 +215,7 @@ export const TimelineEdgeHighlightProvider: React.FC<{
const TimelineSequenceFn: React.FC<{
readonly s: TimelineTrackData['sequence'];
+ readonly labelStartFrame: number | null;
readonly connectedCompositions: readonly _InternalTypes['AnyComposition'][];
readonly nodePathInfo: SequenceNodePathInfo | null;
readonly keyframeDisplayOffset: number;
@@ -224,6 +225,7 @@ const TimelineSequenceFn: React.FC<{
readonly localStart: number;
}> = ({
s,
+ labelStartFrame,
connectedCompositions,
nodePathInfo,
keyframeDisplayOffset,
@@ -242,6 +244,7 @@ const TimelineSequenceFn: React.FC<{
<TimelineSequenceInner
windowWidth={windowWidth}
s={s}
+ labelStartFrame={labelStartFrame}
connectedCompositions={connectedCompositions}
nodePathInfo={nodePathInfo}
keyframeDisplayOffset={keyframeDisplayOffset}
@@ -310,6 +313,7 @@ const TimelineSequenceNegativeStart = React.memo(
const TimelineSequenceBar: React.FC<{
readonly s: TSequence;
+ readonly labelOffset: number;
readonly connectedComposition: _InternalTypes['AnyComposition'] | null;
readonly annotationLocation: ResolvedStackLocation | null;
readonly activeTrimEdge: 'left' | 'right' | null;
@@ -318,6 +322,10 @@ const TimelineSequenceBar: React.FC<{
readonly width: number;
} | null;
readonly displayDurationInFrames: number;
+ readonly selectionBounds: {
+ readonly left: number;
+ readonly width: number;
+ } | null;
readonly premount: {readonly left: number; readonly width: number} | null;
readonly postmount: {readonly left: number; readonly width: number} | null;
readonly negativeStart: {
@@ -325,6 +333,7 @@ const TimelineSequenceBar: React.FC<{
readonly width: number;
} | null;
readonly leftEdgeVisible: boolean;
+ readonly rightEdgeVisible: boolean;
readonly negativeStartClipped: boolean;
readonly style: React.CSSProperties;
readonly marqueeHorizontalBounds: {
@@ -344,15 +353,18 @@ const TimelineSequenceBar: React.FC<{
readonly onClick: React.MouseEventHandler<HTMLDivElement> | null;
}> = ({
s,
+ labelOffset,
connectedComposition,
activeTrimEdge,
leftTrimHighlight,
annotationLocation,
displayDurationInFrames,
+ selectionBounds,
premount,
postmount,
negativeStart,
leftEdgeVisible,
+ rightEdgeVisible,
negativeStartClipped,
style,
marqueeHorizontalBounds,
@@ -400,14 +412,16 @@ const TimelineSequenceBar: React.FC<{
const negativeStartEnd = negativeStart
? negativeStart.left + negativeStart.width
: 0;
- const compactPremount = s.isInsideSeries && premount !== null;
- const contentStart = compactPremount
- ? premount.left + premount.width
- : negativeStartEnd;
const transitionWidth =
s.timelineTrack?.role === 'transition'
? (marqueeHorizontalBounds?.width ?? Number(style.width))
: null;
+ // Take the gap from the trailing painted edge, keeping the full frame-based
+ // layout and trim handles intact. Keep tiny clips visible when zoomed out.
+ const visualRightInset =
+ s.timelineTrack && transitionWidth === null && rightEdgeVisible
+ ? Math.min(1, Math.max(0, Number(style.width) - negativeStartEnd - 1))
+ : 0;
// Back the antialiased rounded edge only when the glow is at the painted layer edge.
const sequenceBackground =
activeTrimEdge === null ||
@@ -418,12 +432,10 @@ const TimelineSequenceBar: React.FC<{
const actualStyle: React.CSSProperties = useMemo(() => {
return {
...style,
- background:
- negativeStart || compactPremount ? TRANSPARENT : sequenceBackground,
- pointerEvents: compactPremount ? 'none' : style.pointerEvents,
+ background: TRANSPARENT,
opacity: 1,
};
- }, [compactPremount, negativeStart, sequenceBackground, style]);
+ }, [style]);
const premountIndicator = premount ? (
<div
@@ -431,19 +443,14 @@ const TimelineSequenceBar: React.FC<{
left: premount.left,
width: premount.width,
top: 0,
- height: compactPremount ? 5 : '100%',
+ height: '100%',
background: `repeating-linear-gradient(
-45deg,
${TRANSPARENT},
${TRANSPARENT} 2px,
${WHITE_ALPHA_20} 2px,
${WHITE_ALPHA_20} 4px
- )${compactPremount ? `, ${style.background ?? TRANSPARENT}` : ''}`,
- boxShadow:
- compactPremount && (selected || containsSelection)
- ? `inset 0 0 0 2px ${WHITE}`
- : undefined,
- pointerEvents: compactPremount ? 'auto' : undefined,
+ )`,
position: 'absolute',
}}
/>
@@ -451,7 +458,7 @@ const TimelineSequenceBar: React.FC<{
const content = (
<>
- {compactPremount ? null : premountIndicator}
+ {premountIndicator}
{postmount ? (
<TimelineSequenceMountIndicator
@@ -474,26 +481,17 @@ const TimelineSequenceBar: React.FC<{
left: -(marqueeHorizontalBounds?.cropLeft ?? 0),
top: 0,
width: transitionWidth,
- height: PACKED_TRANSITION_HEIGHT,
+ height: TIMELINE_PACKED_TRACK_HEIGHT,
pointerEvents: 'none',
}}
>
- <rect
- x={0.5}
- y={0.5}
- width={Math.max(0, transitionWidth - 1)}
- height={PACKED_TRANSITION_HEIGHT - 1}
- fill="none"
- stroke={WHITE}
- strokeWidth={1}
+ <polygon
+ points={`0,0 ${transitionWidth},0 0,${TIMELINE_PACKED_TRACK_HEIGHT}`}
+ fill={BLACK_ALPHA_22}
/>
- <line
- x1={0.5}
- y1={PACKED_TRANSITION_HEIGHT - 0.5}
- x2={Math.max(0.5, transitionWidth - 0.5)}
- y2={0.5}
- stroke={WHITE}
- strokeWidth={1}
+ <polygon
+ points={`${transitionWidth},0 ${transitionWidth},${TIMELINE_PACKED_TRACK_HEIGHT} 0,${TIMELINE_PACKED_TRACK_HEIGHT}`}
+ fill={WHITE_ALPHA_15}
/>
</svg>
)}
@@ -502,7 +500,9 @@ const TimelineSequenceBar: React.FC<{
<div
style={{
position: 'absolute',
- left: 5 + negativeStartEnd + (premount?.width ?? 0),
+ left:
+ 5 +
+ Math.max(labelOffset, negativeStartEnd + (premount?.width ?? 0)),
right: 4,
bottom: PACKED_LABEL_BOTTOM,
display: 'flex',
@@ -591,17 +591,14 @@ const TimelineSequenceBar: React.FC<{
onPointerDown={selectable ? onPointerDown : undefined}
onClick={onClick ?? undefined}
>
- {compactPremount ? premountIndicator : null}
- {negativeStart || compactPremount ? (
+ {negativeStart ? (
<>
- {negativeStart ? (
- <TimelineSequenceNegativeStart
- left={negativeStart.left}
- width={negativeStart.width}
- leftEdgeVisible={leftEdgeVisible}
- clipped={negativeStartClipped}
- />
- ) : null}
+ <TimelineSequenceNegativeStart
+ left={negativeStart.left}
+ width={negativeStart.width}
+ leftEdgeVisible={leftEdgeVisible}
+ clipped={negativeStartClipped}
+ />
<div
style={{
background: sequenceBackground,
@@ -611,21 +608,20 @@ const TimelineSequenceBar: React.FC<{
borderTopRightRadius: style.borderTopRightRadius,
boxSizing: 'border-box',
height: '100%',
- left: contentStart,
+ left: negativeStartEnd,
overflow: 'hidden',
- pointerEvents: compactPremount ? 'auto' : undefined,
position: 'absolute',
top: 0,
- width: `calc(100% - ${contentStart}px)`,
+ width: `calc(100% - ${negativeStartEnd + visualRightInset}px)`,
}}
>
<div
style={{
height: '100%',
- left: -contentStart,
+ left: -negativeStartEnd,
position: 'absolute',
top: 0,
- width: style.width,
+ width: `calc(100% + ${negativeStartEnd}px)`,
}}
>
{content}
@@ -637,6 +633,8 @@ const TimelineSequenceBar: React.FC<{
style={{
position: 'absolute',
inset: 0,
+ right: visualRightInset,
+ background: sequenceBackground,
overflow: 'hidden',
borderRadius: 'inherit',
}}
@@ -644,14 +642,19 @@ const TimelineSequenceBar: React.FC<{
{content}
</div>
)}
- {(selected || containsSelection) &&
- (!compactPremount || Number(style.width) > contentStart) ? (
+ {(selected || containsSelection) && selectionBounds ? (
<div
aria-hidden="true"
style={{
position: 'absolute',
inset: 0,
- left: compactPremount ? contentStart : 0,
+ left: selectionBounds.left,
+ right: Math.max(
+ visualRightInset,
+ Number(style.width) -
+ selectionBounds.left -
+ selectionBounds.width,
+ ),
borderRadius: 'inherit',
boxShadow: `inset 0 0 0 2px ${WHITE}`,
pointerEvents: 'none',
@@ -665,6 +668,7 @@ const TimelineSequenceBar: React.FC<{
const TimelineSequenceInner: React.FC<{
readonly s: TimelineTrackData['sequence'];
+ readonly labelStartFrame: number | null;
readonly connectedCompositions: readonly _InternalTypes['AnyComposition'][];
readonly windowWidth: number;
readonly nodePathInfo: SequenceNodePathInfo | null;
@@ -675,6 +679,7 @@ const TimelineSequenceInner: React.FC<{
readonly localStart: number;
}> = ({
s,
+ labelStartFrame,
connectedCompositions,
windowWidth,
nodePathInfo,
@@ -1367,7 +1372,8 @@ const TimelineSequenceInner: React.FC<{
maxMediaDuration: effectiveMaxMediaDuration,
video,
windowWidth,
- premountDisplay: s.premountDisplay,
+ // Premounting does not occupy space in a packed track.
+ premountDisplay: s.timelineTrack ? null : s.premountDisplay,
postmountDisplay: s.postmountDisplay,
});
}, [
@@ -1468,13 +1474,11 @@ const TimelineSequenceInner: React.FC<{
(windowWidth - TIMELINE_PADDING * 2) / video.durationInFrames;
const isMedia = s.type === 'audio' || s.type === 'video';
const layerHeight =
- s.timelineTrack?.role === 'transition'
- ? PACKED_TRANSITION_HEIGHT
- : s.timelineTrack?.role === 'overlay'
- ? TIMELINE_PACKED_AUXILIARY_ROW_HEIGHT - TIMELINE_ITEM_BORDER_BOTTOM
- : s.timelineTrack
- ? TIMELINE_PACKED_TRACK_HEIGHT
- : getTimelineLayerHeight(s.type);
+ s.timelineTrack?.role === 'overlay'
+ ? TIMELINE_PACKED_AUXILIARY_ROW_HEIGHT - TIMELINE_ITEM_BORDER_BOTTOM
+ : s.timelineTrack
+ ? TIMELINE_PACKED_TRACK_HEIGHT
+ : getTimelineLayerHeight(s.type);
const trimOutline = (() => {
if (
activeEdgeHighlight === null ||
@@ -1713,6 +1717,14 @@ const TimelineSequenceInner: React.FC<{
const sequence = (
<TimelineSequenceBar
s={s}
+ labelOffset={
+ labelStartFrame === null
+ ? 0
+ : Math.max(
+ 0,
+ labelStartFrame * frameIncrement - visibleLayout.marginLeft,
+ )
+ }
connectedComposition={connectedCompositions[0] ?? null}
annotationLocation={originalLocation}
activeTrimEdge={activeTrimEdge}
@@ -1720,10 +1732,12 @@ const TimelineSequenceInner: React.FC<{
visibleLayout.media?.offset === 0 ? visibleLayout.media : null
}
displayDurationInFrames={displayDurationInFrames}
+ selectionBounds={visibleLayout.media}
premount={visibleLayout.premount}
postmount={visibleLayout.postmount}
negativeStart={visibleLayout.negativeStart}
leftEdgeVisible={visibleLayout.leftEdgeVisible}
+ rightEdgeVisible={visibleLayout.rightEdgeVisible}
negativeStartClipped={negativeStartClipped}
style={style}
marqueeHorizontalBounds={marqueeHorizontalBounds}
diff --git a/packages/studio/src/components/Timeline/TimelineTrack.tsx b/packages/studio/src/components/Timeline/TimelineTrack.tsx
index 38f799d9b8..f24bfcda56 100644
--- a/packages/studio/src/components/Timeline/TimelineTrack.tsx
+++ b/packages/studio/src/components/Timeline/TimelineTrack.tsx
@@ -73,6 +73,7 @@ const TimelineTrackUnmemoized: React.FC<{
) : null}
<TimelineSequence
s={track.sequence}
+ labelStartFrame={null}
cascadedStart={track.cascadedStart}
localStart={track.localStart}
connectedCompositions={
diff --git a/packages/studio/src/components/Timeline/timeline-track-groups.ts b/packages/studio/src/components/Timeline/timeline-track-groups.ts
index 67e96311bb..724b4ccb35 100644
--- a/packages/studio/src/components/Timeline/timeline-track-groups.ts
+++ b/packages/studio/src/components/Timeline/timeline-track-groups.ts
@@ -140,7 +140,7 @@ export const getTimelineDisplayRows = (
continue;
}
- const start = item.sequence.from - (item.sequence.premountDisplay ?? 0);
+ const start = item.sequence.from;
const end =
item.sequence.from +
item.sequence.duration +
@@ -148,7 +148,7 @@ export const getTimelineDisplayRows = (
let rowIndex = 0;
for (let index = 0; index < auxiliaryRows.length; index++) {
const overlaps = auxiliaryRows[index].some(({sequence}) => {
- const otherStart = sequence.from - (sequence.premountDisplay ?? 0);
+ const otherStart = sequence.from;
const otherEnd =
sequence.from +
sequence.duration +
diff --git a/packages/studio/src/helpers/client-id.tsx b/packages/studio/src/helpers/client-id.tsx
index 49fc24d561..968076d382 100644
--- a/packages/studio/src/helpers/client-id.tsx
+++ b/packages/studio/src/helpers/client-id.tsx
@@ -13,6 +13,7 @@ import {
subscribeToPreviewServerEvents,
type PreviewServerConnectionState,
} from './preview-server-events';
+import {getStudioExperimentalTracksEnabled} from './studio-runtime-config';
import {reloadUrl} from './url-state';
type Context = {
@@ -187,7 +188,11 @@ export const PreviewServerConnection: React.FC<{
return (
<StudioServerConnectionCtx.Provider value={context}>
- {children}
+ <Internals.ExperimentalTracksEnabledContext.Provider
+ value={getStudioExperimentalTracksEnabled()}
+ >
+ {children}
+ </Internals.ExperimentalTracksEnabledContext.Provider>
</StudioServerConnectionCtx.Provider>
);
};
diff --git a/packages/studio/src/helpers/studio-runtime-config.ts b/packages/studio/src/helpers/studio-runtime-config.ts
index b498a0acb4..73ec99814e 100644
--- a/packages/studio/src/helpers/studio-runtime-config.ts
+++ b/packages/studio/src/helpers/studio-runtime-config.ts
@@ -31,6 +31,10 @@ export const getStudioInteractivityEnabled = () => {
return getStudioRuntimeConfig().interactivityEnabled;
};
+export const getStudioExperimentalTracksEnabled = () => {
+ return getStudioRuntimeConfig().experimentalTracksEnabled ?? false;
+};
+
export const getStudioKeyboardShortcutsEnabled = () => {
return getStudioRuntimeConfig().keyboardShortcutsEnabled;
};