Giter Site home page Giter Site logo

flac2opus's Introduction

flac2opus.sh

flac2opus.sh recursively encodes a directory of flac format files to opus, recreating the same directory structure in the output directory. It makes use of all CPU cores (or as many as you would like). The tool does partial updates, so that only new or modified files are (re-)encoded. Encodes are removed if the original no longer exists. Album art is copied to the encoded directory if its name matches {cover,folder}.{jpg,png}.

Usage

Usage:
    ./flac2opus.sh [options] <FLAC_DIR> <LOSSY_DIR>

Options:
    -h          Print this help page
    -b <kbit/s> Set which bitrate to encode to
    -f          Rename cover images to folder.{png,jpg} (these are recognized as album art on Android)
    -j <jobs>   Run up to <jobs> encoder processes in parallel.

Dependencies

Flac, opus-tools, bash.

flac2opus's People

Contributors

simonpersson avatar simonteixidor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flac2opus's Issues

Request: copy cover.jpg or folder.jpg

Hi there,

Firstly thanks for script! I guess I don't need to learn to write one now!
It sure does look intimidating that a FLAC to OPUS Bash script would look like this.

As an improvement, the script could also copy folder.jpg as well. This seems simple enough for someone with minimal Bash scripting experience that they could just copy and paste the segment of code referring to cover.jpg and change it to folder.jpg, but for the practice of "clean code", I imagine there would be a better way than just doing that.

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.