Skip to content

🎥 Make videos programmatically with React

inherit log from still

Jonny Burger488f786af77b
diff --git a/packages/cli/src/convert-entry-point-to-serve-url.ts b/packages/cli/src/convert-entry-point-to-serve-url.ts
index 191afde97b..5096016270 100644
--- a/packages/cli/src/convert-entry-point-to-serve-url.ts
+++ b/packages/cli/src/convert-entry-point-to-serve-url.ts
@@ -4,7 +4,7 @@ import path from 'path';
export const convertEntryPointToServeUrl = (entryPoint: string) => {
const fullPath = RenderInternals.isServeUrl(entryPoint)
? entryPoint
- : path.join(process.cwd(), entryPoint);
+ : path.resolve(process.cwd(), entryPoint);
return fullPath;
};
diff --git a/packages/cli/src/determine-image-format.ts b/packages/cli/src/determine-image-format.ts
index 4015233808..f30e8cb370 100644
--- a/packages/cli/src/determine-image-format.ts
+++ b/packages/cli/src/determine-image-format.ts
@@ -34,7 +34,7 @@ export const determineFinalImageFormat = ({
fromUi: StillImageFormat | null;
}): {format: StillImageFormat; source: string} => {
if (fromUi) {
- return {format: fromUi, source: 'Specified via UI'};
+ return {format: fromUi, source: 'via UI'};
}
const outNameExtension = deriveExtensionFromFilename(outName);
diff --git a/packages/cli/src/editor/components/RenderModal/RenderErrorModal.tsx b/packages/cli/src/editor/components/RenderModal/RenderErrorModal.tsx
index e3c0006687..25c3569486 100644
--- a/packages/cli/src/editor/components/RenderModal/RenderErrorModal.tsx
+++ b/packages/cli/src/editor/components/RenderModal/RenderErrorModal.tsx
@@ -20,7 +20,8 @@ const codeBlock: React.CSSProperties = {
padding: 12,
borderRadius: 4,
fontFamily: 'monospace',
- overflowX: 'auto',
+ overflow: 'auto',
+ maxHeight: 300,
};
const spacer: React.CSSProperties = {
diff --git a/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx b/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx
index 88c308ab62..ce24066ce5 100644
--- a/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx
+++ b/packages/cli/src/editor/components/RenderQueue/RenderQueueItem.tsx
@@ -25,7 +25,12 @@ const right: React.CSSProperties = {
overflow: 'hidden',
};
-const subtitle: React.CSSProperties = {};
+const subtitle: React.CSSProperties = {
+ maxWidth: '100%',
+ flex: 1,
+ display: 'flex',
+ overflow: 'hidden',
+};
export const RenderQueueItem: React.FC<{
job: RenderJob;
diff --git a/packages/cli/src/editor/components/RenderQueue/item-style.ts b/packages/cli/src/editor/components/RenderQueue/item-style.ts
index 0796f089d1..0923dd5b9f 100644
--- a/packages/cli/src/editor/components/RenderQueue/item-style.ts
+++ b/packages/cli/src/editor/components/RenderQueue/item-style.ts
@@ -13,4 +13,8 @@ export const renderQueueItemSubtitleStyle: React.CSSProperties = {
textAlign: 'left',
whiteSpace: 'nowrap',
marginRight: SPACING_UNIT,
+ overflow: 'hidden',
+ // size smaller than viewport causes actual ellipse
+ maxWidth: 500,
+ textOverflow: 'ellipsis',
};
diff --git a/packages/cli/src/get-composition-id.ts b/packages/cli/src/get-composition-id.ts
index 47e2257005..86c104839b 100644
--- a/packages/cli/src/get-composition-id.ts
+++ b/packages/cli/src/get-composition-id.ts
@@ -18,7 +18,7 @@ const getCompName = ({
return {
compName: compositionIdFromUi,
remainingArgs: [],
- reason: 'from Preview',
+ reason: 'via UI',
};
}
diff --git a/packages/cli/src/preview-server/render-queue/process-still.ts b/packages/cli/src/preview-server/render-queue/process-still.ts
index 53bc63d974..84a5d90e08 100644
--- a/packages/cli/src/preview-server/render-queue/process-still.ts
+++ b/packages/cli/src/preview-server/render-queue/process-still.ts
@@ -42,7 +42,7 @@ export const processStill = async ({
browser,
browserExecutable,
chromiumOptions,
- entryPointReason: 'from preview',
+ entryPointReason: 'same as preview',
envVariables,
ffmpegExecutable,
ffprobeExecutable,
diff --git a/packages/cli/src/render-flows/still.ts b/packages/cli/src/render-flows/still.ts
index e72006d126..640ec05ac6 100644
--- a/packages/cli/src/render-flows/still.ts
+++ b/packages/cli/src/render-flows/still.ts
@@ -91,11 +91,15 @@ export const renderStillFlow = async ({
const startTime = Date.now();
Log.verbose('Browser executable: ', browserExecutable);
+ const shouldDumpIo = RenderInternals.isEqualOrBelowLogLevel(
+ logLevel,
+ 'verbose'
+ );
const browserInstance = openBrowser(browser, {
browserExecutable,
chromiumOptions,
- shouldDumpIo: RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose'),
+ shouldDumpIo,
forceDeviceScaleFactor: scale,
});
@@ -212,10 +216,7 @@ export const renderStillFlow = async ({
output: absoluteOutputLocation,
serveUrl: urlOrBundle,
quality,
- dumpBrowserLogs: RenderInternals.isEqualOrBelowLogLevel(
- logLevel,
- 'verbose'
- ),
+ dumpBrowserLogs: shouldDumpIo,
envVariables,
imageFormat,
inputProps,