Debian Codegraph @

README_mp3

raw
1 README.mp3
2 ----------
3
4 MP3 DECODING
5 ------------
6 This version of Tritonus includes mp3 decoding support. This is due to
7 using javalayer 0.0.8, a pure-java mp3 decoder developed by
8 the javalayer project. The big credit for this goes to Eric B. who
9 wrote the decoder.
10
11 The javalayer code is no longer duplicated in Tritonus. To compile
12 from scratch, you need to check out javalayer from its own cvs (see
13 http://sourceforge.net/projects/javalayer/). Make sure javalayer is
14 in a directory 'javalayer' that is in the same directory as
15 'tritonus'. In this case, if you issue ant int Tritonus, it will build
16 javalayer, too. Alternatively, if you want a different location,
17 change the path to javalayer in build.xml.
18
19 For a runnable program, see DecodingAudioPlayer.java or
20 AudioPlayer.java from the Java Sound Examples.
21
22 The decoder can also be used as plug-in for any Java Sound
23 implementation (like the Sun jdk1.3). Precompiled jar files are at
24 http://www.tritonus.org/plugins.html
25
26 JavaLayer project:
27 http://www.javazoom.net/javalayer/javalayer.html
28
29 MP3 ENCODING
30 ------------
31 MP3 file creation is supported with native access to
32 the LAME library. A pure Java MP3 encoder does not exist
33 in our knowledge and would probably be too slow - nowadays.
34 LAME is acknowledged to provide high quality mp3 encoding.
35 Additionally, it is completely open source (LGPL) and does
36 not use 3rd party source code.
37 As LAME is accessed via JNI, the current implementation
38 in Tritonus can only be used under Linux. In future,
39 a port to Windows and other systems is possible.
40
41 Capabilities in Tritonus:
42 The encoder creates MPEG1 layer III, MPEG2 layer III
43 or MPEG2.5 layer III files and chooses automatically
44 the right encoding. Bit rates may vary from 8 to 320KBit/s,
45 VBR (variable bit rate) is supported, too. Different
46 quality levels may be choosen which affect
47 - encoding speed for CBR (constant bit rate)
48 - mp3 file size for VBR.
49
50 Downloading LAME:
51 LAME has to be installed on your system.
52 You need at least LAME V3.88beta or later. You can get LAME from
53 http://sourceforge.net/projects/lame/
54 To get the latest CVS version of lame, issue these 2 commands:
55 cvs -d:pserver:[email protected]:/cvsroot/lame login
56 (Password empty)
57 cvs -z3 -d:pserver:[email protected]:/cvsroot/lame co lame
58
59 Installation of LAME:
60 In the main directory of lame, issue "./configure --enable-shared"
61 and "make".
62 As root, invoke "make install". This copies the library to /usr/local/lib.
63 You may need to include /usr/local/lib to /etc/ld.so.conf and then
64 run "ldconfig"
65
66 Integration in Tritonus:
67 You must re-run "configure" after installation of LAME. Be sure to
68 remove "config.cache" before. "configure" outputs a line like
69 "Will build stuff for LAME encoder" when everything is fine.
70 Call "make" and as root "make install" (or make install-link).
71
72 Testing:
73 A simple command line tool for converting any audio file to mp3 is
74 included in the directory test: Mp3Encoder.java. Run it without
75 parameters to see brief usage instructions. Looking at its source
76 code will show you how it works (and the problems...).
77 Please send problems or bugs to [email protected] or submit them
78 to the bug database on sourceforge.
79
80 Thanks:
81 Many thanks to Mark Taylor, who leads development of LAME.
82 He was open to my (Florians) proposals and let me work on LAME
83 to make the integration into Tritonus possible.