diff --git a/docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md b/docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md new file mode 100644 index 0000000..a60e024 --- /dev/null +++ b/docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md @@ -0,0 +1,37 @@ +--- +title: Enforce English Subtitles and Audio Tracks using mkvmerge +--- + +## Why + +If for example you get an mkv file that has additional soundtracks and subtitles in it, but you do not care for them +(eg: You only speak English and will never use other variants) it's worth while removing the additional tracks + +## How + +### Install mkvmerge + +```shell +brew install mkvtoolnix +``` + +* [Homebrew Formulae](https://formulae.brew.sh/formula/mkvtoolnix) +* [mkvmerge homepage](https://mkvtoolnix.download) + +### Command + +`mkvmerge` accepts some inputs we need to change + +* `-o`: This is the output file +* `--audio-tracks`: What Audio track to Preserve +* `--subtitle-tracks`: What subtitle track to Preserve + +An example file named `Mr.Inbetween.S03E05.Prima.che.andassi.in.guerra.ITA.ENG.1080p.AMZN.WEB-DL.DDP5.1.H.264-MeM.GP.mkv`, we can remove the other tracks and then rename it to `Mr.Inbetween.S03E05.mkv` using the below + +```shell +mkvmerge \ +-o Mr.Inbetween.S03E05.mkv +--audio-tracks eng +--subtitle-tracks eng +Mr.Inbetween.S03E05.Prima.che.andassi.in.guerra.ITA.ENG.1080p.AMZN.WEB-DL.DDP5.1.H.264-MeM.GP.mkv +``` diff --git a/docs/kb/media/index.md b/docs/kb/media/index.md new file mode 100644 index 0000000..d8a9251 --- /dev/null +++ b/docs/kb/media/index.md @@ -0,0 +1,8 @@ +--- +title: Media tools +--- + +This section covers command line tools used to modify and articulate media, such as Photos and Images + +* [Remove GPS data from Images using exiftool](remove-gps-data-from-images-using-exiftool.md) +* diff --git a/docs/kb/exiftool/remove-gps-data-from-images.md b/docs/kb/media/remove-gps-data-from-images-using-exiftool.md similarity index 96% rename from docs/kb/exiftool/remove-gps-data-from-images.md rename to docs/kb/media/remove-gps-data-from-images-using-exiftool.md index 18cad8e..0ca04cc 100644 --- a/docs/kb/exiftool/remove-gps-data-from-images.md +++ b/docs/kb/media/remove-gps-data-from-images-using-exiftool.md @@ -1,5 +1,5 @@ --- -title: Remove GPS data from Images +title: Remove GPS data from Images using Exiftool --- ## What's the issue diff --git a/mkdocs.yml b/mkdocs.yml index 9169c86..afd36ef 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -38,8 +38,6 @@ nav: - kb/drone/index.md - Laws: kb/drone/laws.md - Stock image marketplaces: kb/drone/stock-image-marketplaces.md - - exiftool: - - Remove GPS data from Images: kb/exiftool/remove-gps-data-from-images.md - Git: - Amend commit message: kb/git/amend-commit-message.md - Count lines of code in a Git repo: kb/git/count-lines-of-code-in-repo.md @@ -124,6 +122,9 @@ nav: - Matomo behind cloudflared: kb/matomo/matomo-behind-cloudflare.md - Mealie: - Make API request to mealie: kb/mealie/make-api-request-to-mealie.md + - Media: + - Remove GPS data from Images using Exiftool: kb/media/remove-gps-data-from-images-using-exiftool.md + - Enforce English Subtitles and Audio Tracks using mkvmerge: kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md - Media Services: - "qBittorrent stuck at No custom files found, skipping...": kb/media-services/qbittorrent-stuck-at-no-custom-files-found-skipping.md - Minio: @@ -627,6 +628,7 @@ plugins: 'kubernetes/k3s/oidc-azure-ad.md': 'kubernetes/oidc/oidc-azure-ad.md' 'kb/linux-cli/generate-random-token.md': 'kb/linux-cli/create-random-string.md' 'kb/nginx/get-real-ip-cloudflare.md': 'kb/nginx/get-real-ip-address-behind-cloudflare-nginx.md' + 'kb/exiftool/remove-gps-data-from-images.md': kb/media/remove-gps-data-from-images-using-exiftool.md extra: issn: 2755-8169 analytics: