how to convert avi file to an jpg's images array using .net

.net, c#, image, video

Solution

You can do this from the command line with ffmpeg. See this part of the documentation. For example,

ffmpeg -i infile.avi -f image2 image-%03d.jpg

will save all frames from `infile.avi` as numbered jpegs (image-001.jpg, image-002.jpg,...). You can then use other command line options to get just the frames you want or do some other post processing like resizing or deinterlacing.

You could just create a program in .NET that calls the ffmpeg executable with the right command line and moves the resulting files into the correct place. It would be much easier than trying to use some video library directly.

Problem

how to convert avi file to an jpg's images array using .net , i need to develop a task that will take the avi file and save it as jpg images on another folder

Original source