LEADTOOLS Support
Medical
Medical SDK FAQ
HOW TO: Create DICOM files with H.264 compressed video
#1
Posted
:
Friday, May 19, 2017 3:35:15 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
A demo that allows this conversion is included with the installation of the SDK and can be found in this installation location: C:\LEADTOOLS23\Examples\Multimedia\DirectShow\DotNet\ConvertDemoThis is a C# console application build with LEADTOOLS 19 in Visual Studio 2017 that illustrates how to configure the LEADTOOLS DICOM Writer filter to create a dataset with H.264 in MPEG-2 Transport. This example encodes HD video (through resizing one of the sample LEADTOOLS media files) to create an MPEG-4 AVC/H.264 BD-compatible DICOM file. The frame rate is also set with the encoder to be 29.970 fps.
The project uses a template video photography DICOM file as it's starting point. Other templates can be used such as endoscopy, but it may require other tags in the DICOM dataset.
After the video is generated, the DICOM file is updated using extension methods to set the patient information.
The code also updates the SOP instance, series instance and study instance UIDs so the generated file will be unique each time.
Note: The code is designed to be extracted and run from the following directory:
C:\LEADTOOLS 19\Examples\posts\t12193
It can be run from other locations, but some code may need to change. Specifically, you will need to update the DICOM template file path.
Also, if you have the LEADTOOLS Medical Imaging SDK and LEADTOOLS Multimedia SDK installed separately, the references may need to be updated.
Edited by moderator Wednesday, December 27, 2023 4:07:00 PM(UTC)
| Reason: Not specified
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Medical
Medical SDK FAQ
HOW TO: Create DICOM files with H.264 compressed video
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.