Hey guys,
I'm using an IMediaWriter to encode a sequence of images to a video. It's working perfectly fine, but I'm wondering if there's any possibility of computing the output video length with given frameTimeStep. In fact:
IMediaWriter encoder;
int frameTimeStep = 25;
int currFrameTime = 0;
encoder = ToolFactory.makeWriter(destinationFile);
encoder.addVideoStream(0, 0, width, height);
for (image img : sequenceOfImages) {
currFrameTime += frameTimeStep
encoder.encodeVideo(0, img, currFrameTime, TimeUnit.MILLISECONDS);
}
encoder.close();
(That's not exactly how the implementation actually is, but I think you'll get the point.)
I'd like to know, given the frameTimeStep, how long is the output video going to be? Obviously the length is independent from the numbers of images which are encoded, but the greater frameTimeStep the longer the video.
Thanks and best wishes,
furby