1
1
I'm using mediainfo to obtain several aspects of an input video such as resolution and framerate. I'm using the --inform option for that with values such as
"Video;%FrameRate%"
"Video;%Format/Info%"
However, i'm not being able to obtain the information on color range the same way. Running --info-parameters , i can see that the option i believe i should be using is
colour_range : Colour range for YUV colour space
But trying mediainfo with that doesn't work, instead responding with an echo, as if it didn't recognize the setting
Here's some attempts i've done:
me@pc:~$ mediainfo --version
MediaInfo Command line,
MediaInfoLib - v0.7.82
me@pc:~$ mediainfo video.mp4 --inform="Video;%Format/Info%"
High Efficiency Video Coding
me@pc:~$ mediainfo video.mp4 --inform="Video;%FrameRate%"
30.000
me@pc:~$ mediainfo video.mp4 --inform="Video;%FramRate%"
me@pc:~$ mediainfo video.mp4 --inform="Video;%colour_range%"
%colour_range%
me@pc:~$ mediainfo video.mp4 --inform="Video;%Colour_range%"
me@pc:~$ mediainfo video.mp4 --inform="Video;%somethingweird%"
%somethingweird%
I know for a fact that this video does have the metadata, because running plain mediainfo gives me:
{...}
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
{...}
Color range : Full
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
{...}
So right now i'm looking at the very serious possibility of just using plain mediainfo and grep to obtain what i want, but i'm wondering, maybe i'm just missing the correct name in mediainfo?
This is mediainfo 0.7.82 running on ubuntu 16.
Any tips would be appreciated
My other alternative is to go with a
ffprobe -show_streams
approach. That seems to work, but i'm still a bit puzzled with how to make it work in mediainfo – otiteb – 2019-03-14T21:05:35.360Have you tried spelling "color" without the "U"? – Scott – 2019-03-15T00:50:21.567
yes, tried that as well, no luck. Also,
--info-parameters
did spell it with the u, the underscore, and the lower case – otiteb – 2019-03-15T01:27:10.820