<span class="gmail_quote"></span><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Gurus,<br><br>What's the easiest way for me to chop a 1.3GB
file (2 hr MP3 decoded<br>back into WAV) in half? I want to split it across two CDs and my car<br>stereo doesn't support MP3</blockquote><div><br>
Hey Matthew. <br>
<br>
There is no need to split the file at all. If its already in wav you
can use a toc sheet to tell your burner to start at the desired part of
the file. I used to do this to add tracks to long voice recordings.<br>
<br>
To burn using a toc file:<br>
<br>
cdrdao write --device 0,0,0 --speed $speed --driver $driver --eject '$toc'<br>
<br>
>From the directory where the toc and the audio are<br>
<br>
(NOTE: The following were written well before mp3 burning was drag and
drop, and while still learning to program. Provided for reference only.)<br>
<br>
I used the following script to create a toc file that added 5 minute track gaps to long recordings.<br>
<br>
preptoc.pl<br>
---------------------------------<br>
#!/usr/bin/perl<br>
<br>
use strict;<br>
<br>
my($af, $len, $afmin,$afsec, $last, $min);<br>
<br>
@ARGV == 2 or die("usage: preptoc.pl audiofile length\n");<br>
<br>
$af = shift;<br>
$len = shift;<br>
<br>
($afmin,$afsec) = split(/\./,$len);<br>
<br>
open(TOC, ">$af.toc");<br>
print "opening $af.toc for writing\n";<br>
print "afmin: ".$afmin." afsec ".$afsec." len: ".$len."\n";<br>
print TOC "CD_DA\n\n";<br>
<br>
$min = 0;<br>
<br>
while ($min + 10 <= $afmin)<br>
{<br>
print TOC "TRACK AUDIO\n";<br>
print TOC "NO COPY\n";<br>
print TOC "NO PRE_EMPHASIS\n";<br>
print TOC "TWO_CHANNEL_AUDIO\n";<br>
print TOC "FILE \"$af\" $min:0:0 5:0:0\n\n";<br>
$min += 5;<br>
}<br>
<br>
$last = $afmin - $min;<br>
print TOC "TRACK AUDIO\n";<br>
print TOC "NO COPY\n";<br>
print TOC "NO PRE_EMPHASIS\n";<br>
print TOC "TWO_CHANNEL_AUDIO\n";<br>
print TOC "FILE \"$af\" $min:0:0 $last:$afsec:0\n";<br>
<br>
close(TOC);<br>
------------------------------<br>
It produces a file something like:<br>
<br>
CD_DA<br>
<br>
<br>
TRACK AUDIO<br>
NO COPY<br>
NO PRE_EMPHASIS<br>
TWO_CHANNEL_AUDIO<br>
FILE "file.wav" 0:0:0 5:0:0<br>
<br>
<br>
TRACK AUDIO<br>
NO COPY<br>
NO PRE_EMPHASIS<br>
TWO_CHANNEL_AUDIO<br>
FILE "file.wav" 5:0:0 5:0:0<br>
<br>
<br>
TRACK AUDIO<br>
NO COPY<br>
NO PRE_EMPHASIS<br>
TWO_CHANNEL_AUDIO<br>
FILE "file.wav" 10:0:0 5:0:0<br>
<br>
The FILE line being the useful bit.<br>
<br>
Whole process used to be:<br>
lame --decode '$mp3' '$mp3'.wav<br>
sox '$mp3'.wav -r 44100 '$mp3'-new.wav resample<br>
normalize -m *.wav<br>
preptoc<br>
burn from toc.<br>
<br>
Hope that helps.<br>
<br>
Carl G<br>
</div></div>