<div class="gmail_quote">On Tue, Jan 26, 2010 at 9:42 AM, Kevin H. Hobbs <span dir="ltr">&lt;<a href="mailto:hobbsk@ohiou.edu">hobbsk@ohiou.edu</a>&gt;</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>
&gt; Hello,<br>
&gt;<br>
&gt; Thank you very much for your answer.<br>
&gt;<br>
&gt; I&#39;m using XP as operating system and C++/Qt   for development.<br>
&gt;<br>
&gt; I want to produce an MPEG file that can be read by a video player like Windows Media Player.<br>
&gt;<br>
&gt; I want to use a stack of JPEG  images as input and having as output a MPEG file<br>
&gt;<br>
&gt; Stack of JPEG  images  --------------- &gt;  X ---------------------&gt; MPEG file as output.<br>
&gt;<br>
&gt; I want to avoid the use of an external program because I want to integrate the process of transformation in my project.<br>
&gt;<br>
&gt; Thank you in advance<br>
&gt;<br>
&gt; --<br>
<br>
</div>You may find the documentation for the vtkGenericMovieWriter class and<br>
it&#39;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&#39;t test this as I&#39;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&#39;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>