Skip to content

ATTron/merlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merlin Go Report Card

Merlin is a video encoder that automatically monitors for new video files and begins converting them via the HandBrakeCLI

Setup

Currently this project only supports Linux as it uses the inotify API for file system monitoring

  • Pull latest release or clone repo

    • git clone https://github.com/attron/merlin.git
    • wget https://github.com/ATTron/merlin/releases/download/1.x.x/merlin-linux.tar.gz
  • Install HandBrakeCLI

    • If you are on RHEL, CentOS, or Debian you can use the Makefile if you do not have HandBrakeCLI installed make install-handbrake
  • Install and setup default configuration

    sudo make install

You can find a generated config.json in /etc/merlin/

The config.json file takes the following arguments:

   WatchDir  <- The directory for Merlin to watch
   OutputDir <- Directory that Merlin will store output files
   Encoder   <- The chosen encoder format (run HandBrakeCLI --help to see list of available encoder formats)
   Preset    <- The HandBrakeCLI presets (run HandBrakeCLI -z to see available video presets)
   Format    <- The output format for the encoded files (av_mp4, av_mkv, av_webm)
   Args      <- Extra arguments passed to HandBrakeCLI
  • Start merlin
    You may need to run merlin as sudo if you are getting a permission denied error
   make start 

Building for development

In order to accurately test the functionality of merlin you will need to run it on a LINUX machine with golang installed

    make development

Contributing

Contributions welcome. If interested,fork this repo and submit a PR.

License

MIT License, see LICENSE

About

Linux Video Auto Encoder For Handbrake. Drop files into watch directory and Merlin will automatically begin converting them to specified format

Resources

License

Stars

Watchers

Forks

Packages

No packages published