<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Mathieu,<br>    Thanks for reply. We hope we have to get something useful for the GDCM/VTK community.<br><br>Regarding ffmpeg/vtk, I think they use ffmpeg in VTK just for writing avi video on non-windows platform but not for display videos. Actually vtk has vtkwin32videosource but it only grabs frames from a capture video not from external file. So I hope I can change vtkWin32Videosource to grab from the external dicom file using the GDCM. <br>  I think GDCM read the multiframe dicom all at once. So we need to figure out how to read the frame on demand (e.g an event)<br><br>Best regards,<br>Ahmed Saad<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size:
 12pt;">----- Original Message ----<br>From: Mathieu Malaterre <mathieu.malaterre@gmail.com><br>To: ahmed saad <ahmedalysaad2004@yahoo.com><br>Cc: dcmlib@creatis.insa-lyon.fr<br>Sent: Saturday, August 18, 2007 12:26:44 AM<br>Subject: Re: [Dcmlib] multiframe streaming<br><br><div>Hi Ahmed,<br><br>  That look pretty cool, is this a student project ?<br>  My guess is that the easiest solution for you would be to reuse<br>ffmpeg approach (GPL license). They divide their code into the codec<br>and the file format. For the file format you simply have to use gdcm<br>code into the ffmpeg framework. And for the codec, it will depend on<br>your code, for mpeg2, reuse the ffmpeg one, for raw image, I am pretty<br>sure they have something already.<br>  Once this part is done, VTK CVS has a ffmpeg bridge, so this part<br>should be transparent (hopefully).<br><br>  Subscribe to ffmpeg mailing list and start from
 there. There code<br>base is very readable (if you skip all the crazy optimization<br>details).<br><br>HTH<br>-Mathieu<br><br>On 8/18/07, ahmed saad <ahmedalysaad2004@yahoo.com> wrote:<br>><br>> Hello,<br>>     I'm new to GDCM from VTK/ITK background. I would like to implement a<br>> simple multi-frame dicom viewer so you can play it as a video (e.g. for<br>> cardiology applications).<br>>     Multi-frame dicom loops might be large. So a streaming frames on demand<br>> might be a solution instead of loading the whole loop on memory.<br>>     Is there any hint to do that in GDCM and vtk.<br>> Best regards,<br>> Ahmed<br>><br>>  ________________________________<br>> Shape Yahoo! in your own image. Join our Network Research Panel today!<br>> _______________________________________________<br>> Dcmlib mailing list<br>>
 Dcmlib@creatis.insa-lyon.fr<br>> <a target="_blank" href="http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib">http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib</a><br>><br><br><br>-- <br>Mathieu<br></div></div><br></div></div><br>
      <hr size=1>Fussy? Opinionated? Impossible to please? Perfect.  <a href="http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ">Join Yahoo!'s user panel</a> and lay it on us.
</body></html>