Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typeorder as a proper field #1052

Open
miapuffia opened this issue Mar 9, 2025 · 0 comments
Open

Add typeorder as a proper field #1052

miapuffia opened this issue Mar 9, 2025 · 0 comments

Comments

@miapuffia
Copy link

In the JSON and XML views, typeorder is a useful field that specifies the stream number out of streams of the same type. For example, if I have a video with these streams:

  • Video
  • Audio
  • Audio
  • Text
  • Text
  • Text

It can be programmatically useful to know that the first text stream is, well, the first of the text streams. ID and StreamOrder provide different information and can't be used. Typeorder is available in JSON and XML outputs, but not with the plain old --Output parameter (CLI).

I'd like to be able to run this command
mediainfo --Output="Text;%TypeOrder%-%Language%-%Title%\r\n" input.mkv
and get output that looks like

1-en-English  
2-es-Spanish  
3-es-Spanish(Latin_America)

which is not currently possible without JSON/XML parsing or making my batch file significantly more complicated to count lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant