Skip to content

Instantly share code, notes, and snippets.

@magnusottosson
magnusottosson / mkvextract-helper.sh
Last active June 6, 2024 08:22 — forked from konfou/mkvextract-helper.sh
extract all tracks/attachments/chapters from an mkv file
#!/usr/bin/env bash
#
# Extract all tracks/attachments/chapters from an mkv file.
# depends
type -p mkvmerge &>/dev/null || exit 3
type -p mkvextract &>/dev/null || exit 3
# trap SIGINT
trap 'trap - INT; kill -s INT "$$"' INT