mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Fix FramesToVideo and ConcatVideos
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Flowframes
|
|||||||
IoUtils.RenameExistingFile(outPath);
|
IoUtils.RenameExistingFile(outPath);
|
||||||
string loopStr = (looptimes > 0) ? $"-stream_loop {looptimes}" : "";
|
string loopStr = (looptimes > 0) ? $"-stream_loop {looptimes}" : "";
|
||||||
string vfrFilename = Path.GetFileName(concatFile);
|
string vfrFilename = Path.GetFileName(concatFile);
|
||||||
string args = $" {loopStr} -fps_mode cfr -f concat -i {vfrFilename} -c copy -movflags +faststart -fflags +genpts {outPath.Wrap()}";
|
string args = $" {loopStr} -f concat -i {vfrFilename} -fps_mode cfr -c copy -movflags +faststart -fflags +genpts {outPath.Wrap()}";
|
||||||
await RunFfmpeg(args, concatFile.GetParentDir(), LogMode.Hidden);
|
await RunFfmpeg(args, concatFile.GetParentDir(), LogMode.Hidden);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace Flowframes.Media
|
|||||||
{
|
{
|
||||||
string pre = i == 0 ? "" : $" && ffmpeg {AvProcess.GetFfmpegDefaultArgs()}";
|
string pre = i == 0 ? "" : $" && ffmpeg {AvProcess.GetFfmpegDefaultArgs()}";
|
||||||
string post = (i == 0 && encArgs.Length > 1) ? $"-f null -" : outPath.Wrap();
|
string post = (i == 0 && encArgs.Length > 1) ? $"-f null -" : outPath.Wrap();
|
||||||
args += $"{pre} {await GetFfmpegExportArgsIn(fps, itsScale)} {inArg} {encArgs[i]} {GetFfmpegExportArgsOut(resampleFps, extraData, settings, isChunk)} {post} ";
|
args += $"{pre} {await GetFfmpegExportArgsIn(fps, itsScale)} {inArg} {encArgs[i]} {await GetFfmpegExportArgsOut(resampleFps, extraData, settings, isChunk)} {post} ";
|
||||||
}
|
}
|
||||||
|
|
||||||
await RunFfmpeg(args, framesFile.GetParentDir(), logMode, !isChunk);
|
await RunFfmpeg(args, framesFile.GetParentDir(), logMode, !isChunk);
|
||||||
|
|||||||
Reference in New Issue
Block a user