Giter Site home page Giter Site logo

handbrake-watcher's Introduction

Handbrake Watcher

Created by Steve Hannah

Synopsis

Handbrake Watcher is a command line tool that monitors a folder and all of its subfolders for media files with a designated extension (default .mkv) and transcodes them using the HandbrakeCLI command-line tool into a different codec (default mp4 with the 'High Profile').

Installation

Windows

> npm install -g handbrake-watcher

Mac/Linux

$ sudo npm install -g handbrake-watcher

Usage:

Open a terminal window and navigate to the directory you wish to watch. Then run:

$ handbrake-watcher

This will start the daemon, which will scan the entire directory and subdirectories every 5 minutes. When it is finished converting a file, it will delete the original.

Custom Configuration Options:

You can customize the operation of the watcher by placing a config file named 'handbrake.properties' in the directory that is being watched. Properties may also be overridden on the command line using -Dpropname=propvalue The following configuration options are supported:

  • source.extension - The 'source' extension of files to look for. Default is mkv. Multiple extensions can be separated by spaces.
  • destination.extension - The extension used for converted files. Default is mp4. E.g. This would convert a file named myvideo.mkv into a file named myvideo.mp4 in the same directory.
  • handbrakecli - The path to the HandbrakeCLI binary. If you have this binary in your path already, then the handbrake-watcher will use that one by default.
  • handbrake.flags - The flags to use for the handbrake conversion. Only provide flags that don't require a value. E.g. --all-audio. Separate flags by spaces. For a full list of HandbrakeCLI flags, see the HandBrakeCLI documentation
  • handbrake.options.<optionname> - Specify a particular handbrake command line option with value. E.g. handbrake.options.preset=High Profile is akin to providing the command-line flag --preset='High Profile' to HandbrakeCLI.
  • delete_original - Whether to delete the original file upon successful conversion. Values: true|false . Default: true

handbrake-watcher's People

Contributors

shannah avatar

Watchers

James Cloos 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.