[Dcmlib] multiframe streaming

Mathieu Malaterre mathieu.malaterre at gmail.com
Sun Aug 19 12:07:46 CEST 2007


Hi Ahmed,

  Shame on me, you are right the ffmpeg plugin in VTK has only writing
capability. So I guess you could copy/paste vtkWin32VideoSource to
make a vtkFFMPEGVideoSource, and then start from there.

Good luck
-Mathieu

On 8/18/07, ahmed saad <ahmedalysaad2004 at yahoo.com> wrote:
>
> Hi Mathieu,
>     Thanks for reply. We hope we have to get something useful for the
> GDCM/VTK community.
>
> 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.
>   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)
>
> Best regards,
> Ahmed Saad
>
>
>
> ----- Original Message ----
> From: Mathieu Malaterre <mathieu.malaterre at gmail.com>
> To: ahmed saad <ahmedalysaad2004 at yahoo.com>
> Cc: dcmlib at creatis.insa-lyon.fr
> Sent: Saturday, August 18, 2007 12:26:44 AM
> Subject: Re: [Dcmlib] multiframe streaming
>
> Hi Ahmed,
>
>   That look pretty cool, is this a student project ?
>   My guess is that the easiest solution for you would be to reuse
> ffmpeg approach (GPL license). They divide their code into the codec
> and the file format. For the file format you simply have to use gdcm
> code into the ffmpeg framework. And for the codec, it will depend on
> your code, for mpeg2, reuse the ffmpeg one, for raw image, I am pretty
> sure they have something already.
>   Once this part is done, VTK CVS has a ffmpeg bridge, so this part
> should be transparent (hopefully).
>
>   Subscribe to ffmpeg mailing list and start from there. There code
> base is very readable (if you skip all the crazy optimization
> details).
>
> HTH
> -Mathieu
>
> On 8/18/07, ahmed saad <ahmedalysaad2004 at yahoo.com> wrote:
> >
> > Hello,
> >     I'm new to GDCM from VTK/ITK background. I would like to implement a
> > simple multi-frame dicom viewer so you can play it as a video (e.g. for
> > cardiology applications).
> >     Multi-frame dicom loops might be large. So a streaming frames on
> demand
> > might be a solution instead of loading the whole loop on memory.
> >     Is there any hint to do that in GDCM and vtk.
> > Best regards,
> > Ahmed
> >
> >  ________________________________
> > Shape Yahoo! in your own image. Join our Network Research Panel today!
> > _______________________________________________
> > Dcmlib mailing list
> > Dcmlib at creatis.insa-lyon.fr
> > http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> >
>
>
> --
> Mathieu
>
>
>  ________________________________
> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
> and lay it on us.


-- 
Mathieu



More information about the Dcmlib mailing list