C# .NET - image convert to video

Asked By ashish acharya on 04-Dec-10 11:50 PM
my requierment is ,in my project camera ia capture the image milisecondswise and store the

bin folder and dynamically pick the 20 or 30 image and convert the video file.

can any one give me the best link or code so that i will be implement......


please help me ..................



Thanks

ASHISH.....
Reena Jain replied to ashish acharya on 04-Dec-10 11:59 PM
hi ashish,

here is the code for you to convert image into video

using System;
  
using System.Diagnostics;
using BytescoutImageToVideoLib;
  
namespace SimpleSlideshow
{
  
class Program
{
static void Main(string[] args)
  
{
Console.Write("Converting JPG slides into video, please wait..");
  
// Create BytescoutImageToVideoLib.ImageToVideo object instance
  
ImageToVideo converter = new ImageToVideo();
  
// Activate the component
converter.RegistrationName = "demo";
  
converter.RegistrationKey = "demo";
  
// Add images and set the duration for every slide
Slide slide;
  
slide = (Slide) converter.AddImageFromFileName("..\\..\\..\\..\\slide1.jpg");
  
slide.Duration = 3000; // 3000ms = 3s
slide = (Slide) converter.AddImageFromFileName("..\\..\\..\\..\\slide2.jpg");
  
slide.Duration = 3000;
slide = (Slide) converter.AddImageFromFileName("..\\..\\..\\..\\slide3.jpg");
  
slide.Duration = 3000;
  
// Set output video size
converter.OutputWidth = 400;
  
converter.OutputHeight = 300;
  
// Set output video file name
converter.OutputVideoFileName = "result.wmv";
  
// Run the conversion
converter.RunAndWait();
  
Console.WriteLine("Conversion is done. Press any key to continue..");
  
Console.ReadKey();
  
// Open the result video file in default media player
Process.Start("result.wmv");
  
}
}
}

hope this will help you
ashish acharya replied to Reena Jain on 05-Dec-10 12:34 AM
hi rean thanks for reply

but this program missing a DLL file BytescoutImageToVideoLib , how can i get that.

and one think this program is written console application but i need windows application
 

please help me.