Skip to content

Add options to display only certain tracks/labels #1134

@Baerbeisser

Description

@Baerbeisser

While this tool supports many formats for output, it would be more convenient for use in shell scripts/quick usage, if it had options to

  • display only certain video/audio tracks
  • display only certain labels (like Width, Length, Format, ...)

I always have to use it with grep, and i think that's a ugly/unreliable workaround due to localization of labels. Sure, i could use it with --Output=JSON and then parse that with jq. But from a efficiency and usability standpoint, that's a bit stupid, if you need merely two labels.

lsblk does it right IMO, with -o PATH,VENDOR,... and -H to display all labels.

Or alternatively, options for direct access to often used labels, like --width, --height.

As it is, the tool is more suitable as some sort of library in a heavy duty scripts, where you read lots of documentation for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions