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 > New and alternative a/v containers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th November 2015, 02:33   #1461  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
I can't get the source to compile in VS2012.

At first if complains that hmac.h is missing, so I found that file and added the directory to the include list, then it complains that "unresolved external symbol _hmac_sha | C:\Projects\MediaInfo\MediaInfoLib\Project\MSVC2012\Dll\MediaInfo.lib(Reader_libcurl.obj) | MediaInfoDll"

Anyway, I'm pretty sure all you'd have to do to fix part of the Matroska Tags issue is to, in file_mk.cpp, replace this line

Code:
if (Retrieve((stream_t)StreamKind, StreamPos, General_ID)==ID)
http://sourceforge.net/p/mediainfo/c...e_Mk.cpp#l2182
https://github.com/MediaArea/MediaIn...e_Mk.cpp#L2181

with

Code:
if (Retrieve((stream_t)StreamKind, StreamPos, General_UniqueID)==ID)
Then, as and addition, replace this

Code:
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("BPS")) return; //Useless
http://sourceforge.net/p/mediainfo/c...e_Mk.cpp#l2147
https://github.com/MediaArea/MediaIn...e_Mk.cpp#L2146

with this:

Code:
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_WRITING_APP")) return; //Useless
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_WRITING_DATE_UTC")) return; //Useless
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_TAGS")) return; //Useless

(It doesn't check to see if they're in the correct file, but it's better than what's happening now. I can't tell if all the tags have been read by that point or how to iterate through them and compare them to the headers.)

I can't compile it to check.


-edit-

This would be even better (I think)

Code:
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("BPS")) {Segment_Tag_SimpleTag_TagNames[0]=__T("*Bit rate"); TagString.append(__T(" bps"));}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("DURATION")) {Segment_Tag_SimpleTag_TagNames[0]=__T("*Track duration/(HH:MM:SS.NNNNNNNNN");}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("NUMBER_OF_FRAMES")) {Segment_Tag_SimpleTag_TagNames[0]=__T("*Track size/(Frames)");}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("NUMBER_OF_BYTES")) {Segment_Tag_SimpleTag_TagNames[0]=__T("*Track size/(Bytes)");}

    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_WRITING_APP")) return; //Useless
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_WRITING_DATE_UTC")) return; //Useless
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_TAGS")) return; //Useless

Last edited by ndjamena; 8th November 2015 at 03:43.
ndjamena is offline   Reply With Quote
Old 8th November 2015, 11:18   #1462  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
How's this:

https://github.com/MediaArea/MediaIn...le_Mk.cpp#L385

Code:
		//Tags
		bool Tags_Verified=false; 
		Ztring TagsList=Retrieve(Temp->second.StreamKind, Temp->second.StreamPos, "Security Tags List", Info_Text);
		if (!TagsList.empty())
		{
			Clear(Temp->second.StreamKind, Temp->second.StreamPos, "Security Tags List");
			Ztring WritingApp=Retrieve(Temp->second.StreamKind, Temp->second.StreamPos, "Security Writing Application", Info_Text);
			Ztring WritingDate=Retrieve(Temp->second.StreamKind, Temp->second.StreamPos, "Security Writing Date", Info_Text);
			if ((!WritingApp.compare(Retrieve(Stream_General, 0, "Encoded_Application", Info_Text))) && (!WritingDate.compare(Retrieve(Stream_General, 0, "Encoded_Date", Info_Text))))
				{ Fill(Temp->second.StreamKind, Temp->second.StreamPos, "*Statistics Tags Varified", "True");  Tags_Verified=true; }
			else
				Fill(Temp->second.StreamKind, Temp->second.StreamPos, "*Statistics Tags Varified", "False");
			Clear(Temp->second.StreamKind, Temp->second.StreamPos, "Security Writing Application");
			Clear(Temp->second.StreamKind, Temp->second.StreamPos, "Security Writing Date");
			Ztring::iterator Back = TagsList.begin();
			Ztring TempTag;
			while (true)
			{
				if ((Back == TagsList.end()) || (*Back == ' ') || (*Back == '\0'))
				{
					if (TempTag == __T("BPS")) { TempTag = __T("Bit rate"); }
					else if (TempTag == __T("DURATION")) { TempTag = __T("Track Duration/(HH:MM:SS.NNNNNNNNN)"); }
					else if (TempTag == __T("NUMBER_OF_FRAMES")) { TempTag = __T("Track Size/(Frames)"); }
					else if (TempTag == __T("NUMBER_OF_BYTES")) { TempTag = __T("Track Size/(Bytes)"); }
					Ztring TagValue = Retrieve(Temp->second.StreamKind, Temp->second.StreamPos, TempTag.To_Local().c_str(), Info_Text);
					if (!TagValue.empty())
					{
						Clear(Temp->second.StreamKind, Temp->second.StreamPos, TempTag.To_Local().c_str());
						Fill(Temp->second.StreamKind, Temp->second.StreamPos, __T('*') + TempTag.To_Local().c_str(), TagValue.To_Local().c_str());
					}
					if (Back == TagsList.end()) break;
					TempTag.clear();
				}
				else
					TempTag+=*Back;
				Back++;
			}
		}
https://github.com/MediaArea/MediaIn...e_Mk.cpp#L2146

Code:
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("BPS")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Bit rate"); TagString.append(__T(" bps"));}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("DURATION")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Track Duration/(HH:MM:SS.NNNNNNNNN)");}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("NUMBER_OF_FRAMES")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Track Size/(Frames)");}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("NUMBER_OF_BYTES")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Track Size/(Bytes)");}

    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_WRITING_APP")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Security Writing Application");}
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_WRITING_DATE_UTC")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Security Writing Date"); TagString.insert(0, __T("UTC ")); }
    if (Segment_Tag_SimpleTag_TagNames[0]==__T("_STATISTICS_TAGS")) {Segment_Tag_SimpleTag_TagNames[0]=__T("Security Tags List");}

Last edited by ndjamena; 9th November 2015 at 04:30.
ndjamena is offline   Reply With Quote
Old 8th November 2015, 15:17   #1463  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
I moved the tag processing up to the top of File_MK.cpp | File_Mk::Streams_Finish() so I could try to set the tag duration as a proper duration. I have no idea if the code will work though.

Code:
			Ztring Duration_Temp, Codec_Temp;

			if (Tags_Verified)
			{
				Duration_Temp = Retrieve(Temp->second.StreamKind, Temp->second.StreamPos, "*Track Duration/(HH:MM:SS.NNNNNNNNN)", Info_Text);
				if (!Duration_Temp.empty())
				{
					Ztring::iterator Front = Duration_Temp.begin();
					Ztring Parts [4];
					int CountParts = 0;
					while (true)
					{
						if (Front == Duration_Temp.end() || *Front == __T(':') || *Front == __T('.'))
						{
							CountParts++;
							if (Front==Duration_Temp.end() || CountParts == 4) break;
						}
						else if (isdigit(*Front))
							Parts[CountParts]+=*Front;
						Front++;
					}
					if (CountParts == 4)
					{
						int64u Hours = Parts[0].To_int64u(10);
						int64u Minutes = Parts[1].To_int64u(10);
						int64u Seconds = Parts[2].To_int64u(10);
						Parts[3] = Parts[3].substr(0, 3);
						int64u Milliseconds = Parts[3].To_int64u(10);
								
						Duration_Temp.From_Number((((Hours * 3600) + (Minutes * 60) + Seconds) * 1000) + Milliseconds, 10);
						//Fill(StreamKind_Last, StreamPos_Last, Fill_Parameter(StreamKind_Last, Generic_Duration), Duration_Temp, true);
						//Clear(Temp->second.StreamKind, Temp->second.StreamPos, "*Track Duration/(HH:MM:SS.NNNNNNNNN)");
					}
					else Duration_Temp.clear();
				}
			}
			if (Duration_Temp.empty())
				Duration_Temp=Retrieve(StreamKind_Last, Temp->second.StreamPos, Fill_Parameter(StreamKind_Last, Generic_Duration)); //Duration from stream is sometimes false
I had to move the declaration of the tag verification Boolean outside of my if statement...

...

...

Am I missing a library somewhere or is hmac.h not actually supposed to be included?

I really want this tag business done with.

Last edited by ndjamena; 9th November 2015 at 06:56.
ndjamena is offline   Reply With Quote
Old 8th November 2015, 21:38   #1464  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
How are you building it? Only the MSVC 2013 project is kept up to date, which has it in the MediaInfoLib project under ThirdParty/hmac, so it should always be built with the rest of the lib. Don't use the older projects unless you regenerate them from cmake first. The GNU project is also kept up to date if you use mingw/gcc.
foxyshadis is offline   Reply With Quote
Old 8th November 2015, 22:49   #1465  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by ndjamena View Post
I can't get the source to compile in VS2012.
I forgot to update it when I added HMAC support.
Fixed

Quote:
Originally Posted by ndjamena View Post
I really want this tag business done with.
I take it, but copy/paste of code is not ideal (actually it is super difficult to understand the goal of the patch). Is it possible to fork, commit the code on your repo then do a pull request on GitHub? so we can discuss with the code directly and you can get comments directly on modified lines.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 8th November 2015, 23:03   #1466  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by foxyshadis View Post
Only the MSVC 2013 project is kept up to date
This was not intentional.
But I definitely can not support indefinitely all MSVC versions, so I just trashed MSVC 2005 / 2008 / 2010 projects.
I plan to keep MSVC 2012 and 2013 projects, and also propose soon MSVC 2015 project.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 8th November 2015, 23:45   #1467  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Actually all MSVC versions since VS2010 use the same Project file format. So you can just keep the VS2013 project up-to-date and still open it in VS2010/VS2012.

In my experience, VS2010 or VS2012 will complain that it doesn't support toolset "v120" when you open the VS2013 project, but you can easily fix that by changing the toolset to "v100" or "vs110" as needed. The rest usually works fine.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 8th November 2015 at 23:47.
LoRd_MuldeR is offline   Reply With Quote
Old 9th November 2015, 00:33   #1468  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
https://mediaarea.net/en/MediaInfo/S...nicodeControls

This link doesn't go anywhere...
ndjamena is offline   Reply With Quote
Old 9th November 2015, 04:39   #1469  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
Looky, a Matroska file with streams of different length!

Code:
General
Unique ID                                : 186503756937573924653882743356120778548 (0x8C4F512865F76243A09179B2D1FE4734)
Complete name                            : D:\Make\Test.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 259 MiB
Duration                                 : 22mn 49s
Overall bit rate                         : 1 584 Kbps
Encoded date                             : UTC 2015-11-09 03:36:45
Writing application                      : mkvmerge v8.5.1 ('Where you lead I will follow') 64bit
Writing library                          : libebml v1.3.3 + libmatroska v1.4.4

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 22mn 49s
Bit rate                                 : 1 548 Kbps
Width                                    : 628 pixels
Height                                   : 474 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.217
Stream size                              : 253 MiB (98%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
*Statistics Tags Varified                : True
*Track Duration/(HH:MM:SS.NNNNNNNNN)     : 00:22:49.828000000

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 5mn 2s
Bit rate                                 : 152 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 5.49 MiB (2%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
*Statistics Tags Varified                : True
*Track Duration/(HH:MM:SS.NNNNNNNNN)     : 00:05:02.976000000

Last edited by ndjamena; 9th November 2015 at 05:40.
ndjamena is offline   Reply With Quote
Old 9th November 2015, 10:44   #1470  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
Bah! It's still showing 'unknown' for the DTS-MA bitrate. That must be hardcoded somewhere else!!!!!
ndjamena is offline   Reply With Quote
Old 9th November 2015, 11:16   #1471  |  Link
Teebeeke
Registered User
 
Join Date: Jun 2005
Posts: 36
Hi,

am trying to use mediainfo to import file information, but i can't seem to get the right code for height and width of a moviefile.

these work fine:

Dim temp_FileName As String = MI.Get_(StreamKind.General, 0, "FileName")
Dim temp_FileSize As String = MI.Get_(StreamKind.General, 0, "FileSize")
Dim temp_FileOverallBitRate As Decimal = MI.Get_(StreamKind.General, 0, "OverallBitRate")
Dim temp_FileDuration As Integer = MI.Get_(StreamKind.General, 0, "Duration")

but here i kinda am lost when i want height / width

Dim temp_Filewidth1 As String = MI.Get_(StreamKind.General, 0, "Width_Original")

Dim temp_FileWidth2 As String = MI.Get_(StreamKind.Video, 0, "Width")

Dim temp_FileWidth3 As String = MI.Get_(StreamKind.Video, 1, "Width_Original")

Dim temp_FileWidth4 As String = MI.Get_(StreamKind.Video, 0, "Width/string")

Dim temp_FileWidth5 As String = MI.Get_(StreamKind.Video, 1, "Width/string")


i'm a bit confused, where am i going wrong? (hope someone can/will help)


file info:

PHP Code:
General
UniqueID
/String                  262114971647940602408317479032599003676 (0xC53181DCE616FD46A51C09EE1152C21C)
CompleteName                     D:\testfile.hevc.x265.mkv
Format                           
Matroska
Format_Version                   
Version 4 Version 2
FileSize
/String                  262 MiB
Duration
/String                  55mn 1s
OverallBitRate
/String            666 Kbps
Movie                            
Test File made for testing mediainfo import
Encoded_Application
/String       Lavf56.40.101
Encoded_Library
/String           Lavf56.40.101
DESCRIPTION                      
testfile

Video
ID
/String                        1
Format                           
HEVC
Format
/Info                      High Efficiency Video Coding
Format_Profile                   
Main@L3.1@Main
CodecID                          
V_MPEGH/ISO/HEVC
Width
/String                     1 280 pixels
Height
/String                    720 pixels
DisplayAspectRatio
/String        16:9
FrameRate_Mode
/String            Variable
FrameRate_Original
/String        23.976 fps
ColorSpace                       
YUV
ChromaSubsampling                
4:2:0
BitDepth
/String                  8 bits
Encoded_Library
/String           x265 1.7+399-cbdefdfca877:[Linux][GCC 4.9.3][64 bit8bit
Encoded_Library_Settings         
deleted (too big)
Default/
String                   Yes
Forced
/String                    No
DURATION                         
00:55:01.736000000

Audio
ID
/String                        2
Format                           
AAC
Format
/Info                      Advanced Audio Codec
Format_Profile                   
LC
CodecID                          
A_AAC
Duration
/String                  55mn 1s
Channel
(s)/String                2 channels
ChannelPositions                 
FrontL R
SamplingRate
/String              48.0 KHz
Compression_Mode
/String          Lossy
Encoded_Library
/String           Lavc56.57.100 aac
Default/String                   Yes
Forced
/String                    No
DURATION                         
00:55:01.749000000 
Teebeeke is offline   Reply With Quote
Old 9th November 2015, 11:27   #1472  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by Teebeeke View Post
but here i kinda am lost when i want height / width
You don't say why you are lost: no result or no knowledge of which field is good for you.

for 99% of people, MI.Get_(StreamKind.Video, 0, "Width") is the only one needed.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 9th November 2015, 11:36   #1473  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
InString = MI.Get(Stream_Video, a, L"Width_Original", Info_Text);
if (InString.empty())
{
InString = MI.Get(Stream_Video, a, L"Width", Info_Text);
}
ndjamena is offline   Reply With Quote
Old 9th November 2015, 11:45   #1474  |  Link
Teebeeke
Registered User
 
Join Date: Jun 2005
Posts: 36
using .net (VS2012)

When i use MI.Get_(StreamKind.Video, 0, "Width") it doesnt give me a result, it stays empty.
Attached Images
 

Last edited by Teebeeke; 9th November 2015 at 12:10.
Teebeeke is offline   Reply With Quote
Old 9th November 2015, 12:17   #1475  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by ndjamena View Post
Bah! It's still showing 'unknown' for the DTS-MA bitrate. That must be hardcoded somewhere else!!!!!
It is also filled by the DTS parser, and I guess there is a conflict between parsers.

I don't have a file with DTS-HD and statistic tags, please provide one.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 10th November 2015, 06:48   #1476  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Quote:
Originally Posted by Teebeeke View Post
using .net (VS2012)

When i use MI.Get_(StreamKind.Video, 0, "Width") it doesnt give me a result, it stays empty.
MediaInfo can parse the width out of mkv, but not raw HEVC. Your file name shows you running it against the raw, not the muxed file.

Edit: Actually, I take that back, it looks like MediaInfo should be able to run against raw HEVC too now. What file format is your test file being detected as?

Last edited by foxyshadis; 10th November 2015 at 06:51.
foxyshadis is offline   Reply With Quote
Old 10th November 2015, 09:28   #1477  |  Link
Teebeeke
Registered User
 
Join Date: Jun 2005
Posts: 36
This is all the information i get:

Format : HEVC
Format/Info : High Efficiency Video Coding
Format/Url : http://www.itu.int
Commercial name : HEVC
Format profile : Main@L3.1
Internet media type : video/H265
Codec ID : V_MPEGH/ISO/HEVC
Codec : V_MPEGH/ISO/HEVC
Codec : V_MPEGH/ISO/HEVC
Codec profile : Main@L3.1


PHP Code:
Open


Inform with Complete
=true
General
Count                                    
285
Count of stream of this kind             
1
Kind of stream                           
General
Kind of stream                           
General
Stream identifier                        
0
Unique ID                                
262114971647940602408317479032599003676
Unique ID                                
262114971647940602408317479032599003676 (0xC53181DCE616FD46A51C09EE1152C21C)
Count of video streams                   1
Count of audio streams                   
1
Video_Format_List                        
HEVC
Video_Format_WithHint_List               
HEVC
Codecs Video                             
V_MPEGH/ISO/HEVC
Video_Language_List                      
English
Audio_Format_List                        
AAC
Audio_Format_WithHint_List               
AAC
Audio codecs                             
AAC LC
Complete name                            
D:\testfile.hevc.x265.mkv
Folder name                              
D:
File name                                testfile.hevc.x265
File extension                           
mkv
Format                                   
Matroska
Format                                   
Matroska
Format
/Url                               http://packs.matroska.org/
Format/Extensions usually used           mkv mk3d mka mks
Commercial name                          
Matroska
Format version                           
Version 4 Version 2
Codec                                    
Matroska
Codec                                    
Matroska
Codec
/Url                                http://packs.matroska.org/
Codec/Extensions usually used            mkv mk3d mka mks
File size                                
274728718
File size                                
262 MiB
File size                                
262 MiB
File size                                
262 MiB
File size                                
262 MiB
File size                                
262.0 MiB
Duration                                 
3301749
Duration                                 
55mn 1s
Duration                                 
55mn 1s 749ms
Duration                                 
55mn 1s
Duration                                 
00:55:01.749
Overall bit rate                         
665656
Overall bit rate                         
666 Kbps
Title                                    
testfile.hevc.x265
Movie name                               
testfile.hevc.x265.mkv
File creation date                       
UTC 2015-11-09 08:53:25.743
File creation date 
(local)               : 2015-11-09 09:53:25.743
File last modification date              
UTC 2015-11-09 08:55:38.124
File last modification date 
(local)      : 2015-11-09 09:55:38.124
Writing application                      
Lavf56.40.101
Writing library                          
Lavf56.40.101
Writing library                          
Lavf56.40.101
DESCRIPTION                              
Testfile

Video
Count                                    
278
Count of stream of this kind             
1
Kind of stream                           
Video
Kind of stream                           
Video
Stream identifier                        
0
StreamOrder                              
0
ID                                       
1
ID                                       
1
Unique ID                                
1
Format                                   
HEVC
Format
/Info                              High Efficiency Video Coding
Format
/Url                               http://www.itu.int
Commercial name                          HEVC
Format profile                           
Main@L3.1
Internet media type                      
video/H265
Codec ID                                 
V_MPEGH/ISO/HEVC
Codec                                    
V_MPEGH/ISO/HEVC
Codec                                    
V_MPEGH/ISO/HEVC
Codec profile                            
Main@L3.1
Width                                    
1280
Width                                    
1 280 pixels
Height                                   
720
Height                                   
720 pixels
Pixel aspect ratio                       
1.000
Display aspect ratio                     
1.778
Display aspect ratio                     
16:9
Frame rate mode                          
VFR
Frame rate mode                          
Variable
Original frame rate                      
23.976
Original frame rate                      
23.976 fps
Resolution                               
8
Resolution                               
8 bits
Colorimetry                              
4:2:0
Color space                              
YUV
Chroma subsampling                       
4:2:0
Bit depth                                
8
Bit depth                                
8 bits
Delay                                    
0
Delay                                    
00:00:00.000
Delay
origin                            Container
Delay
origin                            Container
Writing library                          
Lavc56.57.100 libx265
Writing library                          
Lavc56.57.100 libx265
Language                                 
en
Language                                 
English
Language                                 
English
Language                                 
en
Language                                 
eng
Language                                 
en
Default                                  : Yes
Default                                  : Yes
Forced                                   
No
Forced                                   
No
DURATION                                 
00:55:01.736000000

Audio
Count                                    
223
Count of stream of this kind             
1
Kind of stream                           
Audio
Kind of stream                           
Audio
Stream identifier                        
0
StreamOrder                              
1
ID                                       
2
ID                                       
2
Unique ID                                
2
Format                                   
AAC
Format
/Info                              Advanced Audio Codec
Commercial name                          
AAC
Format profile                           
LC
Format settings
SBR                     No (Explicit)
Format settingsSBR                     No (Explicit)
Codec ID                                 A_AAC
Codec                                    
AAC LC
Codec                                    
AAC LC
Codec
/Family                             AAC
Duration                                 
3301749
Duration                                 
55mn 1s
Duration                                 
55mn 1s 749ms
Duration                                 
55mn 1s
Duration                                 
00:55:01.749
Channel
(s)                               : 2
Channel
(s)                               : 2 channels
Channel positions                        
FrontL R
Channel positions                        
2/0/0
ChannelLayout                            
L R
Sampling rate                            
48000
Sampling rate                            
48.0 KHz
Samples count                            
158483952
Resolution                               
32
Resolution                               
32 bits
Compression mode                         
Lossy
Compression mode                         
Lossy
Delay                                    
0
Delay                                    
00:00:00.000
Delay
origin                            Container
Delay
origin                            Container
Delay relative to video                  
0
Video0 delay                             
0
Writing library                          
Lavc56.57.100 aac
Writing library                          
Lavc56.57.100 aac
Default                                  : Yes
Default                                  : Yes
Forced                                   
No
Forced                                   
No
DURATION                                 
00:55:01.749000000 
Teebeeke is offline   Reply With Quote
Old 10th November 2015, 16:41   #1478  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
Quote:
Originally Posted by Teebeeke View Post
This is all the information i get:
Code:
Video
Count of stream of this kind             : 1
Kind of stream                           : Video
ID                                       : 1
Unique ID                                : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format/Url                               : http://www.itu.int
Format profile                           : Main@L3.1
Internet media type                      : video/H265
Codec ID                                 : V_MPEGH/ISO/HEVC
Codec profile                            : Main@L3.1
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate mode                          : VFR
Frame rate mode                          : Variable
Original frame rate                      : 23.976 fps
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
I wonder why the HEVC video stream has been encoded with a 'variable' frame rate
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 10th November 2015, 16:55   #1479  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by SeeMoreDigital View Post
I wonder why the HEVC video stream has been encoded with a 'variable' frame rate
VFR/CFR detection in Matroska is sometimes buggy, I would not rely too much on it. having less false positives is on the ToDo-list.

Here, the frame rate is also filled in the HEVC bitstream, I would rely more on it.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 10th November 2015, 17:00   #1480  |  Link
Teebeeke
Registered User
 
Join Date: Jun 2005
Posts: 36
But does that explain why MI.Get_(StreamKind.Video, 0, "Width") gives me 0 results?

If i use:
MI.Option_("Complete")
To_Display += MI.Inform()

which gives above info, it shows the width, but if i use MI.Get it shows no value.
Teebeeke is offline   Reply With Quote
Reply


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 20:43.


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