Skip to content

Instantly share code, notes, and snippets.

View abdelkrimdev's full-sized avatar
🏠
Working from home

Abdelkrim Dib abdelkrimdev

🏠
Working from home
View GitHub Profile
@abdelkrimdev
abdelkrimdev / Set-Subtitle-Name.ps1
Created May 10, 2025 14:41
A PowerShell script using MKVToolNix (CLI) to batch rename subtitles in your Matroska Video files (MKV)
$folderPath = "."
$newName = ""
# Ensure mkvmerge is available
if (-not (Get-Command mkvmerge -ErrorAction SilentlyContinue)) {
Write-Error "mkvmerge is not installed or not found in PATH."
return
}
function Set-SubtitleName {
@abdelkrimdev
abdelkrimdev / Extract-Subtitles-And-Attachments.ps1
Last active April 25, 2025 11:55
A PowerShell script using MKVToolNix (CLI) to batch extract subtitles and attachments from your Matroska Video files (MKV)
#===========================================#
# +Psycho-Pass #
# |+Season 1 #
# |-01 - First Episode.mkv #
# |-02 - Second Episode.mkv #
# |-... #
# |-Season 2 #
# |-Extract-Subtitles-And-Attachments.ps1 #
#===========================================#