avi to bitmaps interval?

Topics: User Forum
Mar 25, 2011 at 2:39 PM

I want to convert an avi-file to bitmaps, I want to make jpegs for every frame (25 jpegs/sec)

I'm using this structure:

          using (ITimeline timeline = new DefaultTimeline(25))
                          timeline.AddVideoGroup(24, 720, 576).AddTrack(); // we want 720x576 24bpp sized images
                          timeline.AddVideo("E:\\vatten 17.avi"); // 24 seconds video clip
                          List<double>thresholds = new List<double>() ;

                          for (i = 0; i < 1000; i++)
                         ImagesToDiskParticipant participant = new ImagesToDiskParticipant(24, 720, 576, "E:\\Bitmap", thresholds.ToArray());
                         using (Splicer.Renderer.NullRenderer render=new Splicer.Renderer.NullRenderer(timeline, null, new ICallbackParticipant[] { participant }))

This produce one jpeg for every second but I want jpegs for every frame (25 jpegs/sec)

Where (and how) can I set the sampletime, (duration between the samples)??

/  Willy



Mar 23, 2012 at 8:20 AM

Hey there. I am using the exact same code and facing the same issue that i need to increase the frames per sec and currently its only taking one 1jpeg/sec. If you hav found a solution to your problem can u mail me please @ shivin.saxena@gmail.com. Looking forward to hearing from you. Thank You.