summaryrefslogtreecommitdiff
path: root/.zsh_functions/henks_mkv_trackinfo
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2023-01-29 14:29:33 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-01-29 14:29:33 +0100
commitf9783cb5764dc1fba551fb577df0da08acd9e74a (patch)
tree4cbe826b138877d1e469a33958e3dd616693b0dd /.zsh_functions/henks_mkv_trackinfo
parent276d08ec856a3e283902a169be74ddb5db573efc (diff)
add shortcut to get track info from mkv files
Diffstat (limited to '.zsh_functions/henks_mkv_trackinfo')
-rw-r--r--.zsh_functions/henks_mkv_trackinfo1
1 files changed, 1 insertions, 0 deletions
diff --git a/.zsh_functions/henks_mkv_trackinfo b/.zsh_functions/henks_mkv_trackinfo
new file mode 100644
index 0000000..ec9494e
--- /dev/null
+++ b/.zsh_functions/henks_mkv_trackinfo
@@ -0,0 +1 @@
+mkvmerge -J "$1" | gojq '[.tracks[] | { id: .id, type: .type, name: .properties["track_name"], language: .properties["language"], forced_track: .properties["forced_track"], default_track: .properties["default_track"], uid: .properties["uid"] }] '