({
args,
remotionRoot,
logLevel,
providerSpecifics,
}: {
args: string[];
remotionRoot: string;
logLevel: LogLevel;
providerSpecifics: ProviderSpecifics<AwsProvider>;
})
| 57 | export const STILL_COMMAND = 'still'; |
| 58 | |
| 59 | export 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, |
no test coverage detected
searching dependent graphs…