Short:        simple, powerful mpeg audio editor (+src)
Author:       Jochen Puchalla
Uploader:     megacz usa com
Type:         mus/misc
Version:      1.9.2
Requires:     see notes
Architecture: m68k-amigaos;generic


        IF YOU WANT MORE GEEKY PROGGIES FOR YOUR AMIGA THEN VISIT
        http://willthissurvive.ath.cx AND LEAVE YOUR MARK THERE!


cutmp3-1.9.2
-------------

This is very powerful mpeg audio cropping tool(operates on frames!), it can be
used from under the command line or interactively(readline + termcap), It does
supports CBR and VBR mpegs! There is a lot of tricks possible, read the 'USAGE'.

---

NOTES:


[*]
Requires 68000, OS 2.04+, 512 kib of free memory, lots of disk space if cropping
large files, ixemul 48+ and 'sh'(must be made resident to make 'system()' happy).


[*]
68000 version uses statically linked math functions, while 68020 version
depends on your 'mathieee...' setup, so it may turn out that the 68000
is faster than 68020 on your 020+ if your math libraries are old.


[*]
If in interactive mode then it needs 'TMP:'(it is hardcoded in a program and i wasnt
touching it) assign, but dont assign it to 'RAM:T/' - its a bad idea! Try this:

   > assign tmp: sys:gg/tmp

or point it to some other drawer on your hard disk.


[*]
Code has been altered! I have fixed terminal deinitialization as the program
was not restoring it at exit. There are also two environment variables added:

   CUTMP3PLAYER   - allows to specify your favourite player and its options
                    (default: '/c/mpega -m -u -D -r -T -N -w -q0 -f1 -F11050')

   CUTMP3REDIR    - allows to specify where to redirect the output of the player
                    (default: '' - empty = same shell/window)

Vars will be (re)read only in interactive mode and yes they must contain unixish
paths except for the player internals if it is native Amiga program(like 'mpega').
This is because player is handled by the 'system()' function which uses 'sh'.
Redirection char is required in 'CUTMP3REDIR' i have left the possibility
to specify any redirection scheme, cuz you never know where you want to redirect
and how. Refer to 'korn shell' manual pages on how to use advanced redirection.

You can easily redirect output from player to a file(scheme -i + -O activates
interactive mode):

   > set CUTMP3REDIR >/ram/mpega.log
   > cutmp3 -i longmpegfile.mp3 -O croppedoutput.mp3

You can also use ARexx wrapper i made so that you will be able to see the output
in other window. This script listens for data on some 'FIFO:' channel and dumps
output to previously opened 'RAW:' window, this way you got operation field clean.

   > acutmp3 -i longmpegfile.mp3 -O croppedoutput.mp3

You can of course (re)configure the script by editing it. 'FIFO:' can be found
on Aminet.

Oh and one more thing, options for 'sound cards' dont work, i have removed that.


[*]
See 'KEYS.jpg' on how to operate in interactive mode.


[*]
When in interactive mode try to avoid using 'P' and 'p' - auto seeking, it will
block the console until eof, and only way to stop it is to ctrl+c.


[*]
If you want configuration loading and saving you need to specify 'HOME' env var
like:

   > set HOME home/

for this directory or any other place(setenv = permanent).

---

EXAMPLE(non-interactive, fastest)

  cd cutmp3-1.9.2-bin-m68k
  bin/cutmp3 -i inputfile.mp3 -a 1:00 -b 1:20 -O outputfile.mp3

---

EXAMPLE(interactive, same window):

  cd cutmp3-1.9.2-bin-m68k
  assign tmp: t: ;just an example, dont set it to 'T:' you may run out of free memory.
  resident bin/sh pure
  set TERM amiga
  bin/cutmp3 -i inputfile.mp3 -O outputfile.mp3

---

EXAMPLE(interactive, two windows - requires Arexx)

  cd cutmp3-1.9.2-bin-m68k
  assign tmp: t:
  assign c: bin/ add
  resident bin/sh pure
  c/acutmp3 -i inputfile.mp3 -O outputfile.mp3

---
megacz@usa.com