mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
18 lines
550 B
C#
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);
|
|
}
|
|
}
|
|
}
|