Skip to content

Instantly share code, notes, and snippets.

View majora2007's full-sized avatar

Joe Milazzo majora2007

  • Dallas, TX
View GitHub Profile
@majora2007
majora2007 / mux-ass.py
Created June 29, 2020 16:30
Mux ass and mkv files together. Useful for DemonHiro anime releases.
import os
import subprocess
import os
import sys
import argparse
from pathlib import Path # Move to Parse
in_dir = os.path.abspath('.')
@majora2007
majora2007 / removeNonEnglishAudio.py
Created May 22, 2020 18:36
Removes non-LANG audio tracks and subtitles from mkv files in a directory.
#!/usr/bin/python
# Removes non-LANG audio tracks and subtitles from mkv files in a directory.
# Original script by greenbender at https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container
# Modified by Joseph Milazzo for updated MkvMerge commands.
import os
import re
import sys
import StringIO
@majora2007
majora2007 / removeNonEnglish.py
Last active February 1, 2024 20:26
Remove foreign language audio and subtitle tracks from mkv files in bulk
#!/usr/bin/python
# Removes non-LANG audio tracks and subtitles from mkv files in a directory.
# Original script by greenbender at https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container
# Modified by Joseph Milazzo for updated MkvMerge commands.
# 12/3/2021: Updated to Python 3.9
import os
import re
import sys
@majora2007
majora2007 / system-monitor.py
Created September 29, 2015 21:32
Simple way to collect uptime for Plex
import datetime
import time
import psutil
process = None
sleep_time_secs = 10
if __name__ == '__main__':
while True:
if process is None:
all_pids = psutil.pids()