Coder Social home page Coder Social logo

eac-crc's Introduction

eac-crc

Description

A bash script to compute the CRC of WAV files which Exact Audio Copy shows in its log files.

Installation:

This script was written on Ubuntu 12.04 amd64. It should work on any Debian-based Distribution. For using it, the following packages need to be installed:

shntool
rhash

Syntax:

For normal operation:

eac-crc (filename of WAV audio)

To only print the version number:

eac-crc --version

Output

Upon success, it prints the EAC CRC to stdout and nothing else. The CRC is computed by using shncat to feed the raw audio stream without the WAV header into a standard CRC32 computation.

Upon failure of shncat (for example when the input file is not found), nothing is printed to stdout. An error message is printed to stderr and the exit code of shncat is returned.

Exit code

The exit code is zero upon success and non-zero upon failure.

Upon failure, the exit code of shncat or rhash might be returned. Shncat is piped to rhash and bash option "pipefail" is used to obtain the exit code. For determining which exit code is returned upon failure, read up the "pipefail" bash option.

Author:

Leo Bogert

Version:

1.2

Donations:

bitcoin:1PB5EnfzE7wg4ciVrMTF3ht4WDq1UYWBFu

License:

GPLv3

eac-crc's People

Contributors

leo-bogert avatar

Watchers

 avatar  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.