Fix FFmpeg task when rendering list of frames #104286
@ -149,7 +149,14 @@ function authorCreateVideoTask(settings, renderDir) {
|
||||
}
|
||||
|
||||
const stem = path.stem(settings.blendfile).replace('.flamenco', '');
|
||||
const outfile = path.join(renderDir, `${stem}-${settings.frames}.mp4`);
|
||||
var outfile = path.join(renderDir, `${stem}-${settings.frames}.mp4`);
|
||||
if (outfile.search(',') != -1) {
|
||||
// Get the first and last frame from the list
|
||||
const chunks = frameChunker(settings.frames, 1);
|
||||
const firstFrame = chunks[0];
|
||||
const lastFrame = chunks.slice(-1)[0];
|
||||
outfile = path.join(renderDir, `${stem}-${firstFrame}-${lastFrame}.mp4`);
|
||||
}
|
||||
const outfileExt = guessOutputFileExtension(settings);
|
||||
|
||||
const task = author.Task('preview-video', 'ffmpeg');
|
||||
|
@ -130,7 +130,14 @@ function authorCreateVideoTask(settings, renderDir) {
|
||||
}
|
||||
|
||||
const stem = path.stem(settings.blendfile).replace('.flamenco', '');
|
||||
const outfile = path.join(renderDir, `${stem}-${settings.frames}.mp4`);
|
||||
var outfile = path.join(renderDir, `${stem}-${settings.frames}.mp4`);
|
||||
if (outfile.search(',') != -1) {
|
||||
// Get the first and last frame from the list
|
||||
const chunks = frameChunker(settings.frames, 1);
|
||||
const firstFrame = chunks[0];
|
||||
const lastFrame = chunks.slice(-1)[0];
|
||||
outfile = path.join(renderDir, `${stem}-${firstFrame}-${lastFrame}.mp4`);
|
||||
}
|
||||
const outfileExt = needsPreviews ? ".jpg" : settings.image_file_extension;
|
||||
|
||||
const task = author.Task('preview-video', 'ffmpeg');
|
||||
|
Loading…
Reference in New Issue
Block a user