Skip to main content

A tool for the transcoding of audio from lossless sources

Project description

# OATS OATS is Another Transcoding Script

OATS is a commandline tool that makes transcoding easy on Windows, Linux, or Mac. The only prerequisites for OATS are FFmpeg and Python3. It can also make torrents.

## A quick intro

OATS has one main script, called oats. Once installed you can make a quick config file to get started:

oats mkconfig

This will make a file in the current working directory named oats.conf. The options accessible there are the same as in the interface, so you can configure the defaults for your use. Any options specified at the command line take priority over the config file. All options not supplied to the command line will use their values set in the config file.

To see the options for oats, access the help:

oats -h

Here’s a sample command for transcoding two albums to MP3 at constant bitrate of 320 and MP3 of variable bitrate, quality 2, resulting files will be put into a directory named transcodes:

oats –output-dir transcodes –formats “MP3 CBR 320,MP3 VBR 2” Album1 Album2

## What formats can I use?

The best way to see what audio formats you can use is to enter

oats -F

which will print a list of all available formats on your system. Formats may allow parsed arguments which will be described per {name;units:restrictions}. For instance “MP3 CBR {bitrate;kbps:8-320}” indicates that MP3 constant bitrate accepts values in kbps between 8 and 320.

## Torrent creation options

The following options pertain to torrent creation: –torrent=<bool>, –announce-url=<url>, –torrent-dir=<dir>, and –source=<str>. A full example of these options is given here.

oats –torrent true –torrent-dir torrent_output –announce-url https://blah.com MyAlbum

## Tool Extensibility in OATS

OATS is a frontend to a variety of audio codec tools. In its first iteration it was just a frontend to FFmpeg, but now is able to modularly use different tools and dynamically detect what is available. For instance, if you install LAME on your system, and “lame” can be found on the path, OATS will attempt to encode your MP3s with it instead of FFmpeg (currently, FFmpeg’s Xing header is considered deficient). Similarly, Opus Tools’ opusenc and opusdec, and Vorbis Tools’ oggenc and oggdec will be employed over FFmpeg.

FFmpeg provides a good baseline of support for most formats, and you may never need anything else. I hope to also add Sound eXchange (SoX) in the future as a general tool.

## TODO - Things I want to do that are not yet done

  • ALAC support

  • AAC support

  • SoX Codecs

  • Channel Ops?

  • Possibly provide workaround for Windows Powershell tab-completion bug

  • magnet link support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OATS-0.2.5.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file OATS-0.2.5.tar.gz.

File metadata

  • Download URL: OATS-0.2.5.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for OATS-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b054ecf53d33e1036870cf87bb4cacfe4fd41c5914ad9672bfa8edf77e52950b
MD5 65e3eadb4e71392fe503ea6a6ecc92d0
BLAKE2b-256 13ddce491b56d35a7bd2ca3db62246b4242d709a76377a2143af2c3a44eb56d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page