Léa-Linux & amis :   LinuxFR   GCU-Squad   GNU
Aller à la page:  Page précédente 1 2 3 Page suivante
Page: 2 sur 3
Re: encodeur mp3/wav
Envoyé par: zelaurent

Bon,

donc on dzippe : "tar xzvf <le nom de ton fichier>"

on entre dans le repertoire créé :

cd <le nom du nouveau repertoire>

et la on regarde ce qu'il y a :

existe-il un fichier configure ?

Poste le Tuesday 6 September 2005 17:25:00
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: gerald74

oui ya un fichier mais je comprends pas ce kil ya d'ecris...

LAME 3.xx January 2001 Mark Taylor (http://www.mp3dev.org)


=======================================================================
Compile time options
=======================================================================
There are serveral targets which can be built from this
source code:

lame, lame.exe The command line encoder

mp3x A GTK based graphical MP3 frame analyzer. For debugging,
development, and studing MP3 frames produced by any
encoder.

lame_enc.dll a Windows DLL used by many GUIs which support lame.
(Can only be compiled by MSVC???)


lame.acm a Windows ACM codec which can be used by
many windows programs, and any directshow program.
See MSVC project files in ACM directory.
Right click on lame.inf to install.

lame_enc.dshow a Windows direct show filter for lame. Potentially has
more flexability than the ACM codec, but code needs some
work. See MSVC project files in dshow directory


libmp3lame.a the static encoding library used by all platforms, required
by all the above targets.

libmp3lame.so shared version of libmp3lame.a for *NIX platforms



The following compile time options can be used. For libmp3lame.a
and lame_enc.dll, none are required. On non-unix systems,
these options must be set in config.h or in the IDE.
On unix systems, they are set via ./configure.


#define HAVE_MPGLIB compile in mpglib's mp3 *decoding* capibility
#define HAVE_VORBIS compile in Vorbis decoding capibility
(you need libvorbis already built)
#define NOANALYSIS do not compile in hooks used by the
MP3 frame analyzer.


Options for the command line encoder:
#define LIBSNDFILE to use Erik de Castro Lopo's libsndfile
for input.
#define BRHIST to allow the optional display of the VBR histogram



=======================================================================
Building the software on *NIX platforms using configure:
=======================================================================
Run the following commands:

% ./configure
% make
% make install

For a complete list of options, try "./configure --help"
Some of the more usefull options:

For the encoding library:

--enable-mp3x Build the mp3 frame analyzer, 'mp3x'

--enable-mp3rtp Build the encode-to-RTP program, 'mp3rtp'
(broken as of August 2001)


For the LAME front end encoder:

--with-fileio=lame Use lame's internal file io routines [default]
=sndfile Use Erik de Castro Lopo's libsndfile
(Supports many more input formats, but no stdin possible currently)

--with-sndfile-prefix=DIR Alternate location for libsndfile
(if --with-fileio=sndfile)

--enable-brhist Include the VBR bitrate histogram feature
(default:yes if any ncurses/termcap available)"


Other usefull configure options:

--enable-debug Build a debug version

--enable-expopt Enable some more optimizations flags for
the compiler, may or may not produce
faster code

--prefix = PATH default is /usr/local
(LAME currently installs:
/usr/local/bin/lame
/usr/local/lib/libmp3lame.a
/usr/local/lib/libmp3lame.so
/usr/local/include/lame.h


--with-vorbis Enable Ogg Vorbis decoding support
--with-vorbis-prefix = PATH specify where to find Vorbis libs


Some more advanced ways to influence the build procedure
(experienced users only, use it at your own risk):

- If you want to use some custom defines for building (e.g. some out
of the file "DEFINES") use:

* bourne shell or compatible (ash, bash, zsh, ...):
CONFIG_DEFS="-Dmy_define" ./configure

* C shell or compatible (csh, tcsh, ...):
setenv CONFIG_DEFS "-Dmy_define"
./configure

- If you want to use some additional options for the compiler:

* bourne shell or compatible (ash, bash, zsh, ...):
CFLAGS="--my_flag" ./configure

* C shell or compatible (csh, tcsh, ...):
setenv CFLAGS "--my_flag"
./configure

Or some combination of the above.

Note:
If configure detects the presents of "nasm" some additional speed
improvements get compiled in (additional assembler code to detect
and use multimedia extensions of the used processor).


=======================================================================
Building the software on *NIX platforms without configure:
=======================================================================
% make -f Makefile.unix



=======================================================================
Building the software on Windows with MSVC:
(or MSVC + 3rd party C compiler)
=======================================================================
There are MSVC project files, and a Makefile.MSVC included
with the project. For production use, be sure to compile
a "Release" target, with the "maximum speed" compile
option, and #define NDEBUG.

It is possible to compile the GTK frame analyzer under windows, see
README.WINGTK

Various build options can be set in configMS.h

Note: project files for building lame.exe seem to be broken or not
quite compatable with MSVC6. The most reliable way to build lame and
lame_enc.dll is to run the .bat script (comes with MSVC6) which sets
up your VC environment to work from the command line, and then:

copy configMS.h config.h
nmake -f Makefile.MSVC comp=msvc asm=no

Project files for the dll, ACM codec and directshow filter
seem to be in better sahpe.






=======================================================================
Building the software on Windows with free compilers:
=======================================================================
LAME can be compiled with various Windows MSDOS ports (all free)
of GCC (DJGPP, Mingw32). See README.DJGPP.

For Mingw32, you should now be able to use the Unix Makefile that
comes with LAME. Try: "make -f Makefile.unix UNAME=MSDOS"
You may need to remove these lines from brhist.c:

#ifdef _WIN32
COORD Pos;
HANDLE CH;
CONSOLE_SCREEN_BUFFER_INFO CSBI;
#endif

Mingw32 users may also try to use the unix configure script (explained
above), it has _untested_ support for Mingw32.

Cygwin users should use the unix configure script (explained above). If
you have problems with the configure script try:
CC=gcc ./configure
Patches to enable the build of the lame_enc.dll with Cygwin and autoconf /
automake / libtool are welcome!

To use the Borland C compiler (now free!) see README.B32 and Makefile.B32.
Borland can also compile the lame_enc.dll, but this is untested.

Can DJGPP or Mingw32 produce lame_enc.dll?

Various build options can be set in configMS.h




Poste le Tuesday 6 September 2005 17:38:49
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: zelaurent

C'est le README non ce fihcier ? en gros il t'explique ce qu'il faut faire :


Run the following commands:

% ./configure
% make
% make install

donc tu nous fais un ./configure

ca va verifier que tu as tout ce qu'il faut pour compiler lame.

ensuite tu tape :

make

qui va compiler lame

et en fin tu passe en root

su
<passwd root>

et tu tape :

make install

pour installer lame.

@+

Poste le Tuesday 6 September 2005 17:42:43
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: miguel2i

lien pour compiler et installer un programme :
[lea-linux.org]

Sinon xmms permet de convertir un mp3 en wav avec le plugin de sortie enregistrement sur disque

Poste le Tuesday 6 September 2005 17:42:44
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: gerald74

je la trouve ou cette sortie ..???

Poste le Tuesday 6 September 2005 17:54:42
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: zelaurent

Chez xmms.org onglet plugins.

Poste le Tuesday 6 September 2005 17:55:52
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: gerald74

t bien sure de ta ligne de commande..
./configure??? ca fonctionne pas!!

Poste le Tuesday 6 September 2005 18:00:03
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: zelaurent

Ben oui.

le "./" c'est pour preciser de prendre la commande du répertoire courant et "configure" c'est le nom du script de configuration.

Tu es bien dans le répertoire créé par le tar xzvf ?

si oui tu dois avoir un fichier "configure".

Sinon, existe-t-il un fihcier Makefile.unix comme indiqué dans le README que tu as indiqué dansnun post précédent ?

Poste le Tuesday 6 September 2005 18:03:30
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: gerald74

oui j('ai bien ce fichier le voici:


# Makefile for LAME 3.xx
#
# LAME is reported to work under:
# Linux (i86), NetBSD 1.3.2 (StrongARM), FreeBSD (i86)
# Compaq Alpha(OSF, Linux, Tru64 Unix), Sun Solaris, SGI IRIX,
# OS2 Warp, Macintosh PPC, BeOS, Amiga and even VC++
#

# these variables are available on command line:
#
# make UNAME=xxxxx ARCH=xxxxx - specify a type of host
# make PGM=lame_exp - specify a name of an executable file
#
# if you have mingw32-gcc, try:
# make -fMakefile.unix UNAME=MSDOS
# or if you get the error
# "process_begin: CreateProcess((null), copy configMS.h config.h, ...)":
# make -fMakefile.unix UNAME=MSDOS NOUNIXCMD=NO
# or if you have NASM:
# make -fMakefile.unix UNAME=MSDOS HAVE_NASM=YES
#

ifeq ($(UNAME),MSDOS)
UNAME ?= UNKNOWN
ARCH = x86
NOUNIXCMD = YES
else
UNAME = $(shell uname)
ARCH = $(shell uname -m)
iARCH = $(patsubst i%86,x86,$(ARCH))
endif

HAVE_NASM = NO
HAVE_NEWER_GLIBC = NO

# generic defaults. OS specific options go in versious sections below
PGM = lame
CC = gcc
CC_OPTS = -O
CPP_OPTS = -Iinclude -Impglib -Ifrontend -Ilibmp3lame
AR = ar
RANLIB = ranlib
GTK =
GTKLIBS =
LIBSNDFILE =
LIBS = -lm
MP3LIB = libmp3lame/libmp3lame.a
MP3LIB_SHARED = libmp3lame/libmp3lame.so
MAKEDEP = -M
BRHIST_SWITCH =
LIBTERMCAP =
RM = rm -f

CPP_OPTS += -DHAVE_CONFIG_H -I.

##########################################################################
# -DHAVEMPGLIB compiles the mpglib *decoding* library into libmp3lame
##########################################################################
CPP_OPTS += -DHAVE_MPGLIB

##########################################################################
# -DUSE_LAYER_1/2 enables Layer1 or Layer2 *decoding* abilities
##########################################################################
CPP_OPTS += -DUSE_LAYER_1 -DUSE_LAYER_2

##########################################################################
# -DTAKEHIRO_IEEE754_HACK enables Takehiro's IEEE hack
##########################################################################
ifeq ($(iARCH),x86)
CPP_OPTS += -DTAKEHIRO_IEEE754_HACK
endif

##########################################################################
# Define these in the OS specific sections below to compile in code
# for the optional VBR bitrate histogram.
# Requires ncurses, but libtermcap also works.
# If you have any trouble, just dont define these
#
# BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_{NCURSES_}TERMCAP_H
# LIBTERMCAP = -lncurses
# LIBTERMCAP = -ltermcap
#
# or, to try and simulate TERMCAP (ANSI), use:
# BRHIST_SWITCH = -DBRHIST
#
##########################################################################


##########################################################################
# Define these in the OS specific sections below to compile in code for:
#
# SNDLIB = -DLIBSNDFILE to use Erik de Castro Lopo's libsndfile
# [www.zip.com.au] instead of LAME's internal
# routines. Also set:
#
# LIBSNDFILE = -lsndfile
# or
# LIBSNDFILE = -L/location_of_libsndfile -lsndfile
#
##########################################################################


##########################################################################
# Define these in the OS specific sections below to compile in code for
# the GTK mp3 frame analyzer
#
# Requires -DHAVE_MPGLIB
#
# GTK = -DHAVE_GTK `gtk-config --cflags`
# GTKLIBS = `gtk-config --libs`
#
##########################################################################




##########################################################################
# LINUX
##########################################################################
ifeq ($(UNAME),Linux)
# remove these lines if you dont have GTK, or dont want the GTK frame analyzer
GTK = -DHAVE_GTK `gtk-config --cflags`
GTKLIBS = `gtk-config --libs`
# Comment out next 2 lines if you want to remove VBR histogram capability
BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_TERMCAP_H
LIBTERMCAP = -lncurses
# uncomment to use LIBSNDFILE
# SNDLIB = -DLIBSNDFILE
# LIBSNDFILE=-lsndfile

# suggested for gcc-2.7.x
# CC_OPTS = -O3 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -Wall -pedantic
# CC_OPTS = -O9 -fomit-frame-pointer -fno-strength-reduce -mpentiumpro -ffast-math -finline-functions -funroll-loops -Wall -malign-double -g -march=pentiumpro -mfancy-math-387 -pipe -pedantic

# for debugging:
CC_OPTS = -UNDEBUG -O -Wall -pedantic -ggdb -DABORTFP

# for lots of debugging:
# CC_OPTS = -DDEBUG -UNDEBUG -O -Wall -pedantic -g -DABORTFP


ifeq ($(CFG),RH)
ifeq ($(PREC),SINGLE)
CPP_OPTS += -DFLOAT8=float -DREAL_IS_FLOAT=1
endif
# these options for gcc-2.95.2 to produce fast code
# CC_OPTS = \
# -Wall -O9 -fomit-frame-pointer -march=pentiumpro \
# -finline-functions -fexpensive-optimizations \
# -funroll-loops -funroll-all-loops -pipe -fschedule-insns2 \
# -fstrength-reduce \
# -malign-double -mfancy-math-387 -ffast-math
# these options for gcc-3.2 & AthlonXP
CC_OPTS = \
-Wall -ansic99 -pipe -O9 \
-march=athlon-xp \
-malign-double \
-finline-functions \
-fstrength-reduce \
-fexpensive-optimizations \
-fomit-frame-pointer \
-ftracer \
-maccumulate-outgoing-args -fschedule-insns2
# -pg

HAVE_NEWER_GLIBC = YES
HAVE_NASM = YES
endif

ifeq ($(CFG),PFK)
CPP_OPTS += -DKLEMM -DKLEMM_00 -DKLEMM_01 -DKLEMM_02 -DKLEMM_03 -DKLEMM_04 -DKLEMM_05 -DKLEMM_06 -DKLEMM_07 -DKLEMM_08 -DKLEMM_09 -DKLEMM_10 -DKLEMM_11 -DKLEMM_12 -DKLEMM_13 -DKLEMM_14 -DKLEMM_15 -DKLEMM_16 -DKLEMM_17 -DKLEMM_18 -DKLEMM_19 -DKLEMM_20 -DKLEMM_21 -DKLEMM_22 -DKLEMM_23 -DKLEMM_24 -DKLEMM_25 -DKLEMM_26 -DKLEMM_27 -DKLEMM_28 -DKLEMM_29 -DKLEMM_30 -DKLEMM_31 -DKLEMM_32 -DKLEMM_33 -DKLEMM_34 -DKLEMM_35 -DKLEMM_36 -DKLEMM_37 -DKLEMM_38 -DKLEMM_39 -DKLEMM_40 -DKLEMM_41 -DKLEMM_42 -DKLEMM_43 -DKLEMM_44 -DKLEMM_45 -DKLEMM_46 -DKLEMM_47 -DKLEMM_48 -DKLEMM_49 -DKLEMM_50
CC_OPTS = \
-Wall -O9 -fomit-frame-pointer -march=pentium \
-finline-functions -fexpensive-optimizations \
-funroll-loops -funroll-all-loops -pipe -fschedule-insns2 \
-fstrength-reduce \
-malign-double -mfancy-math-387 -ffast-math

HAVE_NEWER_GLIBC = YES
HAVE_NASM = YES
endif

##########################################################################
# LINUX on Digital/Compaq Alpha CPUs
##########################################################################
ifeq ($(ARCH),alpha)

################################################################
#### Check if 'ccc' is in our path
#### if not, use 'gcc'
################################################################
ifeq ($(shell which ccc 2>/dev/null | grep -c ccc),0)

# double is faster than float on Alpha
CC_OPTS = -O4 -pedantic -Wall -fomit-frame-pointer -ffast-math -funroll-loops \
-mfp-regs -fschedule-insns -fschedule-insns2 \
-finline-functions \
# -DFLOAT=double
# add "-mcpu=21164a -Wa,-m21164a" to optimize for 21164a (ev56) CPU

################################################################
#### else, use 'ccc'
################################################################
else

# Compaq's C Compiler
CC = ccc

################################################################
#### set 'CC_OPTS = -arch host -tune host' to generate/tune instructions for this machine
#### 'CC_OPTS += -migrate -fast -inline speed -unroll 0' tweak to run as fast as possible smiling smiley
#### 'CC_OPTS += -w0 -pedantic -Wall' set warning and linking flags
################################################################
CC_OPTS = -arch host -tune host
CC_OPTS += -migrate -fast -inline speed -unroll 0
CC_OPTS += -w0 -pedantic -Wall


################################################################
#### to debug, uncomment
################################################################
# For Debugging
#CC_OPTS += -g3

################################################################
#### define __DECALPHA__ (i was getting re-declaration warnings
#### in machine.h
################################################################
# Define DEC Alpha
CPP_OPTS += -D__DECALPHA__

# standard Linux libm
#LIBS = -lm
# optimized libffm (free fast math library)
#LIBS = -lffm
# Compaq's fast math library
LIBS = -lcpml
endif # gcc or ccc?
endif # alpha
endif # linux



##########################################################################
# FreeBSD
##########################################################################
ifeq ($(UNAME),FreeBSD)
# remove if you do not have GTK or do not want the GTK frame analyzer
GTK = -DHAVE_GTK `gtk12-config --cflags`
GTKLIBS = `gtk12-config --libs`
# Comment out next 2 lines if you want to remove VBR histogram capability
BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_TERMCAP_H
LIBTERMCAP = -lncurses

endif


##########################################################################
# OpenBSD
##########################################################################
ifeq ($(UNAME),OpenBSD)
# remove if you do not have GTK or do not want the GTK frame analyzer
GTK = -DHAVE_GTK `gtk-config --cflags`
GTKLIBS = `gtk-config --libs`
# Comment out next 2 lines if you want to remove VBR histogram capability
BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_TERMCAP_H
LIBTERMCAP = -lcurses
endif




##########################################################################
# SunOS
##########################################################################
ifeq ($(UNAME),SunOS)
CC = cc
CC_OPTS = -O -xCC
MAKEDEP = -xM
# for gcc, use instead:
# CC = gcc
# CC_OPTS = -O
# MAKEDEP = -M
endif


##########################################################################
# SGI
##########################################################################
ifeq ($(UNAME),IRIX64)
CC = cc
CC_OPTS = -O3 -woff all

#optonal:
# GTK = -DHAVE_GTK `gtk-config --cflags`
# GTKLIBS = `gtk-config --libs`
# BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_TERMCAP_H
# LIBTERMCAP = -lncurses

endif
ifeq ($(UNAME),IRIX)
CC = cc
CC_OPTS = -O3 -woff all
endif



##########################################################################
# Compaq Alpha running Dec Unix (OSF)
##########################################################################
ifeq ($(UNAME),OSF1)
CC = cc
CC_OPTS = -fast -O3 -std -g3 -non_shared
endif

##########################################################################
# BeOS
##########################################################################
ifeq ($(UNAME),BeOS)
CC = $(BE_C_COMPILER)
LIBS =
ifeq ($(ARCH),BePC)
CC_OPTS = -O9 -fomit-frame-pointer -march=pentium \
-mcpu=pentium -ffast-math -funroll-loops \
-fprofile-arcs -fbranch-probabilities
else
CC_OPTS = -opt all
MAKEDEP = -make
endif
endif

###########################################################################
# MOSXS (Rhapsody PPC)
###########################################################################
ifeq ($(UNAME),Rhapsody)
CC = cc
LIBS =
CC_OPTS = -O9 -ffast-math -funroll-loops -fomit-frame-pointer
MAKEDEP = -make

endif
##########################################################################
# OS/2
##########################################################################
# Properly installed EMX runtime & development package is a prerequisite.
# tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
#
##########################################################################
ifeq ($(UNAME),OS/2)
SHELL=sh
CC = gcc
CC_OPTS = -O3 -D__OS2__
PGM = lame.exe
LIBS =
RANLIB = touch

# I use the following for slightly better performance on my Pentium-II
# using pgcc-2.91.66:
# CC_OPTS = -O6 -ffast-math -funroll-loops -mpentiumpro -march=pentiumpro -D__OS2__
# for the unfortunates with a regular pentium (using pgcc):
# CC_OPTS = -O6 -ffast-math -funroll-loops -mpentium -march=pentium -D__OS2__

# Comment out next 2 lines if you want to remove VBR histogram capability
BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_{NCURSES_}TERMCAP_H
LIBTERMCAP = -lncurses

# Uncomment & inspect the 2 GTK lines to use MP3x GTK frame analyzer.
# Properly installed XFree86/devlibs & GTK+ is a prerequisite.
# The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3:
# GTK = -DHAVE_GTK -IC:/XFree86/include/gtk12 -Zmt -D__ST_MT_ERRNO__ -IC:/XFree86/include/glib12 -IC:/XFree86/include
# GTKLIBS = -LC:/XFree86/lib -Zmtd -Zsysv-signals -Zbin-files -lgtk12 -lgdk12 -lgmodule -lglib12 -lXext -lX11 -lshm -lbsd -lsocket -lm
endif

###########################################################################
# MSDOS/Windows
###########################################################################
ifeq ($(UNAME),MSDOS)
RM =
CC_OPTS = \
-Wall -pipe -O3 -fomit-frame-pointer -ffast-math -funroll-loops \
-fschedule-insns2 -fmove-all-movables -freduce-all-givs \
-mcpu=pentium -march=pentium -mfancy-math-387
CC_OPTS += -D_cdecl=__cdecl
PGM = lame.exe
endif

###########################################################################
# AmigaOS
###########################################################################
# Type 'Make ARCH=PPC' for PowerUP and 'Make ARCH=WOS' for WarpOS
#
###########################################################################
ifeq ($(UNAME),AmigaOS)
CC = gcc -noixemul
CC_OPTS = -O3 -ffast-math -funroll-loops -m68020-60 -m68881
BRHIST_SWITCH = -DBRHIST
MAKEDEP = -MM
ifeq ($(ARCH),WOS)
CC = ppc-amigaos-gcc -warpup
CC_OPTS = -O3 -ffast-math -fomit-frame-pointer -funroll-loops \
-mmultiple -mcpu=603e
AR = ppc-amigaos-ar
RANLIB = ppc-amigaos-ranlib
LIBS =
endif
ifeq ($(ARCH),PPC)
CC = ppc-amigaos-gcc
CC_OPTS = -O3 -ffast-math -fomit-frame-pointer -funroll-loops \
-mmultiple -mcpu=603e
AR = ppc-amigaos-ar
RANLIB = ppc-amigaos-ranlib
LIBS =
endif
endif
















# 10/99 added -D__NO_MATH_INLINES to fix a bug in *all* versions of
# gcc 2.8+ as of 10/99.

ifeq ($(HAVE_NEWER_GLIBC),YES)
CC_SWITCHES =
else
CC_SWITCHES = -D__NO_MATH_INLINES # only needed by some older glibc
endif

CC_SWITCHES += -DNDEBUG $(CC_OPTS) $(SNDLIcool smiley $(GTK) $(BRHIST_SWITCH)
frontend_sources = \
frontend/amiga_mpega.c \
frontend/brhist.c \
frontend/get_audio.c \
frontend/lametime.c \
frontend/parse.c \
frontend/portableio.c \
frontend/timestatus.c

lib_sources = \
libmp3lame/bitstream.c \
libmp3lame/encoder.c \
libmp3lame/fft.c \
libmp3lame/gain_analysis.c \
libmp3lame/id3tag.c \
libmp3lame/lame.c \
libmp3lame/newmdct.c \
libmp3lame/psymodel.c \
libmp3lame/quantize.c \
libmp3lame/quantize_pvt.c \
libmp3lame/set_get.c \
libmp3lame/vbrquantize.c \
libmp3lame/reservoir.c \
libmp3lame/tables.c \
libmp3lame/takehiro.c \
libmp3lame/util.c \
libmp3lame/mpglib_interface.c \
libmp3lame/VbrTag.c \
libmp3lame/version.c \
libmp3lame/presets.c \
mpglib/common.c \
mpglib/dct64_i386.c \
mpglib/decode_i386.c \
mpglib/layer1.c \
mpglib/layer2.c \
mpglib/layer3.c \
mpglib/tabinit.c \
mpglib/interface.c


#ifeq ($(UNAME),MSDOS)
# frontend_sources := $(subst /,\,$(frontend_sources))
# lib_sources := $(subst /,\,$(lib_sources))
#endif

frontend_obj = $(frontend_sources:.c=.o)
lib_obj = $(lib_sources:.c=.o)

DEP = $(frontend_sources:.c=.d) $(lib_sources:.c=.d )

gtk_sources = frontend/gtkanal.c frontend/gpkplotting.c
gtk_obj = $(gtk_sources:.c=.o)
gtk_dep = $(gtk_sources:.c=.d)



NASM = nasm
ASFLAGS=-f elf -i libmp3lame/i386/

# for people with nasmw
ifeq ($(UNAME),MSDOS)
NASM = nasmw
ASFLAGS=-f win32 -DWIN32 -i libmp3lame/i386/
endif

%.o: %.nas
$(NASM) $(ASFLAGS) $< -o $@
%.o: %.s
gcc -c $< -o $@


#HAVE_NASM = YES

ifeq ($(HAVE_NASM),YES)
## have NASM
CC_SWITCHES += -DHAVE_NASM
lib_obj += libmp3lame/i386/cpu_feat.o

## use MMX extension. you need nasm and MMX supported CPU.
CC_SWITCHES += -DMMX_choose_table
lib_obj += libmp3lame/i386/choose_table.o

## use 3DNow! extension. you need nasm and 3DNow! supported CPU.
lib_obj += libmp3lame/i386/fft3dn.o

## not yet coded
#CC_SWITCHES += -DUSE_FFTSSE
lib_obj += libmp3lame/i386/fftsse.o

## not yet coded
#CC_SWITCHES += -DUSE_FFTFPU
lib_obj += libmp3lame/i386/fftfpu.o
endif


%.o: %.c
$(CC) $(CPP_OPTS) $(CC_SWITCHES) -c $< -o $@

%.d: %.c
ifeq ($(NOUNIXCMD),YES)
$(CC) $(MAKEDEP) $(CPP_OPTS) $(CC_SWITCHES) $< > $@
else
$(SHELL) -ec '$(CC) $(MAKEDEP) $(CPP_OPTS) $(CC_SWITCHES) $< | sed '\''s;$*.o;& $@;g'\'' > $@'
endif

all: frontend/$(PGM)

$(lib_sources) $(frontend_sources) $(gtk_sources) : config.h

config.h: configMS.h
ifeq ($(NOUNIXCMD),YES)
copy configMS.h config.h
else
cp configMS.h config.h
endif

frontend/$(PGM): frontend/main.o $(frontend_obj) $(MP3LIcool smiley
$(CC) $(CC_OPTS) -o frontend/$(PGM) frontend/main.o $(frontend_obj) \
$(MP3LIcool smiley $(LIBS) $(LIBSNDFILE) $(LIBTERMCAP)

mp3x: frontend/mp3x.o $(frontend_obj) $(gtk_obj) $(MP3LIcool smiley
$(CC) $(CC_OPTS) -o frontend/mp3x frontend/mp3x.o $(frontend_obj) $(gtk_obj) $(MP3LIcool smiley \
$(LIBS) $(LIBSNDFILE) $(GTKLIBS) $(LIBTERMCAP)

mp3rtp: frontend/rtp.o frontend/mp3rtp.o $(frontend_obj) $(MP3LIcool smiley
$(CC) $(CC_OPTS) -o frontend/mp3rtp frontend/mp3rtp.o frontend/rtp.o $(frontend_obj) $(MP3LIcool smiley \
$(LIBS) $(LIBSNDFILE) $(LIBTERMCAP)

libmp3lame/libmp3lame.a: $(lib_obj)
$(AR) cr libmp3lame/libmp3lame.a $(lib_obj)
$(RANLIcool smiley libmp3lame/libmp3lame.a

#shared library. GNU specific?
libmp3lame/libmp3lame.so: $(lib_obj)
gcc -shared -Wl,-soname,libmp3lame/libmp3lame.so -o libmp3lame/libmp3lame.so $(lib_obj)

install: frontend/$(PGM) #libmp3lame.a
cp frontend/$(PGM) /usr/bin
#cp libmp3lame.a /usr/lib
#cp lame.h /usr/lib



clean:
ifeq ($(UNAME),MSDOS)
-del $(subst /,\,$(frontend_obj))
-del $(subst /,\,$(lib_obj))
-del $(subst /,\,$(gtk_obj))
-del $(subst /,\,$(DEP))
-del frontend\$(PGM)
-del frontend\main.o
-del libmp3lame\libmp3lame.a
else
-$(RM) $(gtk_obj) $(frontend_obj) $(lib_obj) $(DEP) frontend/$(PGM) \
frontend/main.o frontend/lame libmp3lame/libmp3lame.a \
frontend/mp3x.o frontend/mp3x
endif


tags: TAGS

TAGS: ${c_sources}
etags -T ${c_sources}

ifneq ($(MAKECMDGOALS),clean)
-include $(DEP)
endif


#
# testcase.mp3 is a 2926 byte file. The first number output by
# wc is the number of bytes which differ between new output
# and 'official' results.
#
# Because of compilier options and effects of roundoff, the
# number of bytes which are different may not be zero, but
# should be at most 30.
#
test: frontend/$(PGM)
frontend/$(PGM) --nores -h testcase.wav testcase.new.mp3
cmp -l testcase.new.mp3 testcase.mp3 | wc -l

testg: frontend/$(PGM)
frontend/$(PGM) -g -h ../test/castanets.wav



Poste le Tuesday 6 September 2005 18:16:34
Répondre     Citer    
Re: encodeur mp3/wav
Envoyé par: gerald74

Citation
zelaurent
Chez xmms.org onglet plugins.

c koi le nom de tom pluging??

Poste le Tuesday 6 September 2005 18:26:09
Répondre     Citer    
Aller à la page:  Page précédente 1 2 3 Page suivante
Page: 2 sur 3

Veuillez vous authentifier auparavant pour commenter.

 

Ce forum !
encodeur mp3/wav
Besoin d'aide à propos de musique, son, image, vidéo, etc ... et de Linux ? Vous avez frappé à la bonne porte.
PS: pour les questions technique d'accélération 3D, préférez le forum matériel.
Nouveau sujet sur ce forum

Sauf mention contraire, les documentations publiées sont sous licence Creative-Commons