using System; using System.Drawing; using AForge.Video.FFMPEG;
class Program { static void Main() { var videoWriter = new VideoFileWriter(); videoWriter.Open("output.mp4", 640, 480, 25, VideoCodec.MPEG4);
for (int i = 0; i < 10; i++)
{
Bitmap image = (Bitmap)Image.FromFile($"image{i}.jpg");
videoWriter.WriteVideoFrame(image);
image.Dispose();
}
videoWriter.Close();
}
}
- Downloads last month
- 0
Inference API (serverless) does not yet support adapter-transformers models for this pipeline type.