You are not logged in.

#1 2005-01-08 09:44:21

Krzysiek_W
Member
From: Poland, Bialystok - tam gdzie
Registered: 2004-12-08
Posts: 45
Website

[new] cuetools and shntool

Hi,
two programs:

cuetools is a set of utilities for working with cue and toc files. It includes:

cueconvert
    convert between the cue and toc formats
cuebreakpoints
    print the breakpoints from a cue or toc file
cueprint
    print disc and track infomation for a cue or toc file

http://cuetools.berlios.de

pkgname=cuetools
pkgver=1.2
pkgrel=1
pkgdesc="Cuetools is a set of utilities for working with cue and toc files."
url="http://cuetools.berlios.de"
license="GPL"
depends=('gcc')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://download.berlios.de/cuetools/$pkgname-$pkgver.tar.gz)
md5sums=('23fb850b2c65a9b44df42434ae01d50f')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

and shntool  http://www.etree.org/shnutils/shntool
shntool is a multi-purpose WAVE data processing and reporting utility. File formats are abstracted from its core, so it can process any file that contains WAVE data, compressed or not - provided there exists a format module to handle that particular file type.

shntool has native support for .wav files. If you want it to work with other formats, you must have the appropriate helper program installed. The "Helper programs" section below contains links to helper programs for each format that shntool supports.

pkgname=shntool
pkgver=2.0.3
pkgrel=1
pkgdesc="Shntool is a multi-purpose WAVE data processing and reporting utility."
url="http://www.etree.org/shnutils/shntool"
license="GPL"
depends=('gcc')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.etree.org/shnutils/shntool/source/$pkgname-$pkgver.tar.gz)
md5sums=('7cdc5049023067fa532ef7010c187349')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

I'm not sure about depends, is there any tool or script to determine package depends?


Greetings
Krzysiek Wojszko

Offline

#2 2005-01-08 18:10:41

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [new] cuetools and shntool

Krzysiek_W wrote:

I'm not sure about depends, is there any tool or script to determine package depends?

the easy way is checking the PKGBUILD and the pkg with "namcap"


The impossible missions are the only ones which succeed.

Offline

#3 2005-01-09 03:16:10

Krzysiek_W
Member
From: Poland, Bialystok - tam gdzie
Registered: 2004-12-08
Posts: 45
Website

Re: [new] cuetools and shntool

thanks,
in this PKGBUILDs should be 'glibc' instead of 'gcc'.


Greetings
Krzysiek Wojszko

Offline

#4 2005-01-13 16:54:23

Krzysiek_W
Member
From: Poland, Bialystok - tam gdzie
Registered: 2004-12-08
Posts: 45
Website

Re: [new] cuetools and shntool

there is error (Makefiles need fixing) in cuetools PKGBILD, i shuld look like this:

pkgname=cuetools
pkgver=1.2
pkgrel=2
pkgdesc="Cuetools is a set of utilities for working with cue and toc files."
url="http://cuetools.berlios.de"
license="GPL"
depends=('glibc')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://download.berlios.de/cuetools/$pkgname-$pkgver.tar.gz)
md5sums=('23fb850b2c65a9b44df42434ae01d50f')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  cd tools
  sed -i 's//usr/local//usr/g' Makefile
  cd ..
  cd man
  sed -i 's//usr/local//usr/g' Makefile
  cd ..
  make || return 1
  make DESTDIR=$startdir/pkg install
}

I also write a little (ad hoc writen) sript to cut big .ape files to single track files, useing .cue files (sometimes people releases audio cd as CDImage.ape & CDImage.cue files).

#!/bin/bash

INFILE="CDImage.ape"
CUEFILE="CDImage.cue"

WAVFILE=$(echo $INFILE|sed 's/.[aA][pP][eE]$//').wav
TITLES=$(cueprint -t %n.%t= $CUEFILE)

#convert to wav (shnsplit not always cat split .ape)
mac $INFILE $WAVFILE -d

#split wav file
cuebreakpoints $CUEFILE | shnsplit $WAVFILE

#rm big wave file
rm $WAVFILE

#change files names
((i=1))
IFS="="

for waves in $TITLES
do
 if (( i < 10 ))
  then zz="00" && z="0"
 fi
 if ((i >= 10 && i < 100 ))
  then zz="0"  && z=""
 fi
 if ((i >= 100 && i < 1000 ))
  then zz=""  && z=""
 fi
 mv split-track$zz$i.wav $z$waves.wav
 #echo split-track$zz$i.wav "==>" $z$waves.wav
 ((i++))
done


#flac all .waves
flac *.wav

#clean up
rm *wav

Greetings
Krzysiek Wojszko

Offline

#5 2005-03-09 18:09:27

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] cuetools and shntool

tnx for the packages and script... for "audio idiot" like myself it did the ape trick just as i wanted smile

Offline

#6 2005-03-09 22:39:27

Krzysiek_W
Member
From: Poland, Bialystok - tam gdzie
Registered: 2004-12-08
Posts: 45
Website

Re: [new] cuetools and shntool

I make a little fix to this script to convert do .mpc

#!/bin/bash

#mpc quality
Q="6"
INFILE="CDImage.ape"
CUEFILE="CDImage.ape.cue"
#CUEFILE=$1

WAVFILE=$(echo $INFILE|sed 's/.[aA][pP][eE]$//').wav
TITLESS=$(cueprint -t "%n - %t=" $CUEFILE)

#clean from , ; '  ` (  )  [  ]  ==> .
TITLES=$(echo $TITLESS|sed "s/[,;'`()[]]/./")

#convert to wav (shnsplit not always cat split .ape)
mac $INFILE $WAVFILE -d

#split wav file
cuebreakpoints $CUEFILE | shnsplit $WAVFILE

#remove big-wave
rm $WAVFILE

#change files names
((i=1))
IFS="="

for waves in $TITLES
do
 if (( i < 10 )) 
  then zz="00" && z="0"  
 fi
 if ((i >= 10 && i < 100 ))    
  then zz="0"  && z=""
 fi
 if ((i >= 100 && i < 1000 ))    
  then zz=""  && z=""
 fi
 mv split-track$zz$i.wav $z$waves.wav
 echo split-track$zz$i.wav "==>" $z$waves.wav
 ((i++)) 
done

IFS=$'n'

for waves in $(ls *wav)
do
# mppenc  --notags --quality $Q $waves  
 mppenc  --quality $Q $waves  
 echo "=== deleting  " $waves 
 rm $waves
done

also maby this can by useful  - it converts waves, apes or flacs to mpc


#!/bin/bash

#mpc quality
Q="6"

IFS=$'n'

for waves in $(ls *wav 2>/dev/null)
do
 mppenc  --quality $Q $waves  || return 1
 echo "=== deleting  " $waves 
 rm $waves
done

for waves in $(ls *ape 2>/dev/null)
do
 mac $waves $(echo $waves|sed 's/.ape$/.wav/') -d || return 1
 mppenc  --quality $Q $(echo $waves|sed 's/.ape$/.wav/')  || return 1
 echo "=== deleting  " $waves 
 rm $waves $(echo $waves|sed 's/.ape$/.wav/')
done

for waves in $(ls *flac 2>/dev/null)
do

 mppenc  --quality $Q $waves  $(echo $waves|sed 's/.flac$/.mpc/')|| return 1
 echo "=== deleting  " $waves 
 rm $waves
done

Greetings
Krzysiek Wojszko

Offline

Board footer

Powered by FluxBB