Skip to content

Instantly share code, notes, and snippets.

@lpenaud
Created March 7, 2025 18:54
Show Gist options
  • Save lpenaud/da2def80c178c92143f7a30012eb4534 to your computer and use it in GitHub Desktop.
Save lpenaud/da2def80c178c92143f7a30012eb4534 to your computer and use it in GitHub Desktop.
Mediainfo

Mediainfo

Mediainfo comes in handy for printing information from media files; however, some features, like --Output, are poorly documented or unclear.

Human readable tracklist

mediainfo --Output="General;%Track/Position%. %Title% - %Duration/String%\n" *.flac

Sample outputs:

1. Dune Theme [2024 remaster] (original Speed) - 5 min 9 s
2. Emotion Control [2024 remaster] - 4 min 18 s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment