[he.fi:/] · bchunk · slookup · splitmastream

splitmastream - tee for MPEG audio streams

splitmastream reads an MPEG stream from stdin, writes a copy of it to a file named YYMMDD.HH-streamname.mp3 and then writes the stream to stdout. Think of it as a hourly-file-cutting 'tee' for MPEG audio. Files are switched on every hour at a frame boundary so that every file should be playable without noise at the beginning/end.

splitmastream is useful for making an archive of an mpeg stream which is, for example, coming from an encoder and going to an icecast transmitter.

Tested on various RedHat Linux distributions, but should compile (with maybe a couple trivial #include changes) on any modern Unix-like operating system. I have only used it on 56kbit/s, 128kbit/s and 192kbit/s CBR layer3 streams but others should work as well.

As usual, if it breaks, you get to keep both pieces.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Heikki Hannikainen <hessu at hes.iki.fi>  
Last modified: Monday, 06-May-2019 11:18:45 UTC