4

I'm using mediainfo in order to see the media information about a mkv file.

I see that it give me the details about subtitle like:

Text #1
ID                                       : 3
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : English
Default                                  : Yes
Forced                                   : No

and so on...

It is possible, for custom template to have like:

SUBTiTLE: .............. English
SUBTiTLE: .............. French

and so on ?

If so, how ?

I tried to put only for Text:

$if(%Language%,Language : %Language%)

but it seems that not working

7
MediaInfo.exe "--Output=Text;%ID%: %Format%$if(%Language/String%, SUBTiTLE: .............. %Language/String%)\r\n" File.mkv

Output:

5: UTF-8
6: VobSub SUBTiTLE: .............. French
7: VobSub SUBTiTLE: .............. English
8: VobSub SUBTiTLE: .............. French

Jérôme, developer of MediaInfo

5
  • If I run command under command prompt, nothing happens, just open mediainfo gui program... – Snake Eyes Oct 26 '15 at 11:25
  • Can you tell mw how to create custom template for mediainfo ? Or can you create one (you might create faster than me) and I will import myself – Snake Eyes Oct 26 '15 at 11:40
  • You are trying with the GUI (Graphical User Interface). You need to use the CLI (Command Line Interface) version, check the download section on the MediaInfo website, in order to run the command I provided. On Windows, you can create your template in the Preferences. – Jérôme Martinez Nov 25 '15 at 15:49
  • This command strips away titles, such as "SDH" and "traditional"/"simplified" (Chinese) — is it possible to show also this information? – user598527 Jul 30 '18 at 15:40
  • It strips titles because this is the request to strip all except what is desired, so titles includes. You can add e.g. "$if(%Title%, %Title%)" for adding titles. – Jérôme Martinez Jul 30 '18 at 19:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.