MCPcopy
hub / github.com/remotion-dev/remotion / stillCommand

Function stillCommand

packages/lambda/src/cli/commands/still.ts:59–385  ·  view source on GitHub ↗
({
	args,
	remotionRoot,
	logLevel,
	providerSpecifics,
}: {
	args: string[];
	remotionRoot: string;
	logLevel: LogLevel;
	providerSpecifics: ProviderSpecifics<AwsProvider>;
})

Source from the content-addressed store, hash-verified

57export const STILL_COMMAND = 'still';
58
59export const stillCommand = async ({
60 args,
61 remotionRoot,
62 logLevel,
63 providerSpecifics,
64}: {
65 args: string[];
66 remotionRoot: string;
67 logLevel: LogLevel;
68 providerSpecifics: ProviderSpecifics<AwsProvider>;
69}) => {
70 const serveUrl = args[0];
71
72 if (!serveUrl) {
73 Log.error({indent: false, logLevel}, 'No serve URL passed.');
74 Log.info(
75 {indent: false, logLevel},
76 'Pass an additional argument specifying a URL where your Remotion project is hosted.',
77 );
78 Log.info({indent: false, logLevel});
79 Log.info(
80 {indent: false, logLevel},
81 `${BINARY_NAME} ${STILL_COMMAND} <serve-url> <composition-id> [output-location]`,
82 );
83 quit(1);
84 }
85
86 const {envVariables, inputProps, stillFrame} = getCliOptions({
87 isStill: true,
88 logLevel,
89 indent: false,
90 });
91
92 const height = overrideHeightOption.getValue({
93 commandLine: parsedCli,
94 }).value;
95 const width = overrideWidthOption.getValue({commandLine: parsedCli}).value;
96 const fps = overrideFpsOption.getValue({commandLine: parsedCli}).value;
97 const durationInFrames = overrideDurationOption.getValue({
98 commandLine: parsedCli,
99 }).value;
100
101 const browserExecutable = browserExecutableOption.getValue({
102 commandLine: parsedCli,
103 }).value;
104 const userAgent = userAgentOption.getValue({commandLine: parsedCli}).value;
105 const disableWebSecurity = disableWebSecurityOption.getValue({
106 commandLine: parsedCli,
107 }).value;
108 const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
109 commandLine: parsedCli,
110 }).value;
111
112 const region = getAwsRegion();
113 let composition = args[1];
114
115 const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
116 commandLine: parsedCli,

Callers 1

matchCommandFunction · 0.90

Calls 13

quitFunction · 0.90
getAwsRegionFunction · 0.90
findFunctionNameFunction · 0.90
validateMaxRetriesFunction · 0.90
validatePrivacyFunction · 0.90
makeArtifactProgressFunction · 0.90
internalDownloadMediaFunction · 0.90
getCliOptionsFunction · 0.85
ErrorInterface · 0.85
getValueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…