View Full Version : MediaInfo(Lib) 0.7 - Reading information about media files
vlada
25th January 2009, 11:09
Thanks a lot for your work on improving the Python bindings. I'm sorry for my late feedback, unfortunately I didn't have time to look at it before weekend. I have 2 computers with Linux. On my desktop PC with Kubuntu 8.10 x64 the latest version (0.7.9) works perfectly. Unfortunately on a notebook with Kubuntu x86 I still get segmentation fault. I installed the library from your .deb packages for Ubuntu 8.04. Do you have any idea what might be wrong?
Btw. what problems do you have with import in Python? There are 2 possibilities:
1)
import MediaInfo_Dll
MI = MediaInfo_Dll.MediaInfo()
2)
from MediaInfo_Dll import *
MI = MediaInfo()
Both methods work for me. What problems do you have?
Also in your example you use "import platform" but you don't use any function from the platform library. Maybe you used it for testing and forgot about it?
Zenitram
25th January 2009, 21:01
Unfortunately on a notebook with Kubuntu x86 I still get segmentation fault. I installed the library from your .deb packages for Ubuntu 8.04. Do you have any idea what might be wrong?
I can reproduce the bug on Ubuntu 8.10.
But this works well on CentOS 32 bits and Debian 32 bits! (64 bits not tested)
In waiting I find the origin of the problem, you can force the script to use the same interface as for the x64 build:
Change
MediaInfoDLL_Handler = CDLL("libmediainfo.so.0")
if sizeof(c_wchar_p) == 4:
MustUseAnsi = 0
-->
MediaInfoDLL_Handler = CDLL("libmediainfo.so.0")
if sizeof(c_wchar_p) == 4:
MustUseAnsi = 1
Btw. what problems do you have with import in Python? There are 2 possibilities:
Yes, this works. Forget it, I may have done something wrong before!
Also in your example you use "import platform" but you don't use any function from the platform library. Maybe you used it for testing and forgot about it?
Yes, for tests. Removed.
But I will surely re-add it soon, because I think I will add a check on Ubuntu with the help of "platform" string! (test if this is Ubuntu then use workaround...)
NiGHTsC
14th February 2009, 01:27
Zeni
Is there any way to display the video/audio sizes separately instead of total size?
Thank you.
Zenitram
14th February 2009, 09:33
Is there any way to display the video/audio sizes separately instead of total size?
When this info is available (when the container has an index: AVI, MP4...), you have:
General
(...)
File size : 228 MiB
(...)
Video
(...)
Stream size : 179 MiB (79%)
(...)
Audio
(...)
Stream size : 47.8 MiB (21%)
(...)
Atak_Snajpera
20th March 2009, 22:55
Zenitram will you add support for wav64?
General
Complete name : F:\Temp\audio.wav
Format : Wave
File size : 6.68 GiB
Duration : 2h 18mn
Overall bit rate : 6 912 Kbps
Audio
Format : FFFE
Codec ID : FFFE
Codec ID/Info : Extensible wave format
Codec ID/Hint : Extensible
Duration : 55mn 33s
Bit rate : 6 912 Kbps
Channel(s) : 6 channels
Sampling rate : 48.0 KHz
Resolution : 24 bits
Stream size : 2.68 GiB (40%)
Zenitram
20th March 2009, 23:01
Zenitram will you add support for wav64?
As soon as you provide me an example file.
I can provide a FTP server for uploading if you need it, contact me by private message for providing me the file.
Atak_Snajpera
21st March 2009, 23:30
sample
http://www.mediafire.com/?hj1nynjzm2n
Zenitram
27th March 2009, 21:39
Zenitram will you add support for wav64?
wav64 (as I understand: "Sony Pictures Digital Wave 64") is not the format of your file.
Your file is a bit illegal: it does NOT conform to specs.
eac3to simply has a 32 bits problems, check your file size, check the streamsize, it is... a difference of 2^32 bytes! (minus RIFF header size).
eac3to tries to write a 64-bit value (6.68 GiB) to a 32-bit fields (Max 4 GiB), so the most signifiant bytes are truncated, which is not conform to specs.
wav64 is completely another format.
Anyway, I modified MediaInfo to handle this kind of "bug", it tests now if the size of the PCM block is a remainder of the division of the file size by 2^32 and if yes, use the size of the file instead of the size of the PCM block from the RIFF info.
In the latest development snapshot:
https://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
qyot27
3rd April 2009, 21:42
Is there some way to declare the UTC offset so that the File Created/Modified Times display according to my timezone (or possibly be able to autodetect the offset from the system time)? I can't seem to find any reference to this possibility on Google or on here.
Reason being, one of the programs I use for manipulating timestamps (WinTouch (http://www.codeproject.com/KB/files/wintouch.aspx)) can take 24-hour values but not UTC, and therefore giving it the time exactly as MediaInfo outputs makes the dates skewed by 4 or 5 hours because UTC-5 & UTC-4 are the relevant offsets for my timezone. I'd just prefer not having to remember how much to subtract everytime I want to change something.
Zenitram
4th April 2009, 22:32
Is there some way to declare the UTC offset so that the File Created/Modified Times display according to my timezone (or possibly be able to autodetect the offset from the system time)? I can't seem to find any reference to this possibility on Google or on here.
This is not yet done, File Created/Modified Times are relatively new, and I didn't implement Time handling.
Please add a feature request on the tracker:
https://sourceforge.net/tracker/?group_id=86862&atid=581184
But no idea about when I will implement it.
Edit: added in the latest development snapshot:
https://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
Atak_Snajpera
23rd April 2009, 12:05
Zenitram will you add support for wav64?
Here is correct wave64 sample
http://www.mediafire.com/?jnzge3nzjti
Audioboxer
25th April 2009, 18:38
Hey guys, now that Windows 7 has hit RC is there any plans for support of context menus?
The program works fine, but the context menus don't.
Thanks :)
Zenitram
25th April 2009, 18:39
The program works fine, but the context menus don't.
I wonder what Microsoft has changed about context menu...
I will check this.
MediaInfo can't detect LAME subversions, it only show library version "LAME3.98r" when MP3 file is signatured as 3.98.2
Zenitram
25th April 2009, 20:46
MediaInfo can't detect LAME subversions, it only show library version "LAME3.98r" when MP3 file is signatured as 3.98.2
What do you call "signatured"? Please provide a sample.
For Lame, I display the string in the MP3 file, without modification.
If the Lame developper has decided to write "3.98r", there may be a reason, maybe because he does want it to be called 3.98.2...
Without "official" name scheme, I display the string inside the MP3 file.
Do you hava a mapping between strings in the MP3 file and LAME encoder versions?
FYI, I have files with "LAME3.96.1", "LAME3.97"... directly written in the MP3 file and displayed by MediaInfo.
Zenitram
30th April 2009, 17:13
Here is correct wave64 sample
0.7.15 version (released today!) can handle it.
Brazil2
30th April 2009, 20:12
There is an annoyance with MediaInfo and WMV files: it always displays VC-1 as the format even though the video is purely WMV3/9.
Video
ID : 2
Format : VC-1
Format profile : MP@ML
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Duration : 51mn 44s
Bit rate mode : Constant
Bit rate : 800 Kbps
Video
ID : 2
Format : VC-1
Format profile : MP@ML
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Duration : 13s 880ms
Bit rate mode : Variable
Bit rate : 2 954 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4/3
Zenitram
30th April 2009, 20:17
There is an annoyance with MediaInfo and WMV files: it always displays VC-1 as the format even though the video is purely WMV3/9.
From wikipedia:
http://en.wikipedia.org/wiki/VC-1
Simple and Main Profiles of VC-1 remained completely faithful to the existing WMV3 implementation, making WMV3 bitstreams fully VC-1 compliant.
--> Why is it an annoyance? from my point of view, WMV3 4CC is for VC-1 streams (limited to Simple and Main Profile), as DIVX/DX50/a lot of 4CC are MPEG-4 Visual... And the 4CC is displayed.
Brazil2
30th April 2009, 20:30
Why is it an annoyance? from my point of view, WMV3 4CC is for VC-1 streams (limited to Simple and Main Profile)
But WMV3 is not WVC1. It's not the same codec and it's not even handled by the same DLL. So the format is Windows Media 3/9 and not VC-1. In the examples psoted above it's not even the Pro version of WMV3.
I think Wikipedia is refering to the old WMV3-AP (wmvadvd.dll) now obsolete, but WMV3/9 has existed far before WVC1.
Zenitram
30th April 2009, 22:46
But WMV3 is not WVC1.
I understand this part.
If I understand well:
- WMV3 4CC is used for VC-1 Simple or Main Profile.
- WVC1 4CC is used for VC-1 Advanced Profile.
The free profiles (Simple, Main, Advanced) are in the SMPTE 421M specifications.
It's not the same codec and it's not even handled by the same DLL.
I try to not care about which codec (which is not a format, only a reader/writer) is used on which platform, but about the standardized specifications.
So the format is Windows Media 3/9 and not VC-1. In the examples psoted above it's not even the Pro version of WMV3.
Please provide me an sample which can not be decoded with the VC-1 specifications. Until now, all WMV3 files I have are decodable from the VC-1 specifications.
I think Wikipedia is refering to the old WMV3-AP (wmvadvd.dll) now obsolete, but WMV3/9 has existed far before WVC1.
Yes, WMV3 existed before WVC1, but the question is: what is VC-1? I read in the specifications that there are 3 profiles, and 2 of them are 100% the content of a WMV3 stream, so WMV3 4CC is from my point of view for VC-1 stream (SP or MP).
MediaInfo displays the name of the format, not the "codec" so for :
* WMV3:
Format : VC-1
Format profile : MP
Codec ID : WMV3
* WVC1:
Format : VC-1
Format profile : AP@L3
Codec ID : WVC1
--> This seems logic, this is what I see when I use my internal VC-1 decoder from the SMPTE 421M specifications, and what is on Wikipedia.
If Microsoft decides to use different DLL for different profiles or different 4CC, this is not a different format (as Microsoft filters can have a codec for DIVX 4CC, and another codec for XVID 4CC, but both are MPEG-4 Visual format, with different encoding parameters. I speak about DIVX and XVID because a lot of people think they are different too, but the 4CC can be inverted without problem ;-) ).
If you think that WMV3 is not VC-1, please provide me a sample I can't decode with a VC-1 decoder (a complete VC-1 decoder must decode the 3 profiles). Maybe your DLL can decode only some profiles of VC-1. I needed, I can provide the debug output from MediaInfo with all the fields names from the SMPTE 421 specs.
Octo-puss
2nd May 2009, 22:25
I got a video that I can't get to play correctly - the audio track only plays in WMP, but not in MPC. I do have FFDshow installed.
MediaInfo gives me this:
Audio
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : 2000
Duration : 2h 52mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 474 MiB (28%)
Alignment : Split accross interleaves
Interleave, duration : 500 ms (12.50 video frames)
Interleave, preload duration : 500 ms
Does anyone know what I need to play it? :) Thanks!
Inspector.Gadget
3rd May 2009, 01:22
Octo-puss, try enabling the AC3 Source Filter in MPC.
Zenitram
8th May 2009, 12:19
Hey guys, now that Windows 7 has hit RC is there any plans for support of context menus?
The program works fine, but the context menus don't.
Tested on Windows 7 build 7077 x64, all works fine: right click on a file displays "MediaInfo", and mouse over a files displays the InfoTip.
See attachements for examples.
Audioboxer
8th May 2009, 13:05
Tested on Windows 7 build 7077 x64, all works fine: right click on a file displays "MediaInfo", and mouse over a files displays the InfoTip.
See attachements for examples.
It must only be broken in certain builds?
I'm using the RC candidate here, 7100, mediainfo version 0.7.15.
On this forum I visit someone else confirmed shell extensions weren't working for them - http://www.neowin.net/forum/index.php?showtopic=763562&hl=
Strange one :confused:
Zenitram
8th May 2009, 13:08
It must only be broken in certain builds?
I'm using the RC candidate here, 7100, mediainfo version 0.7.15.
On this forum I visit someone else confirmed shell extensions weren't working for them - http://www.neowin.net/forum/index.php?showtopic=763562&hl=
Strange one :confused:
One guy said it does not work with build 7077 x64, but mine test is OK!
So... Let wait for the official release...
rack04
14th May 2009, 22:17
Does anyone have a list of possible values of the Parameter Audio;%%Format%%? Here are the possible values list in the CLI_Help:
"MPEG Audio"
"AC-3"
"DTS"
"AAC"
"E-AC-3"
"Vorbis"
"WMA2"
I'm interested in the possible values for the HD audio formats, i.e. TrueHD+AC3, TrueHD, DTS-HD MA, DTS-HD HR, and LPCM. Thanks.
Keiyakusha
15th May 2009, 01:06
InfoTip works for me on Win7 x86 RC build 7100. Even here: :)
http://www.petaimg.com/u121/853123.png
But I have WMP and WMC uninstalled. Some time ago even on XP I remember that InfoTip may not working if you install new WMP first and then MediaInfo.
Zenitram
15th May 2009, 09:25
Does anyone have a list of possible values of the Parameter Audio;%%Format%%?
There is no "official" list, because the format may be in the container itself.
A list from my samples:
AAC
AC-3
ACELP
ADPCM
ALAC
ALS (MPEG-4 Audio Lossless Coding)
AMR
Cooker
DTS
DV Audio
E-AC-3
EVRC
FLAC
MIDI
MLP
Monkey's Audio
MPEG Audio
MusePack SV7
MusePack SV8
Nellymoser
PCM (LPCM, HD included)
QCELP
Qdesign 2
RealAudio Lossless
RT29
Shorten
Speex
TAK
TrueHD
TTA
TwinVQ
Vorbis
VP6
VP7
WavPack
WMA Lossless
WMA Pro
WMA2
WMA3
WMSpeech
ZWF
I'm interested in the possible values for the HD audio formats, i.e. TrueHD+AC3, TrueHD, DTS-HD MA, DTS-HD HR, and LPCM. Thanks.
For HD, some stuff is in the "Format_Profile" field because the base format is the same.
"Format_Profile" For DTS:
MA (Master Audio)
96/24 (96 KHz / 24 bits)
HRA (High Resolution Audio)
"Format" field for HD content I have is mainly PCM / E-AC-3 / TrueHD / DTS MA / DTS HRA / DTS 96/24.
But... Nearly every audio format may have "HD" content, "HD" is only more channels, better bitrate and so on...
Brazil2
20th May 2009, 20:03
Depending on the length of the files there are some missing informations about duration.
Examples:
With a very short file we have the ms:
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 44s 844ms
Audio
ID : 128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 44s 768ms
A file over a minute of duration is missing the ms:
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 3mn 13s
Audio
ID : 128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 3mn 13s
A full movie is missing both seconds and ms:
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 1h 37mn
Audio
ID : 128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 1h 37mn
I'm quite sure these informations were present in older builds of MediaInfo. It would be nice to have them back.
Something else now: I've just installed the latest version 0.7.16 and despite of what is said in the changelog:
- VC-1 and MPEG-Video: displaying the original framerate for streams with 2:3 pulldown
it seems not to work:
General
Complete name : I:\Test\Pulldown.mpg
Format : MPEG-PS
File size : 20.0 MiB
Duration : 1mn 1s
Overall bit rate : 2 717 Kbps
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 1mn 1s
Bit rate mode : Variable
Bit rate : 2 161 Kbps
Nominal bit rate : 5 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16/9
Frame rate : 29.970 fps
Standard : NTSC
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.209
Stream size : 15.9 MiB (80%)
Audio
ID : 128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 1mn 1s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 3.30 MiB (16%)
Menu
Format : DVD-Video
While GSpot is showing it right:
http://img35.imageshack.us/img35/7240/pulldowngspot.th.png (http://img35.imageshack.us/img35/7240/pulldowngspot.png)
Zenitram
20th May 2009, 20:50
Depending on the length of the files there are some missing informations about duration.
This is wanted.
You can have all the available fields, strings you want included, with menu Debug, "advanced mode".
You can create your own custom template if you want to have HH:MM:SS.MMM format or another format.
This is no more (for a long time) by default, users usually don't want to have a too much precise info (if a video is 120 minutes long, is it needed to have the seconds?).
Something else now: I've just installed the latest version 0.7.16 and despite of what is said in the changelog:
- VC-1 and MPEG-Video: displaying the original framerate for streams with 2:3 pulldown
2:3 Pulldown is not detected in your file, please provide me some seconds of your file, I will look at it.
Brazil2
20th May 2009, 21:41
You can create your own custom template if you want to have HH:MM:SS.MMM format or another format.
Please could you tell me which parameters line to use so I can see the seconds and ms in any case ?
I admit I'm a bit lost about how and which file to edit. I'm using the tree view as my default view.
2:3 Pulldown is not detected in your file, please provide me some seconds of your file, I will look at it.
Here you go:
http://www.zshare.net/download/6029356612a3bfcd
Zenitram
22nd May 2009, 14:46
Please could you tell me which parameters line to use so I can see the seconds and ms in any case ?
I admit I'm a bit lost about how and which file to edit. I'm using the tree view as my default view.
Unfortunatly, you can't yet choose fields for the Tree view (this is planed, but not the priority).
You can only choose it in the text view.
Menu options, "custom", and you edit the examples.
Your field is "Duration/String2"
Example of duration fields available:
Duration : 61760
Duration/String1 : 1mn 1s
Duration/String2 : 1mn 1s 760ms
Duration/String3 : 1mn 1s
Duration/String4 : 00:01:01.760
Here you go:
http://www.zshare.net/download/6029356612a3bfcd
OK, I corrected my code, 2:3 pulldown is now detected, development snapshaot is available:
https://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
Brazil2
23rd May 2009, 17:52
Menu options, "custom", and you edit the examples.
Your field is "Duration/String2"
I've replaced the original "Duration/String1" string with "Duration/String2" but it seems to have an effect on the General tab only and not on the Video and Audio tabs.
Seconds might be important for a full movie because I had playback troubles after demuxing / converting / remuxing and there was a 5 seconds difference between audio and video in the final file and it took me a while to notice that.
Oh well, I think I just have to use the Advanced mode when needed, that's easier and faster :)
OK, I corrected my code, 2:3 pulldown is now detected, development snapshaot is available:
https://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
It's working fine now with this build, thanks :)
Zenitram
24th May 2009, 20:41
I've replaced the original "Duration/String1" string with "Duration/String2" but it seems to have an effect on the General tab only and not on the Video and Audio tabs.
You have several parts, you have only modified the "General" part, modify the other parts too (upper left corner of the editing screen).
Atak_Snajpera
17th June 2009, 16:15
@Zenitram
Could you check this sample because mediainfo sees only one audio channel
http://www.mediafire.com/file/mixznz0jm1h/00000.m2ts
eneral
ID : 1
Complete name : C:\Users\Dawidos\Desktop\00000.m2ts
Format : BDAV
Format/Info : BluRay Video
File size : 50.0 MiB
Duration : 1mn 8s
Overall bit rate : 6 084 Kbps
Maximum Overall bit rate : 35.5 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Duration : 1mn 8s
Bit rate : 5 066 Kbps
Nominal bit rate : 4 813 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.229
Stream size : 41.6 MiB (83%)
Writing library : x264 core 67 r1165M 6841c5e
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=4813 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=25000 / vbv_bufsize=25000 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : PCM
Format settings, Endianness : Big
Format settings, Sign : Signed
Duration : 1mn 8s
Bit rate mode : Constant
Bit rate : 768 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 KHz
Stream size : 6.31 MiB (13%)
Zenitram
17th June 2009, 21:30
@Zenitram
Could you check this sample because mediainfo sees only one audio channel
For PCM in Blu-ray, this is an empiracal test, because I don't have the specs (if someone has them... ;-) ).
Please check the latest developemnt snapshot:
https://sourceforge.net/project/showfiles.php?group_id=86862&package_id=197932
(at least 20090617)
SeeMoreDigital
8th July 2009, 16:26
Hi Zenitram,
Would it possible to provide information regarding the PAR/SAR value and the output resolution of a video stream?
Something like this: -
http://i29.tinypic.com/34hf08x.png
Cheers
Zenitram
8th July 2009, 16:41
Hi Zenitram,
Would it possible to provide information regarding the PAR/SAR value and the output resolution of a video stream?
Cheers
?
If I understand well, this is already done.
Example with PAL DVD:
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4/3
With Debug->"advanced mode":
Width : 720
Width : 720 pixels
Height : 576
Height : 576 pixels
Pixel aspect ratio : 1.066
Display aspect ratio : 1.333
Display aspect ratio : 4/3
--> Pixel aspect ratio is available, but not in the default view. You must create your own template with %PixelAspectRatio% field.
Note: this is an integer value, a "string" value (as "47/25" instead of "1.88") is doable, but I don't know the know all the know PAR strings.
microchip8
8th July 2009, 16:45
Hi Zenitram
a suggestion. On Linux it works perfectly fine. However I would like to see the runtime of the video file to be displayed as 1:42:12 instead of as 1h42m, for example
Zenitram
8th July 2009, 16:52
a suggestion. On Linux it works perfectly fine. However I would like to see the runtime of the video file to be displayed as 1:42:12 instead of as 1h42m, for example
Same thing, in advanced mode.
Duration : 356723
Duration : 5mn 56s
Duration : 5mn 56s 723ms
Duration : 5mn 56s
Duration : 00:05:56.723
On Linux GUI, custom view is not yet available, with the CLI ./mediainfo "--Inform=General;%Duration/String4"
Not by default because this is not the most requested view.
microchip8
8th July 2009, 17:05
Ah didn't know that. Still it'll be easier for my lazy butt to have it in the GUI as well so I won't have to type in terminal each time when I'm lazy ;)
Zenitram
8th July 2009, 17:14
Ah didn't know that. Still it'll be easier for my lazy butt to have it in the GUI as well so I won't have to type in terminal each time when I'm lazy ;)
This is planned, but not currently a priority, and my priority list is very long, so do not expect non-priorited stuff before a long time...
microchip8
8th July 2009, 18:11
This is planned, but not currently a priority, and my priority list is very long, so do not expect non-priorited stuff before a long time...
It's OK, it's not a priority for me either. Just that it would be nice to see it in the GUI as well :)
if I have mp4 file (or mkv) with x264 video stream, and I have PAR signaling specified in the video stream, and I have PAR signaling specified in the container as well - which one MediaInfo shows?
I know I --should-- have the same PAr in both places - but if I do not, which one it shows? Is there a way to see both, with indication which PAR comes from where?
Zenitram
8th July 2009, 21:11
if I have mp4 file (or mkv) with x264 video stream, and I have PAR signaling specified in the video stream, and I have PAR signaling specified in the container as well - which one MediaInfo shows?
In the "basic" view: final DAR, so from the container (mp4/mkv/avi)
In others views:
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16/9
Original display aspect ratio : 5/4
--> Both are available.
I know I --should-- have the same PAr in both places - but if I do not, which one it shows? Is there a way to see both, with indication which PAR comes from where?
Yes, you should, but you are not alone. And you can try to cheat MediaInfo, but it will answer that you do it ;-).
Display aspect ratio = the one from the container
Original display aspect ratio = the one from the raw stream if it is demuxed, if different.
In the "basic" view: final DAR, so from the container (mp4/mkv/avi)
In others views:
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16/9
Original display aspect ratio : 5/4
--> Both are available.
Yes, you should, but you are not alone. And you can try to cheat MediaInfo, but it will answer that you do it ;-).
Display aspect ratio = the one from the container
Original display aspect ratio = the one from the raw stream if it is demuxed, if different.
just to clarify, because maybe I have not explained myself properly.
Let's say I encoded NTSC DVD to x246. Assume it is a made fot TV show which most likely will be 720x480 and encoded anamorphically. So the x264 stream will have 720x480 encoded and flagged as 32:27 (which would give me proper 853x480 output, exactly 16:9).
Now I mux it into mkv container and specify container level signaling 1:1. So now I have an x264 stream, with encoded resolution 720x480, with stream level PAR 32:27, and with container level PAR 1:1. So following your example I would have:
Width: 720
Height: 480
Display Aspect Ratio: ? (is it 16/9 which it would be if observing stream level signaling, or 1.5 which it would be if observing container level signaling?). That is what I'm asking about. Ideally I should see both values, and indication what came from where.
Original Display Aspect Ratio: 1.5 (I'm assuming this is supposed to show the ratio of what is actually encoded, --not-- taking into account any signaling flags)
Zenitram
8th July 2009, 22:08
Let's say I encoded NTSC DVD to x246. Assume it is a made fot TV show which most likely will be 720x480 and encoded anamorphically. So the x264 stream will have 720x480 encoded and flagged as 32:27 (which would give me proper 853x480 output, exactly 16:9).
Original Display Aspect Ratio: 16/9, because you AVC/H264 stream (x264 is an encoder, no more!) flag it as 16/9, so if you demux it, you will have a 16/9 raw stream (720/480*32/27)
Now I mux it into mkv container and specify container level signaling 1:1.
Display Aspect Ratio: 1.5, because this is the DAR you specified in the container (720/480*1)
taking into account any signaling flags
No. Because AR from the AVC stream is part of the stream.
not taking into account any signaling is nothing, only the ratio between the count of width pixels / count of height pixels, because AVC AR is part of the stream (you can "demux" it!)
To summarize:
- raw stream AR is displayed ("Original DAR"), the one if you have this stream alone (demuxed)
- container AR is displayed ("DAR"), the one wanted as the "final AR" by the container.
a player always use one of theses 2 values depending of its capacities, providing width/height is non-sense, no decoder decodes as this.
Original Display Aspect Ratio: 16/9, because you AVC/H264 stream (x264 is an encoder, no more!) flag it as 16/9, so if you demux it, you will have a 16/9 raw stream (720/480*32/27)
Display Aspect Ratio: 1.5, because this is the DAR you specified in the container (720/480*1)
No. Because AR from the AVC stream is part of the stream.
not taking into account any signaling is nothing, only the ratio between the count of width pixels / count of height pixels, because AVC AR is part of the stream (you can "demux" it!)
To summarize:
- raw stream AR is displayed ("Original DAR"), the one if you have this stream alone (demuxed)
- container AR is displayed ("DAR"), the one wanted as the "final AR" by the container.
a player always use one of theses 2 values depending of its capacities, providing width/height is non-sense, no decoder decodes as this.
@Zenitram: thanks a lot, it all makes sense. Let me try couple of tests to confirm.
About 'a player always use one of theses 2' - are you saying there's no standard on which flag a player should use? It appears so, although one would think that such not-so-uncommon case would be standardized somewhere.
Zenitram
8th July 2009, 22:28
About 'a player always use one of theses 2' - are you saying there's no standard on which flag a player should use? It appears so, although one would think that such not-so-uncommon case would be standardized somewhere.
A player should respect the AR data from the container, if none from the raw stream, if none square pixels.
But this is theory.
AR data in container is optional (not mandatory), so all decoders may not handle it.
I plan later to have a database of each hardware/software player with their capacities for these reason.
ok, so for the life of me I never see the the 'Original Display Aspect Ratio' displayed in any view. Any ideas on what I'm doing wrong?
Also, if
(quoting Zenitram):
"Display aspect ratio = the one from the container
Original display aspect ratio = the one from the raw stream if it is demuxed, if different."
than if I'm analyzing raw x264 stream than I should never see Display Aspect Ratio because, well, there's no container. But I always see that, and never see 'Original display aspect ratio'.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.