Files
flowframes/Code/AudioVideo/GifskiCommands.cs

18 lines
550 B
C#
Raw Normal View History

2020-11-23 16:51:05 +01:00
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);
}
}
}