Results 1 to 2 of 2

Thread: New profile: WavPack Audio Encoding

  1. #1
    Join Date
    Apr 2008
    Posts
    126

    Default New profile: WavPack Audio Encoding

    Lossless audio encoder. See http://wavpack.com/

    Code:
    diff -Naur a/pts/test-profiles/encode-wavpack.xml b/pts/test-profiles/encode-wavpack.xml
    --- a/pts/test-profiles/encode-wavpack.xml	1970-01-01 01:00:00.000000000 +0100
    +++ b/pts/test-profiles/encode-wavpack.xml	2008-06-01 12:20:01.030151971 +0200
    @@ -0,0 +1,23 @@
    +<PhoronixTestSuite>
    +	<TestProfile>
    +		<Version>0.1.0</Version>
    +		<TestType>Processor</TestType>
    +		<SoftwareType>Utility</SoftwareType>
    +		<License>FREE</License>
    +		<Status>VERIFIED</Status>
    +		<Maintainer>apaige</Maintainer>
    +		<DownloadSize>0.3</DownloadSize>
    +		<EnvironmentSize>5</EnvironmentSize>
    +	</TestProfile>
    +	<TestInformation>
    +		<Title>WavPack Audio Encoding</Title>
    +		<Version>4.41.0</Version>
    +		<SubTitle>78MB WAV File To WavPack</SubTitle>
    +		<Executable>encode-wavpack</Executable>
    +		<TimesToRun>3</TimesToRun>
    +		<ResultScale>Seconds</ResultScale>
    +		<Proportion>LIB</Proportion>
    +		<Description>This test times how long it takes to encode a sample WAV file to WavPack format.</Description>
    +        <ExternalDependencies>build-utilities</ExternalDependencies>
    +	</TestInformation>
    +</PhoronixTestSuite>
    diff -Naur a/pts/test-resources/encode-wavpack/downloads.xml b/pts/test-resources/encode-wavpack/downloads.xml
    --- a/pts/test-resources/encode-wavpack/downloads.xml	1970-01-01 01:00:00.000000000 +0100
    +++ b/pts/test-resources/encode-wavpack/downloads.xml	2008-06-01 12:20:01.030151971 +0200
    @@ -0,0 +1,13 @@
    +<PhoronixTestSuite>
    +	<Downloads>
    +		<Package>
    +			<URL>http://wavpack.com/wavpack-4.41.0.tar.bz2</URL>
    +			<MD5>6a13edeae437498db78fe528d9e95144</MD5>
    +		</Package>
    +		<Package>
    +			<URL>http://www.phoronix-test-suite.com/benchmark-files/pts-trondheim-wav-2.tar.gz, http://www.phoronix.net/downloads/phoronix-test-suite/benchmark-files/pts-trondheim-wav-2.tar.gz</URL>
    +			<MD5>3ae2f03b722fb2b8805ea0cdb8ca60e2</MD5>
    +			<DownloadTo>SHARED</DownloadTo>
    +		</Package>
    +	</Downloads>
    +</PhoronixTestSuite>
    diff -Naur a/pts/test-resources/encode-wavpack/install.sh b/pts/test-resources/encode-wavpack/install.sh
    --- a/pts/test-resources/encode-wavpack/install.sh	1970-01-01 01:00:00.000000000 +0100
    +++ b/pts/test-resources/encode-wavpack/install.sh	2008-06-01 12:20:48.977541366 +0200
    @@ -0,0 +1,25 @@
    +#!/bin/sh
    +
    +if [ ! -f ../pts-shared/pts-trondheim-2.wav ]
    +  then
    +     tar -xvf ../pts-shared/pts-trondheim-wav-2.tar.gz -C ../pts-shared/
    +fi
    +
    +THIS_DIR=$(pwd)
    +mkdir $THIS_DIR/wavpack_
    +
    +tar -xjf wavpack-4.41.0.tar.bz2
    +cd wavpack-4.41.0
    +./configure --prefix=$THIS_DIR/wavpack_ --enable-mmx
    +make -j $NUM_CPU_JOBS
    +make install
    +cd ..
    +rm -rf wavpack-4.41.0/
    +
    +echo "#!/bin/sh
    +./wavpack_/bin/wavpack -q -r -hhx2 -o - ../pts-shared/pts-trondheim-2.wav >/dev/null" > wavpack_process
    +chmod +x wavpack_process
    +
    +echo "#!/bin/sh
    +/usr/bin/time -f \"WAV To WavPack Encode Time: %e Seconds\" ./wavpack_process 2>&1" > encode-wavpack
    +chmod +x encode-wavpack
    diff -Naur a/pts/test-resources/encode-wavpack/parse-results.php b/pts/test-resources/encode-wavpack/parse-results.php
    --- a/pts/test-resources/encode-wavpack/parse-results.php	1970-01-01 01:00:00.000000000 +0100
    +++ b/pts/test-resources/encode-wavpack/parse-results.php	2008-06-01 12:20:01.030151971 +0200
    @@ -0,0 +1,5 @@
    +<?php
    +
    +$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "WAV To WavPack Encode Time:") + 27);
    +echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
    +?>

  2. #2

    Default

    In git, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •