Autor Tema: Como compilar WAVPACK en modo estático para GNU/Linux  (Leído 365 veces)

Fl0ppy

  • Administrador
  • Usuario Héroe
  • *****
  • Mensajes: 8163
Como compilar WAVPACK en modo estático para GNU/Linux
« en: 25 de Mayo de 2021, 10:42:34 pm »

Hybrid Lossless Audio Compression

WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. For version 5.0.0, several new file formats and lossless DSD audio compression were added, making WavPack a universal audio archiving solution.

In the default lossless mode WavPack acts just like a WinZip compressor for audio files. However, unlike MP3 or WMA encoding which can affect the sound quality, not a single bit of the original information is lost, so there's no chance of degradation. This makes lossless mode ideal for archiving audio material or any other situation where quality is paramount. The compression ratio depends on the source material, but generally is between 30% and 70%.

The hybrid mode provides all the advantages of lossless compression with an additional bonus. Instead of creating a single file, this mode creates both a relatively small, high-quality lossy file that can be used all by itself, and a "correction" file that (when combined with the lossy file) provides full lossless restoration. For some users this means never having to choose between lossless and lossy compression!

WavPack employs only well known, public domain techniques (i.e., linear prediction with LMS adaptation, Elias and Golomb codes) in its implementation. Methods and algorithms that have ever been patented (e.g., arithmetic coding, LZW compression) are specifically avoided. This ensures that WavPack encoders and decoders will remain open and royalty-free.

Features
WavPack 5.4.0 features include:
Compatible with virtually all audio data formats including 8, 16, 24, and 32-bit integer PCM; 32-bit float PCM; DSD audio; mono, stereo, and multichannel; sampling rates from 6 to 192 kHz (and non-standard rates)
Handles all modern audio file formats including Microsoft WAV/BWF/RF64, Sony Wave64, Apple CAF, Philips DSDIFF, and Sony DSF (all with no size limitations)
Multiplatform support including Windows, Linux, and OS X, plus a Flash decoder and encoder and a Silverlight decoder that can work virtually anywhere, and now a web-based audio converter that can decode WavPack files online
DirectShow filters for Windows, plus full Unicode support on the Windows command-line
Easily transcode from WavPack to WavPack with a single command (including tag copy)
Unique hybrid mode (provides high quality lossy + "correction" file)
Option to automatically verify every WavPack file when created
Assembly language optimizations for x86, x64, and ARM
Instantly seekable and streaming capable (and gapless)
ReplayGain (including WavPack file scanner and compatible plugins)
Uses ID3v1 and APEv2 tags for metadata (including ReplayGain)
Error-tolerant block format conducive to hardware decoding
Optional "asymmetrical" mode for improved compression
MD5 audio checksums for verification and identification
Hybrid mode operates as low as 2.25 bits/sample (or 196 kbps for CD audio)
Dynamic noise shaping (dns) for optimum quality at lower hybrid bitrates
Free and open source with easy to use C library API and unrestrictive license (BSD)
Intuitive command line interface (with wildcards and destination directory)
Small, efficient executable (no large programs or dlls to install)
Java and C# decoders and encoders available
Complete piping support

https://www.wavpack.com/

https://www.wavpack.com/downloads.html

Código: [Seleccionar]
#
#wavpack script compiler REV 31082021 by KAPITALSIN
#
sudo apt-get install git autoconf libtool
git clone https://github.com/dbry/WavPack.git wavpack
cd wavpack
mkdir -p build
./autogen.sh
./configure --enable-static --disable-shared
make -j3 LDFLAGS="-all-static"
cp cli/wavpack build
cp cli/wvgain build
cp cli/wvtag build
cp cli/wvunpack  build
strip build/*
echo "Binaries are in wavpack/build"

Adjunto tres binarios compilados estáticamente

-Compilado  bajo GNU/Linux Mint Mate 19.3 5.4.0-73-generic #82~18.04.1-Ubuntu SMP x86_64 GLIBC 2.27-3ubuntu1.4) 2.27 con GCC
-Compilado bajo ARCOS/Linux (fork de ARCH) con GCC
-Compilado bajo GNU/Linux Mint Mate 19.3 5.4.0-73-generic #82~18.04.1-Ubuntu SMP x86_64 GLIBC 2.27-3ubuntu1.4) 2.27 con MUSL
Siempre que pasa igual sucede lo mismo



Fl0ppy

  • Administrador
  • Usuario Héroe
  • *****
  • Mensajes: 8163
Re:Como compilar WAVPACK en modo estático para GNU/Linux
« Respuesta #1 en: 31 de Agosto de 2021, 11:27:43 pm »
Creada versión nueva del script del compilador, ahora instala todas las dependéncias necesarias para su compilado
El post inicial y el adjunto del script se han actualizado  :ok:
Siempre que pasa igual sucede lo mismo



Fl0ppy

  • Administrador
  • Usuario Héroe
  • *****
  • Mensajes: 8163
Re:Como compilar WAVPACK en modo estático para GNU/Linux
« Respuesta #2 en: 23 de Septiembre de 2021, 12:38:14 pm »
Añadidos binarios estáticos compilados con MUSL, ahora el ahorro es de 281 KB  en comparación la última verisón (la R2) :ok:
Siempre que pasa igual sucede lo mismo