Code Monkey home page Code Monkey logo

synology-transcode's Introduction

synology-transcode

Transcode high quality audio files automatically to mp3, package for Synology DiskStation and related products.

It's a script. You need to ssh into the box and run it by hand. But it installs nicely.

Features

  • Uses file hashes to detect if a source file has been processed.
  • Can merge multiple source directories; if two source directories contain source files for the same target file, the first one wins.
  • Include only specific source files (pattern matching).
  • Exclude source files or directories (pattern matching).
  • Try to be just a little clever about really preserving metadata during transcoding.
  • Output is always .mp3 in variable bitrate. I'm lazy.

Usage

Create a .synology-transcode file in INI format in the directory you want to run the script in, or in your user's home directory. Then run synology-transcode.

Configuration Example

[directories]
sources = /some/path
  /some/other/path
target = /target/path

[filters]
includes = *.flac *.wav
excludes = @eaDir
  • Separate source paths with newline.
  • There is only one target path.
  • Separate includes and excludes with spaces (yeah, boo, I know).
  • Includes and excludes are optional. Above are the defaults.
  • It makes sense to exclude @eaDir, so do that.

Releases

Find them in the result_spk directory.

License

The license is in the LICENSE file. It's probably bad form to name this package synology-*, but I wasn't feeling creative. Similarly, the icon is derived from the ffmpeg project, because, guess what, ffmpeg is what this script uses under the hood.

So if you have legal claim to either, drop me a line. I've no interest in infringing, this is just a side project for me. Did I mention I'm lazy?

Build

  1. wget http://sourceforge.net/projects/dsgpl/files/toolkit/pkgscripts.tgz
  2. pkgscripts/EnvDeploy -v 5.0
  3. sudo sudo pkgscripts/PkgCreate.py -x0 -c synology-transcode

synology-transcode's People

Contributors

jfinkhaeuser avatar

Stargazers

 avatar

Watchers

 avatar  avatar

synology-transcode's Issues

Add a background service

The service should watch the source directory for changes, e.g with watchdog. Unfortunately, python3 does not come with everything to install pip, therefore installing modules like watchdog via pip doesn't work.

Possibly we'll use python2.x instead.

Add UI

  • for configuration
  • for progress

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.