Files
flowframes/Code/AudioVideo/GifskiCommands.cs
N00MKRAD 1bce73dea6 Initial
2020-11-23 16:51:05 +01:00

18 lines
550 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Flowframes.FFmpeg
{
class GifskiCommands
{
public static async Task CreateGifFromFrames (int fps, int quality, string framespath, string outpath)
{
Logger.Log($"Creating GIF from frames using quality {quality}...");
await AvProcess.RunGifski($" -r {fps} -W 4096 -Q {quality} -o \"{outpath}\" \"{framespath}/\"*.\"png\"", AvProcess.LogMode.OnlyLastLine);
}
}
}