Converting a Dicom file to a jpeg or video file using dicom2jpeg and FFMpeg

By on Sep 20, 2011 in Resources |

This article explains how to use dicom2jpeg and ffmpeg to convert a dicom file to a flash movie, suitable for streaming from a website. dicom2jpeg is an application distributed with Imebra (look in the examples folder), while ffmpeg is an open source application downloadable from here or here (windows). dicom2jpeg can convert a dicom file to one or more jpeg images, while FFMpeg is able to produce a movie (mpeg, flash and other) from a series of images. Combining them together allows us to convert a dicom file to a movie. The version 0.0.45 of Imebra introduced a new feature to dicom2jpeg that makes it able to call directly ffmpeg with the automatic setting of few key options (like the frame rate). In order to conver a dicom file to a flash movie, open a command line terminal and type: dicom2jpeg pathToDicomFile pathToOutputImage -ffmpeg pathToFfmpeg pathToMovieFile where:...