Giter VIP home page Giter VIP logo

sub-auto-rename's Introduction

sub-auto-rename

A program that automatically renames subtitle files to their corresponding movie files names.

Why this program exists

Modern video players such as vlc and mpv automatically pick up a subtitle file that has the same name as the movie that is being played. Sometimes you might have alot of videos that have their subtitle files with slightly different names which means you have to use your video player's settings to point which file to use or rename all the files manually which is tideous. This is where sub-auto-rename becomes in handy. The program will look through all videos and subtitle files in the directory, identify which subtitle file points to which movie file and automatically rename the subtitle files to the same names as their corresponding movies saving time if all of this work could be performed manually.

How to use

Just dump all the videos and subtitles into one directory and give the program that directory path as a commandline option, sit back and wait for the magic to happen. You can also pass --help option to reveal full details of the available options.

Examples

# Typical use
sub-auto-rename path/to/videos

# Supplying extra extension (as default extensions supported are mp4, mkv, flv, avi, 3gp, mov)
sub-auto-rename path/to/videos wmv yuv qt mpg webm   # extra extensions can be as many as you want

# Ignoring the difference in the number of videos and subtitles in the provided directory
sub-auto-rename -i path/to/videos

# Getting the summary of rename and non-renamed subtitle files after rename operation has completed.
sub-auto-rename -s path/to/videos

# Getting help information
sub-auto-rename --help

Installation

Getting pre-built binaries

Pre-built binaries for your specific platform can be obtained in the release page

Building from source

sub-auto-rename can be installed via the following shell commands assuming you have cargo, rustc and git set up on your machine. You can check the guide incase you're not setup.

git clone https://github.com/MaarifaMaarifa/sub-auto-rename
cd sub-auto-rename
cargo install --path .

sub-auto-rename's People

Contributors

abubakari3bugaru avatar maarifamaarifa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.