img2dcm
Moderator: Moderator Team
img2dcm
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.
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?
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?
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
A couple of years ago, we had a closer look to "ffmpeg" ...I guess I should look for some open source mpeg-parsing library to extract specific information and add them inside application.
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 futureIs there a plan for an official mpeg support for img2dcm?

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.A couple of years ago, we had a closer look to "ffmpeg" ...
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
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
Who is online
Users browsing this forum: Bing [Bot] and 1 guest