Creating a video from a sequence of images in C #

I have the task of generating video from a sequence of images in my application, and during the search I found out that FFMPEG can do this. Can you provide me with some kind of tutorial or link that can help me in the right direction. I am new to this, so please help the respective guys. Understand any help

+3
source share
4 answers

. , . NuGet "accord.extensions.imaging.io", :

    private void makeAvi(string imageInputfolderName, string outVideoFileName, float fps = 12.0f, string imgSearchPattern = "*.png")
    {   // reads all images in folder 
        VideoWriter w = new VideoWriter(outVideoFileName, 
            new Accord.Extensions.Size(480, 640), fps, true);
        Accord.Extensions.Imaging.ImageDirectoryReader ir = 
            new ImageDirectoryReader(imageInputfolderName, imgSearchPattern);
        while (ir.Position < ir.Length)
        {
            IImage i = ir.Read();
            w.Write(i);
        }
        w.Close();
    }

.

, , , , .

+3

I was a bit late, but I did a tutorial on how I solved my similar problem, if you still haven’t succeeded: Image sequence for video stream?

+1
source

I asked the same question here .

The answer there indicates here that it’s not quite what you are doing, but it’s easy to set up for the job.

0
source

All Articles