Extract mpeg4 from DICOM object

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
rullbandspelare
Posts: 18
Joined: Fri, 2005-12-09, 11:40

Extract mpeg4 from DICOM object

#1 Post by rullbandspelare »

Hi!
I am using:
c:\dcmdump.exe +P 7fe0,0010 .\media\mpeg4.dcm +W .\images

This results in two files mpeg4.dcm.0.raw and mpeg4.dcm.1.raw where one is 0bytes long and the other (...1.raw) is playable in Vlc as mp4.
(7fe0,0010) OB (PixelSequence #=2) # u/l, 1 PixelData
(fffe,e000) pi =.\images\mpeg4.dcm.0.raw # 0, 1 Item
(fffe,e000) pi =.\images\mpeg4.dcm.1.raw # 211977026, 1 Item
(fffe,e0dd) na (SequenceDelimitationItem) # 0, 0 SequenceDelimitationItem

1. Is it possible to extract it as .mp4 extension directly
2. is it possible to extract only the second sequence as it is the one with mp4 content. Or skip Zerolength file.
3. What is the fastest way to extract the mpeg4 video from a DICOM file? Am I using the correct tool and is there switch to speed it up?

Thanks!

J. Riesmeier
DCMTK Developer
Posts: 2505
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Extract mpeg4 from DICOM object

#2 Post by J. Riesmeier »

Re. 1: Not with dcmdump (at least not directly). Of course, you could write a little script that calls dcmdump and renames the file.
Re. 2: Not with dcmdump. The first item contains the Basic Offset Table, which is always empty for MPEG-compressed pixel data.
Re. 3: I personally would recommend to write your own little tool based on the DCMTK (or the dcmdata module to be more specific).

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest