Skip to content

Commit

Permalink
Fix renderSingleFrame after config refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 26, 2025
1 parent 0091c52 commit b75b10b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,23 +397,23 @@ async function Editly(input: ConfigurationOptions): Promise<void> {
*
* @param config - ConfigurationOptions.
*/
export async function renderSingleFrame(config: RenderSingleFrameConfig): Promise<void> {
export async function renderSingleFrame(input: RenderSingleFrameConfig): Promise<void> {
const time = input.time ?? 0;

const config = new Configuration(input);
const {
time = 0,
clips: clipsIn,
allowRemoteRequests,
width = 800,
height = 600,
clips: clipsIn,

verbose,
logTimes,
allowRemoteRequests,
ffmpegPath = 'ffmpeg',
ffprobePath = 'ffprobe',
enableFfmpegLog,
outPath = `${Math.floor(Math.random() * 1e12)}.png`,
} = config;

configureFf({ ffmpegPath, ffprobePath, enableFfmpegLog });
configureFf(config);

console.log({ clipsIn })

const { clips } = await parseConfig({ clips: clipsIn, arbitraryAudio: [], allowRemoteRequests });
let clipStartTime = 0;
Expand Down

0 comments on commit b75b10b

Please sign in to comment.