img2dcm

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jerzy_cz
Posts: 25
Joined: Mon, 2007-10-22, 14:59
Location: Poznan, Poland

img2dcm

#1 Post by jerzy_cz »

Hello, I'm currently evaluating img2dcm from your CVS snapshot. With some effort I managed do compile it with Borland. I have a question: what could I do to write MPEG plug-in and create DICOM file with MPEG2MainProfile(at)MainLevel transfer syntax? I have information for required tags and mpeg file.

jerzy_cz
Posts: 25
Joined: Mon, 2007-10-22, 14:59
Location: Poznan, Poland

#2 Post by jerzy_cz »

I was able to create a very simple i2dmpgs plug-in for img2dcm. It just add mpeg stream to a DICOM file, with proper transfer syntax and photometric interpretation. Mpeg file specific tags are appended through command line, co calling looks like:
img2dcm milek.mpg milek.dcm -i MPEG -v -d -k SOPClassUID=1.2.840.10008.5.1.4.1.1.77.1.2.1 -k Modality=GM -k 0028,0010=240 -k 0028,0011=320 -k 0018,0040=29 -k 0018,1063=33.36 -k 0028,0008=179 -k 0028,0009=(0018,1063)
I guess I should look for some open source mpeg-parsing library to extract specific information and add them inside application.
Is there a plan for an official mpeg support for img2dcm?

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#3 Post by Jörg Riesmeier »

I guess I should look for some open source mpeg-parsing library to extract specific information and add them inside application.
A couple of years ago, we had a closer look to "ffmpeg" ...
Is there a plan for an official mpeg support for img2dcm?
No, there are currently no plans to include MPEG support (i.e. compression and decompression) into the DCMTK. However, this does not mean that this will not change in the future :-)

jerzy_cz
Posts: 25
Joined: Mon, 2007-10-22, 14:59
Location: Poznan, Poland

#4 Post by jerzy_cz »

A couple of years ago, we had a closer look to "ffmpeg" ...
That is exactly what I was looking for, thanks. I did it in a not an elegant way, but it works for me: img2dcm executes command line version of ffmpeg. Ffmpeg reads mpeg parmaters from file, and transcode other video files to mpeg2 when neccesary.

tkoninck
Posts: 3
Joined: Thu, 2006-12-21, 10:44

#5 Post by tkoninck »

Hi Jerzy,

I was wondering what was the final status on your mpeg to dicom experiments? I'm relatively experienced with ffmpeg and its internals, but I'm not over-familiar with dicom. Is there any chance you can share your findings, or provide some code snippets? Thanks beforehand!

If required, or more appropriate, feel free to take this message offline and email me at Thomas.Koninckx@gmail.com

Bye
Thomas

jerzy_cz
Posts: 25
Joined: Mon, 2007-10-22, 14:59
Location: Poznan, Poland

#6 Post by jerzy_cz »

No problem, I will send you my modifations by e-mail. For now, it's only an experiment.
with greetings
Jerzy

Post Reply

Who is online

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