Create video from image files?

I am trying to make a video from a folder full of jpeg files. I tried google and everyone is stuck with this. I downloaded the WM SDK and Encoder, but since I don’t know their object model, I can’t do much.

Does anyone here have some WORKING code on how to create a WMV or AVI or MPEG video file from a folder full of jpegs? (In C #)

I see in the answers that there seems to be no way to do this with C # just by using a third party. I will check your suggestions.

+4
source share
6 answers

Check out the Corinna John AVIFile wrapper . I used it in the AVI plugin for Cropper .

+3
source

VirtualDub is able to make video from multiple image files. Here's a pretty general overview of how to do this.

FFMPEG, as CptSkippy mentioned, also has this feature.

+2
source

See AVBlocks Slideshow sample . It creates video (e.g. MP4) from images. The input is a series of JPEG images. The output is pre-configured with AVBlocks.

+2
source

Do you consider using FFMPEG ? I used it to create thumbnails from videos in several projects.

+1
source

Finally I settled on Splicer . Free, easy to use, and it works. Additional Information on the Working Way to Make Video from Images in C #

+1
source

Try through NuGet "accord.extensions.imaging.io", then I wrote the following little function:

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(); } 

It reads all images from a folder and displays video from them.

If you want to make it more enjoyable, you can probably read the image sizes instead of hard coding, but you got the point.

+1
source

All Articles