Shorten formula.
Shorten reduces the size of waveform files (such as audio) using Huffman coding of prediction residuals and optional additional quantisation. In lossless mode the amount of compression obtained depends on the nature of the waveform. Those composing of low frequencies and low amplitudes give the best compression, which may be 2:1 or better. Lossy compression operates by specifying a minimum acceptable segmental signal to noise ratio or a maximum bit rate. Lossy compression operates by zeroing the lower order bits of the waveform, so retaining waveform shape.
This commit is contained in:
parent
a3c29ba9cd
commit
dcd8571b97
1 changed files with 12 additions and 0 deletions
12
Formula/shorten.rb
Normal file
12
Formula/shorten.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require 'brewkit'
|
||||
|
||||
class Shorten <Formula
|
||||
@url='http://www.etree.org/shnutils/shorten/dist/src/shorten-3.6.1.tar.gz'
|
||||
@homepage='http://www.etree.org/shnutils/shorten/'
|
||||
@md5='fb59c16fcedc4f4865d277f6e45866a7'
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
||||
system "make install"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue