%FileExtension%\r\nSize: %FileSize/String%\r\n In the template, specify one section per line and add the parameters to their respective sections, like this: General File Name: %FileName%\r\nOverall Bit Rate: %OverallBitRate/String%\r\nDuration: %Duration/String3%\r\nFormat. If you want to get data from multiple sections (like adding video dimensions to the above information), you will have to use a template, as there is no way to get data from multiple sections in the same -Output command and having multiple instances of -Output cancel each other out until you get left with the last one in the list. For example, to get the file name, duration, and file size, you can use the command mediainfo -Output="General File Name: %FileName%\r\nDuration: %Duration/String3%\r\nSize: %FileSize/String%" video.mkv You can also add your own text, which gets displayed as however you wrote it, allowing you to label the output for easier reading later. You can pick multiple parameters from the same section name, separating them with any text you like (including \n for newlines (but not \t for tabs, interestingly)), like -Output=SectionName %Parameter1%\n%Parameter2%. Each of these sections contains many different parameters that contain various information about the file and get called with the format -Output=SectionName %Parameter%. When you run mediainfo -Info-Parameters, you will notice that there are seven sections: General, Video, Audio, Text, Other, Image, and Menu. To be more clear about my question, once and for all: How can I write proper syntax for the MediaInfo.exe CLI to extract specific information such as FrameRate, Duration,
0 Comments
Leave a Reply. |