Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Gravity is a myth, the Earth sucks.


devel / comp.protocols.dicom / Re: Sample data set for Supplement 149 (MPEG-4 AVC/H.264 Transfer Syntax)?

SubjectAuthor
o Sample data set for Supplement 149 (MPEG-4 AVC/H.264 Transfer Syntax)?Annapurne S

1
Re: Sample data set for Supplement 149 (MPEG-4 AVC/H.264 Transfer Syntax)?

<baa56c62-796a-4252-b623-e66e4ded21e5n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=811&group=comp.protocols.dicom#811

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:622a:1b8d:b0:40f:e0dd:8050 with SMTP id bp13-20020a05622a1b8d00b0040fe0dd8050mr61122qtb.5.1693290474199;
Mon, 28 Aug 2023 23:27:54 -0700 (PDT)
X-Received: by 2002:a05:622a:1754:b0:412:2646:9995 with SMTP id
l20-20020a05622a175400b0041226469995mr206251qtk.10.1693290473953; Mon, 28 Aug
2023 23:27:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 28 Aug 2023 23:27:53 -0700 (PDT)
In-Reply-To: <d3d7a86d-cb20-4906-9a29-ba346eebd857@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=117.247.185.219; posting-account=8cWrCAoAAACXXyOpofC64ZcXXsaOpZtH
NNTP-Posting-Host: 117.247.185.219
References: <409c5968-d852-40c5-a43e-d077cb48125e@googlegroups.com>
<c8b2d5c3-7b9c-402c-a5e1-2e05f5c83043@googlegroups.com> <cc3e07a5-4040-4bf8-bb66-ba1ddcdbd7e0@googlegroups.com>
<7ec67186-f684-4a0a-9653-5370e464764f@googlegroups.com> <kfKQw.112832$lO6.73571@fx24.iad>
<9e7264df-c34b-4e45-bcc3-1c1219915628@googlegroups.com> <5742224f-0e95-42c0-bb07-869023594f00@googlegroups.com>
<2ebc924d-4147-4a2b-9bc8-d9a38cbab122@googlegroups.com> <d3d7a86d-cb20-4906-9a29-ba346eebd857@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <baa56c62-796a-4252-b623-e66e4ded21e5n@googlegroups.com>
Subject: Re: Sample data set for Supplement 149 (MPEG-4 AVC/H.264 Transfer Syntax)?
From: annapurne.s@raster.in (Annapurne S)
Injection-Date: Tue, 29 Aug 2023 06:27:54 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3108
 by: Annapurne S - Tue, 29 Aug 2023 06:27 UTC

Hello, all i am try to convert MPEG4 to dicom, but i don't know i set the pixel data in right format, because video is not playing.

This is how i read the video file from path.

std::ifstream videoStream(videoPath, std::ios::binary);
if (!videoStream)
{
std::cerr << "Error opening video file" << std::endl;
}

// Read the entire video file into a buffer
videoStream.seekg(0, std::ios::end);
std::streampos fileSize = videoStream.tellg();
videoStream.seekg(0, std::ios::beg);

std::vector<unsigned char> videoBuffer(fileSize);
char byte;
while (videoStream.read(&byte, sizeof(byte))) {
videoBuffer.push_back(byte);
}

This is the code of pixeldata,

// Create a DcmPixelData object
DcmPixelData* pixelData = new DcmPixelData(DCM_PixelData);
// Insert the pixel data element into the dataset
dataset->insert(pixelData);
// Create a DcmPixelSequence and DcmPixelItem to hold the video data
DcmPixelSequence* pixelSequence = new DcmPixelSequence(DCM_PixelData);
DcmPixelItem* pixelItem = new DcmPixelItem(DCM_PixelItemTag);
// Set pixel data in the pixel item
pixelItem->putUint8Array(videoBuffer.data(), fileSize);

// Insert the pixel item into the pixel sequence
pixelSequence->insert(pixelItem);

// Set the pixel sequence in the pixel data element
pixelData->putOriginalRepresentation(EXS_MPEG4HighProfileLevel4_1, nullptr, pixelSequence);

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor