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!
Extract mpeg4 from DICOM object
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Extract mpeg4 from DICOM object
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).
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).
Who is online
Users browsing this forum: No registered users and 1 guest