I have developed a Visual Studio Winapp that produces a video file utilizing Accord.Video.FFMPEG.DLL.
The quality the video is less than the original images. Here is the code and then a sample original image and snapshot of the resulting video.
What can I change to improve the video image?
VideoFileWriter writer = new VideoFileWriter();
writer.Open(outfile, width, height, 1, VideoCodec.Mpeg4);
for (int i = firstrow; i <= testframes; i++)
{
Bitmap bitmap = new Bitmap(ffiles[i, 0].ToString());
writer.WriteVideoFrame(bitmap);
bitmap.Dispose();
}
I tried Bitmap image = new Bitmap(width, height, PixelFormat.Format64bppArgb);

I tried multiple configurations, and it looks like using VP9 codec and WebM file gives the best quality.
We may also set the bitRate argument to high value.
Code sample:
Note:
The output colors doesn't seem accurate, and there are multiple options that doesn't work.
Instead of using Accord, I recommend using FFmpeg CLI, or looking for a better package.