<div class="gmail_quote">On Tue, Jan 26, 2010 at 9:42 AM, Kevin H. Hobbs <span dir="ltr"><<a href="mailto:hobbsk@ohiou.edu">hobbsk@ohiou.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 01/26/2010 08:19 AM, Fireman Fireman wrote:<br>
> Hello,<br>
><br>
> Thank you very much for your answer.<br>
><br>
> I'm using XP as operating system and C++/Qt for development.<br>
><br>
> I want to produce an MPEG file that can be read by a video player like Windows Media Player.<br>
><br>
> I want to use a stack of JPEG images as input and having as output a MPEG file<br>
><br>
> Stack of JPEG images --------------- > X ---------------------> MPEG file as output.<br>
><br>
> I want to avoid the use of an external program because I want to integrate the process of transformation in my project.<br>
><br>
> Thank you in advance<br>
><br>
> --<br>
<br>
</div>You may find the documentation for the vtkGenericMovieWriter class and<br>
it's subclasses useful. They can be found here :<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkGenericMovieWriter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkGenericMovieWriter.html</a><br>
<br>
Using the MPEG2 writer class requires extra work on your part when VTK<br>
is compiled so you may find it easier to use the AVIWriter class which<br>
is available on windows builds of VTK.<br>
<br>
Since I always just write image files to disk with and encode them to a<br>
movie file later, I can not help you with these classes.<br>
<br>
<br><br></blockquote><div><br></div><div>Fireman,</div><div> </div><div>I can't test this as I'm not on Windows, but looking at the test for this class, it looks like something like this may work:</div><div><br></div>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Video/AVI">http://www.vtk.org/Wiki/VTK/Examples/Video/AVI</a></div><div class="gmail_quote"><br></div><div class="gmail_quote">I use mencoder like Kevin mentioned, so I've never tried anything like this in VTK before.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Let us know if you try it and if it works.</div><div class="gmail_quote"><br clear="all">Thanks,<br><br>David</div>