Re: [expert] Alternatives to editing mp3/ogg files in Audacity?

2003-06-22 Thread dfox
Somebody scribbled about [expert] Alternatives to editing mp3/ogg files in 
Audacity?
I regualrily download streaming-mp3 files with XMMS. And I want to clean
 them up with Audacity, but above about 20Mb it crashes while loading
 the file. For the record my machine is a AMD 2100+ with 512 Mb of RAM
 and about 2Gb free under /home.

2 gigs is a pretty safe limit. OTOH I've seen that audacity requires a ton 
of disk space. Maybe your disk space is low without your realizing it? I 
did some editing last week and although i have plenty of space in /tmp 
where these were stored, I did a check and found it using over 2 gigs - 
many audio files. it seems audacity breaks the input into as many 
megabyte-sized .au chunks as is needed for what you are doing, and if you 
need undo's etc you'll need more than 2 gigs free depending on the size.


-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Alternatives to editing mp3/ogg files in Audacity?

2003-06-13 Thread dfox
Somebody scribbled about [expert] Alternatives to editing mp3/ogg files in 
Audacity?
I regualrily download streaming-mp3 files with XMMS. And I want to clean
 them up with Audacity, but above about 20Mb it crashes while loading
 the file. For the record my machine is a AMD 2100+ with 512 Mb of RAM
 and about 2Gb free under /home.

70+ meg mp3 files? I might have some that big.

Much of my hour-length stuff are OTR mp3 which don't require a whole lot 
of extra space - perhaps 10-15 megs vbr for much of them. It would seem 
that the trick is to be sure that the whole uncompresssed file (plus 
edits) is going to fit in memory. 


Any ideas on how to edit them? Console would be fine, too, just so long
 as I have an indexing method to find the start and stop positions.

Depends on what you want to do. If you can export them first as wav, you 
can do some editing with sox. If you know (roughly) the start and end 
points, factor in the # of samples and size you can try to do some low 
level splicing with 'dd'. But that works best with headerless sound 
files.

It's much easier of course to have a visual guide though. Audacity does do 
a good job overall - except that it crashes here too. I tried noise 
removal on a part of a sample mp3 and managed to crash it, but I don't 
think memory was an issue. Also the version I have here (1.1.3 from 
textar) seems a lot more buggy than the older version I had before I had 
my wierd system crash a few weeks ago. I'm getting a lot of assert 
messages on the starting console, for instance, and much is missing, like 
time marks and such.

Audacity also needs *LOTS* of disk space if you save something as a 
Project rather than exporting to  WAV or MP3 formats. And I still notice 
that exporting to MP3 makes the resulting MP3 double-speed.

Rob

-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Alternatives to editing mp3/ogg files in Audacity?

2003-06-08 Thread Jack Coates
On Sat, 2003-06-07 at 22:06, Rob Blomquist wrote:
 On Friday 06 June 2003 11:31 pm, Rob Blomquist wrote:
  I regualrily download streaming-mp3 files with XMMS. And I want to clean
  them up with Audacity, but above about 20Mb it crashes while loading the
  file. For the record my machine is a AMD 2100+ with 512 Mb of RAM and about
  2Gb free under /home.
 
  I really need to edit mp3s up to about 1 hour in length, which would
  require about 70Mb files.
 
  Any ideas on how to edit them? Console would be fine, too, just so long as
  I have an indexing method to find the start and stop positions.
 
 I figured it out. I used lame -decode to convert the file (in this case only 
 about 41Mb to a wav file of 617Mb then uploaded it into Audacity without a 
 hitch.

wow. Sucks to have to go through that, both for quality loss and for
time spent, but I'm glad you found a workaround. If you've got to spend
any serious time on it, here's a script I've been using. I've cleaned up
the original some, and it could use a ton more cleanup, but...
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...
http://www.monkeynoodle.org/resume.html
#!/usr/bin/perl

# ver 0.06
# If you are looking for the TEMPDIR setting
# scroll down a bit :)

# mp3recode is a quick and dirty script to
# re-encode mp3's which fall below a certain
# bitrate (in this case 128).  It will determine
# which mp3's fall below this rate, and re-encode them
# to a specified bitrate. It moves the 'old' mp3
# to a temporary directory.

# thanks to Boort for his contibuted renaming function

# this script is released under the GPL

# USAGE

# mp3recode rate-cap new encode rate

# Begin

use MPEG::MP3Info;

# check is the bitrate -below which- you want
# a re-encode to take place

$check=$ARGV[0];

if (!($check)){
	$check=128;
	}

# rate_out is the rate in which the 
# mp3 is re-encoded. It defaults to
# 128 (thus all files below 128
# are re-encoded for 128)

# YES, this does increase the filesize with
# NO increase in quality-- but many situations
# call for minimally a 128 encode.
	
$rate_out=$ARGV[1];

if (!($rate_out)){
	
	$rate_out=128;
}
			
# Temp Dir 

# Mp3recode moves the 'old' mp3's to 
# a safe location for safety sake

# CHANGE the BELOW to a temp
# directory to store the old mp3's
# MAKE sure to include a trailing /
# example: /home/foo/temp/

$tempdir=/home/jack/tmp/;

if (!($tempdir)){
	print Edit mp3recode.pl and set a temp directory!\n;
		exit;
		}

# whatever options for lame you desire, slap here
# the default is for high quaility, at 128kb/sec.
# if you want to alter the re-encode bitrate, change
# the -b $check to whatever.  BE aware, lower encoded
# mp3's will probably not be able to be re-encoded
# at a rate higher than 128 unless they have a frequency
# higher than 22.05

$lame_opts=lame -h -b $rate_out;

# nasty filenames can cause problems
# belows is a modification of rajak's
# quick and dirty renamer. Renames
# spaces, ()'s, and ''s.

foreach $xold (`ls *.mp3`){
	  chomp $xold;
	  $xnew = $xold;
	  $xn = $xold;
	  $xnew = lc($xn);  ## lowercase it
	  $xnew =~ s/\%20/_/g;  ## Converts netscape screwup to a _
	  $xnew =~ s/\ /_/g;## Converts space to a _
	  $xnew =~ s/\(/-/g;## Removes ( and subs -
	  $xnew =~ s/\)//g; ## Removes )
	  $xnew =~ s/\[/-/g;## Removes [ and subs -
	  $xnew =~ s/\]//g; ## Removes ]
	  $xnew =~ s/\{/-/g;## Removes { and subs -
	  $xnew =~ s/\}//g; ## Removes }
	  $xnew =~ s/\#//g; ## Removes #
	  $xnew =~ s/\!//g; ## Removes !
	  $xnew =~ s/\~//g; ## Removes ~
	  $xnew =~ s/\'//g; ## Hickey remover
	  $xnew =~ s/_-_/-/g;   ## Shorten _-_ to -
	  $xnew =~ s/-*-/-/g;   ## Shorten 2 or more -- to 1 -
	  $xnew =~ s/_*_/_/g;   ## Shorten 2 or more __ to 1 _
	  $xnew =~ s/-_/-/g;## Clean up -_ to -
	  $xnew =~ s/\/\+/g;   ## Clean up  for eaiser use in unix
	  $xnew =~ s/\,_/\+/g;  ## Set up for format artist1+artist2
	  $xnew =~ s/_\+_/\+/g; ## Shorten _+_ to +
	  $xnew =~ s/_-/-/g;## Clean up _- to -
	  $xnew =~ s/-\./\./g;  ## Remove extra -'s infront of .mp3
	  $xnew =~ s/\.-/\./g;  ## Remove extra -'s behind a  dot
	  $xnew =~ s/\._/\./g;  ## Remove extra _'s behind a  dot
	  $xnew =~ s/^-//g; ## Remove - at beginning of filename
	  $xnew =~ s/^_//g; ## Remove _ at beginning of filename
	  $xnew =~ s/^\.//g;## Unhide files
		
		if($xnew ne $xold){
print Renaming $xold to $xnew\n;
rename $xold, $xnew or die Failed renaming $xold\n;
		}
}

# Misc variables and main loop

# Hat's off to Ralf D. Werner, who contributed
# a modification which preserves ID3tag info
# (in this case only the artist and title)

while($file =  *.mp3 ) {
my $info1 = get_mp3info($file);
my $rate= ($info1-{BITRATE});
my $freq= ($info1-{FREQUENCY});
my $info2 = get_mp3tag($file);
   

[expert] Alternatives to editing mp3/ogg files in Audacity?

2003-06-07 Thread Rob Blomquist
I regualrily download streaming-mp3 files with XMMS. And I want to clean them 
up with Audacity, but above about 20Mb it crashes while loading the file. For 
the record my machine is a AMD 2100+ with 512 Mb of RAM and about 2Gb free 
under /home.

I really need to edit mp3s up to about 1 hour in length, which would require 
about 70Mb files.

Any ideas on how to edit them? Console would be fine, too, just so long as I 
have an indexing method to find the start and stop positions.

Rob
-- 

Linux: For the people, by the people.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Alternatives to editing mp3/ogg files in Audacity?

2003-06-07 Thread Rob Blomquist
On Friday 06 June 2003 11:31 pm, Rob Blomquist wrote:
 I regualrily download streaming-mp3 files with XMMS. And I want to clean
 them up with Audacity, but above about 20Mb it crashes while loading the
 file. For the record my machine is a AMD 2100+ with 512 Mb of RAM and about
 2Gb free under /home.

 I really need to edit mp3s up to about 1 hour in length, which would
 require about 70Mb files.

 Any ideas on how to edit them? Console would be fine, too, just so long as
 I have an indexing method to find the start and stop positions.

I figured it out. I used lame -decode to convert the file (in this case only 
about 41Mb to a wav file of 617Mb then uploaded it into Audacity without a 
hitch.

Rob

-- 

Linux: For the people, by the people.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com