On Tue, 2 Oct 2001, the following spilled from the mind of Brent Geery:
> On-the-fly file splitting. For example, say I have a 2GB wav, and I
> wanted the MP3 to be split every 10MB, or whatever. This would also
> come in handy if someone is compressing a live "stream" of data, where
> to final MP3 file size is unknown.
You can just write your mp3s to stdout. split(1) comes to mind.
(example)
lame foo.wav - | split -b 10485760 - ~/yourdir/tmp/mp3_prefix_
> The inverse would be proper for input files: on-the-fly-file joining.
> For example, if someone has several 2GB wave files that they wanted
> "joined" as they are encoded into a single MP3.
Same goes for input.
cat *.wav | lame - file.mp3
or
cat *.wav | lame - - | split -b 10485760 - ~/yourdir/tmp/mp3_prefix_
> Believe it or not, I have been asked how to do both these things, by
> people that needed these functions.
I hope this helps.
Jeremy
--
/ Jeremy Brand, B.S. \ Sr. Software Engineer /
/ phone://39-34-853-23988 \ mailto:[EMAIL PROTECTED] /
/ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html /
/ "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 /
/ Get your own Free, Private email at http://www.smackdown.com/ /
--
MP3 ENCODER mailing list archive is at:
http://www.mail-archive.com/mp3encoder%40minnie.cs.adfa.edu.au/