View previous topic :: View next topic |
Author |
Message |
leon_73 Guru
Joined: 13 Mar 2003 Posts: 505 Location: Milano
|
Posted: Mon Mar 14, 2005 4:35 pm Post subject: [EBUILD] fdmf ovvero come ti tolgo i doppioni audio |
|
|
Ciao a tutti,
Sono lieto di presentarvi il mio primo ebuid pubblico
Il programma serve a fare una ricerca dei vari file audio doppi che uno possa avere. La cosa bella del programma e' che non si basa sul nome del file o sui tag contenuti, ma proprio sullo stream audio!!!!
Se ho capito bene i formati supportati sono tutti quelli che mplayer riesce a leggere!!!
Qui di seguito il codice dell'ebuid:
Code: | # Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="fdmf is portable perl/C software for finding pairs of music files
in a collection that are likely to contain the same music"
HOMEPAGE="http://www.w140.com/audio/"
SRC_URI="http://www.w140.com/audio/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="media-libs/plotutils
dev-lang/perl
media-video/mplayer
sci-libs/fftw
sys-libs/gdbm
dev-perl/Digest-MD5"
inherit eutils
src_compile() {
if built_with_use dev-lang/perl gdbm
then
einfo "You should emerge dev-lang/perl with gdbm USE flag before install fdmf"
else
emake || die "make failed"
fi
}
src_install() {
#make DESTDIR=${D} install || die
dodoc CHANGES COPYING README INSTALL cleanup_dups
dobin fdmf vector_pairs sonic_reducer
}
pkg_postinst() {
einfo "Maybe you can take a look also to cleanup_dups"
} |
Per installarlo
Code: | # mkdir -p /usr/local/portage/app-misc/fdmf
_____copiare il contenuto dell'ebuid in un file di nome fdmf-0.0.9n.ebuild______
# cd /usr/local/portage/app-misc/fdmf
# ebuild fdmf-0.0.9n.ebuild digest
# emerge fdmf |
una volta installato basta lanciare il comando Code: | $ fdmf nome_dir_da_controllare
$ vector_pairs |
Spero che possa essere utile a qualcuno oltre a me... se poi vedo dei riscontri positivi lo presento su bugzilla.
Leo
Last edited by leon_73 on Tue Mar 15, 2005 8:18 am; edited 3 times in total |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Mon Mar 14, 2005 4:48 pm Post subject: Re: [EBUILD] fdmf ovvero come ti tolgo i doppioni audio |
|
|
leon_73 wrote: | Il programma serve a fare una ricerca dei vari file audio doppi che uno possa avere. La cosa bella del programma e' che non si basa sul nome del file o sui tag contenuti, ma proprio sullo stream audio!!!!
Se ho capito bene i formati supportati sono tutti quelli che mplayer riesce a leggere!!! |
Detto così ci mette una vita... lo hai provato? Con che risultati (e tempistiche)? _________________ Ciao da me! |
|
Back to top |
|
|
leon_73 Guru
Joined: 13 Mar 2003 Posts: 505 Location: Milano
|
Posted: Mon Mar 14, 2005 4:55 pm Post subject: Re: [EBUILD] fdmf ovvero come ti tolgo i doppioni audio |
|
|
randomaze wrote: | Detto così ci mette una vita... lo hai provato? Con che risultati (e tempistiche)? |
Tratto dal README del prg
Quote: | NOTE: The first time you run this program it will do a lot of processing.
It takes 10 minutes to process a music_dir containing 140 mp3 files on
my Apple G4. It will attempt to cache the result so that subsequent runs
are faster. You can interrupt it and your progress will not be lost.
ANOTHER NOTE: On my current development box, an IBM T20, mplayer is the
fastest mp3 decoder. mpg123 is also quite fast, much faster than mpg321.
Some Linux distros come with mpg123 being a symbolic link to mpg321 since
mpg123 is not under GPL. Bottom line: you can use any program for decoding
if it can take the name of a music file as a command line arg and write the
raw decoded 44100/stereo/16-bit stream on stdout. You might want to take
some measurements on your system to see which decoder is fastest. |
Potra' essere lento quanto vuoi, ma per me svolge un lavoro che se fatto a manina sarebbe un delirio
Leo |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Mon Mar 14, 2005 5:28 pm Post subject: Re: [EBUILD] fdmf ovvero come ti tolgo i doppioni audio |
|
|
Sarebbe meglio sostituire questo blocco di codice:
leon_73 wrote: |
Code: | src_compile() {
if [ ! -z `emerge perl -pvtu|grep "\(\+gdbm\*\|\-gdbm\)"`]
then
einfo "You should emerge dev-lang/perl with gdbm USE flag before install fdmf"
else
emake || die "make failed"
fi
}
|
|
con:
Code: | src_compile() {
if built_with_use perl gdbm
then
einfo "You should emerge dev-lang/perl with gdbm USE flag before install fdmf"
else
emake || die "make failed"
fi
}
|
dal momento che è scorretto chiamare un emerge da dentro un ebuild.
P.S.: all'inizio devi aggiungere anche:
dato che la funzione sopradetta si trova in quella eclass. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
leon_73 Guru
Joined: 13 Mar 2003 Posts: 505 Location: Milano
|
Posted: Tue Mar 15, 2005 8:22 am Post subject: |
|
|
Grazie gutter,
Ho provveduto a sistemare il tutto.
Avevo provato a chiedere in un altro post ma nessuno era riuscito a suggerirmi la tua soluzione
Leo |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Tue Mar 15, 2005 9:09 am Post subject: Re: [EBUILD] fdmf ovvero come ti tolgo i doppioni audio |
|
|
leon_73 wrote: | Potra' essere lento quanto vuoi, ma per me svolge un lavoro che se fatto a manina sarebbe un delirio |
Vero... mi sa che lo proverò (anche se non so quando....) _________________ Ciao da me! |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Tue Mar 15, 2005 9:24 am Post subject: |
|
|
leon_73 wrote: | Ho provveduto a sistemare il tutto.
Avevo provato a chiedere in un altro post ma nessuno era riuscito a suggerirmi la tua soluzione
|
In realtà nell'altro post io ti avevo suggerito una soluzione (ma avendo letto velocemente il tuo post) che non era quella che cercavi. Dopo quando ho visto il tuo ebuild ho capito cosa dovevi fare. Mi scuso per l'errore di incomprensione dell'altro post _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
|