Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 29 in docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md

View workflow job for this annotation

GitHub Actions / spell_check

Inbetween ==> Between, In between

Check failure on line 29 in docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md

View workflow job for this annotation

GitHub Actions / spell_check

Inbetween ==> Between, In between

```shell
mkvmerge \
-o Mr.Inbetween.S03E05.mkv

Check failure on line 33 in docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md

View workflow job for this annotation

GitHub Actions / spell_check

Inbetween ==> Between, In between
--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

Check failure on line 36 in docs/kb/media/enforce-english-subtitles-and-audio-tracks-using-mkvmerge.md

View workflow job for this annotation

GitHub Actions / spell_check

Inbetween ==> Between, In between
```
8 changes: 8 additions & 0 deletions docs/kb/media/index.md
Original file line number Diff line number Diff line change
@@ -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)
*
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Remove GPS data from Images
title: Remove GPS data from Images using Exiftool
---

## What's the issue
Expand All @@ -12,7 +12,7 @@

## Solution

We can use a tool called `exiftool` which gets its name from the data attached to images, called `Exchangable Image file format` or `EXIF` for shot

Check failure on line 15 in docs/kb/media/remove-gps-data-from-images-using-exiftool.md

View workflow job for this annotation

GitHub Actions / spell_check

Exchangable ==> Exchangeable

Replace `<image.jpg>` with the filename

Expand Down
6 changes: 4 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
- 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
Expand Down Expand Up @@ -124,6 +122,9 @@
- 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:
Expand Down Expand Up @@ -267,7 +268,7 @@
- Print secret using gcloud: cloud/gcp/print-secret-gcloud.md
- "Projects, Resources, IAM Users, Roles, Permissions, APIs, and Cloud Shell": cloud/gcp/projects-resources-iam-users-roles-permissions-apis-and-cloud-shell.md
- Re-run startup script on Google Compute Engine: cloud/gcp/re-run-startup-script-google-compute-engine.md
- Remove the lien to allow deletion: cloud/gcp/remove-the-lien-to-allow-deletion.md

Check failure on line 271 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / spell_check

lien ==> line
- "Serverless VPC access for Cloudrun across Projects": cloud/gcp/serverless-vpc-access-for-cloudrun-across-projects.md
- Show BigQuery Table Schema: cloud/gcp/show-bq-table-schema.md
- SSH using IAP: cloud/gcp/ssh-iap.md
Expand Down Expand Up @@ -521,7 +522,7 @@
- navigation.tracking #Anchor links
- navigation.top # back to top of page
- navigation.indexes # Allows index.md pages
#- !ENV [nav, ""]#navigation.expand #Exapnds the navigation in the UI, disabled by default, but enabled in dev

Check failure on line 525 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / spell_check

Exapnds ==> Expands
- content.code.annotate
- content.code.copy
- content.tabs.link
Expand Down Expand Up @@ -627,6 +628,7 @@
'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:
Expand Down
Loading