Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st March 2018, 21:14   #501  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: UK
Posts: 2,264
When h265 HDR clip is properly encoded then HDR metadata should be present at every GOP. Some old clips made with x265 may not follow this rule. Current (few months old) x265 has this fixed and adds HDR metadata every GOP by default.
kolak is offline   Reply With Quote
Old 31st March 2018, 21:46   #502  |  Link
Revan654
Registered User
 
Join Date: May 2004
Posts: 5
Quote:
Originally Posted by shekh View Post
Thanks. Following Revan654 question I was thinking what can be done with metadata capture. Because it can be a sequence of unrelated clips it must be possible to preserve variable metadata (per scene) despite its static nature. The fact that it is included per GOP helps this idea.

After allot of research, some things I've come up with. This should help. Atlease a starting point.

Shaders looks to be where color space is refined at. Which needs to add BT.2020 to it.


Review source Code(The Original Virtual).

I cam across this: AVIStreamHeader_fixedhdr in the AVIReadHandler.cpp

I have no idea what this means Since I don't understand C Programming.


More noting HDR:

Quote:
if (hdr.biWidth != mWidth || hdr.biHeight != mHeight)
return false;

const VDAVIBitmapInfoHeader& hdr = *(const VDAVIBitmapInfoHeader *)format;

if (hdr.biWidth != mWidth || hdr.biHeight != mHeight)
return false;

int pxformat = VDBitmapFormatToPixmapFormat(hdr);

return QueryTargetFormat(pxformat);

bool VDVideoDecompressorDIB::SetTargetFormat(const void *format) {
const VDAVIBitmapInfoHeader& hdr = *(const VDAVIBitmapInfoHeader *)format;

if (hdr.biWidth != mWidth || hdr.biHeight != mHeight)
return false;

int variant;
int pxformat = VDBitmapFormatToPixmapFormat(hdr, variant);
if (!pxformat)
return false;
There allot more with HDR in the file, It's all from VideoSource.cpp file.


Also BlackMagic SDK seems to have HDR and Color Space. Maybe that would help speed things up with HDR aspect? Magewell SDK is being released in one to two weeks time.


Some Free Source code Color/ Shaders which has BT.2020 in them already.

Link: https://github.com/Microsoft/DirectX...eUtility.hlsli

VDub Filter for BT.2020: https://github.com/jpsdr/Filtres_JPS...orSpaceConvert

Here are allot of Links talking about the MetaData and HDR:

https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 2 (Color Space) : https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 3(Setting HDR): https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 3 (Defining HDR) : https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 4(HDR Structure): https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

Link 5 Wide Range: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Revan654 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.