{"id":26731589,"url":"https://github.com/hmknapp/movie-cleaner","last_synced_at":"2026-05-15T13:34:07.716Z","repository":{"id":284828583,"uuid":"935660334","full_name":"HMKnapp/movie-cleaner","owner":"HMKnapp","description":"Remove unwanted audio and subtitle streams from media files","archived":false,"fork":false,"pushed_at":"2025-04-14T18:27:33.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T19:36:59.667Z","etag":null,"topics":["audio","ffmpeg","jellyfin","plex","subtitles"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HMKnapp.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-19T20:03:59.000Z","updated_at":"2025-04-14T18:27:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bde71bf-a281-48be-9f01-06fc7600d199","html_url":"https://github.com/HMKnapp/movie-cleaner","commit_stats":null,"previous_names":["hmknapp/movie-cleaner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HMKnapp/movie-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMKnapp%2Fmovie-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMKnapp%2Fmovie-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMKnapp%2Fmovie-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMKnapp%2Fmovie-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HMKnapp","download_url":"https://codeload.github.com/HMKnapp/movie-cleaner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMKnapp%2Fmovie-cleaner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263853697,"owners_count":23520194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","ffmpeg","jellyfin","plex","subtitles"],"created_at":"2025-03-28T00:25:46.569Z","updated_at":"2026-05-15T13:34:07.653Z","avatar_url":"https://github.com/HMKnapp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"= movie_cleaner\n\nmovie_cleaner makes it easy to remove unwanted audio and subtitle streams from media files.\n\nIt supports\n\n- audio and subtitle streams\n- files and folders\n- language codes and track numbers\n\n== Examples\n\nTake this input file with Danish and Russian audio, and Danish, English, and Russian subtitles:\n\n.ffmpeg -i The\\ Good\\ Cop\\ 2004.mkv 2\u003e\u00261 | grep Stream\n[source,sh]\n----\n  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9], 6000 kb/s, 25 fps, 25 tbr, 1k tbn\n  Stream #0:1(rus): Audio: mp3 (mp3float), 44100 Hz, stereo, fltp, 320 kb/s (default)\n  Stream #0:2(dan): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s\n  Stream #0:3(dan): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s\n  Stream #0:4(rus): Subtitle: subrip (srt)\n  Stream #0:5(dan): Subtitle: dvd_subtitle (dvdsub), 720x576\n  Stream #0:6(eng): Subtitle: dvd_subtitle (dvdsub), 720x576\n  Stream #0:7(eng): Subtitle: subrip (srt)\n----\n\n.Remove Russian audio and subtitles, and the third subtitle track\n`movie_cleaner.py -ra ru -rs ru,3 The\\ Good\\ Cop\\ 2004.mkv`\n\n.Remove Russian audio and subtitles, and English subtitles\n`movie_cleaner.py -ra ru -rs ru,en -o /output/dir The\\ Good\\ Cop\\ 2004.mkv`\n\n.Keep only Danish audio and subtitles\n`movie_cleaner.py -k da The\\ Good\\ Cop\\ 2004.mkv`\n\n.Remove all Hindi tracks from all files in a folder\n`movie_cleaner.py -r hi /movies`\n\n== Usage\n[source, sh]\n----\nusage: movie_cleaner.py [-h] [-k KEEP] [-r REMOVE] [-ka KEEP_AUDIO] [-ra REMOVE_AUDIO] [-ks KEEP_SUBTITLES] [-rs REMOVE_SUBTITLES] [-o OUTPUT_DIR] [--dry-run] [--overwrite] [--no-clean-metadata] [paths ...]\n\nClean media files by removing unwanted audio/subtitle streams.\n\npositional arguments:\n  paths                 Files and/or directories to process\n\noptions:\n  -h, --help            show this help message and exit\n  -k, --keep KEEP       Keep only specified language(s) for both audio and subtitles (comma-separated)\n  -r, --remove REMOVE   Remove specified language(s) for both audio and subtitles (comma-separated)\n  -ka, --keep-audio KEEP_AUDIO\n                        Keep only specified audio stream(s) (languages or track numbers, comma-separated)\n  -ra, --remove-audio REMOVE_AUDIO\n                        Remove specified audio stream(s) (languages or track numbers, comma-separated)\n  -ks, --keep-subtitles KEEP_SUBTITLES\n                        Keep only specified subtitle stream(s) (languages or track numbers, comma-separated)\n  -rs, --remove-subtitles REMOVE_SUBTITLES\n                        Remove specified subtitle stream(s) (languages or track numbers, comma-separated)\n  -o, --output-dir OUTPUT_DIR\n                        Output directory for cleaned files\n  --dry-run             Print the ffmpeg command without executing it\n  --overwrite           Overwrite input files\n  --no-clean-metadata   Do not remove 'title' and 'comment' metadata (default is to remove them)\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmknapp%2Fmovie-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmknapp%2Fmovie-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmknapp%2Fmovie-cleaner/lists"}