Skip to content

Commit

Permalink
Update ffmpeg.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxou44 authored Mar 17, 2024
1 parent 65c444f commit 894e3be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/core/ffmpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ const ffmpegPath = ffmpeg ? ffmpeg.replace('app.asar', 'app.asar.unpacked') : fa

export const generate = (width = 1920, height = 1080, directory = false, outputProfil = false, outputFile = false, fps = 24, opts = {}) => {
return new Promise((resolve, reject) => {
const args = getFFmpegArgs(width, height, outputProfil, outputFile, fps, opts).catch(reject);
let args = [];
try {
args = getFFmpegArgs(width, height, outputProfil, outputFile, fps, opts);
} catch (err) {
return reject(err);
}

console.log(`ffmpeg.exe ${args.map((e) => `"${e}"`).join(' ')}`);

Expand Down

0 comments on commit 894e3be

Please sign in to comment.