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