Splitting/Joining MPEG Files with mpgtx

This section provides a tutorial on how to split and join MPEG files with mpgtx.

"mpgtx" offers a function to split a large MPEG file into small MPEG files. It also offers a reverse function to join small MPEG files into a large MPEG file. I tried both split and join functions with sample music MP3 file.

Split music_full.mp3 into 5 equal parts:

C:\temp>\local\bin\mpgtx -5 music_full.mp3 -b music_part
Skipped -2 zeroes at start of file
mpgtx: AT EOF - please stop me!
mmm, this file does not start with a pack, offset: -2
use the desperate_mode switch as the first option -X to search for a 
header in the whole file!
if you want to force the operation. May yield to an endless loop if no
valid header is found!
Does not even begin with a 00 00 01 xx sequence!
Now processing music_full.mp3 [1/5] ...  100.00%
Now processing music_full.mp3 [2/5] ...  100.00%
Now processing music_full.mp3 [3/5] ...  100.00%
Now processing music_full.mp3 [4/5] ...  100.00%
Now processing music_full.mp3 [5/5] ...  100.00%

C:\temp>dir music*

   8,633,705 music_full.mp3
   1,722,828 music_part-1.mp3
   1,726,590 music_part-2.mp3
   1,727,216 music_part-3.mp3
   1,726,589 music_part-4.mp3
   1,726,258 music_part-5.mp3

Split 5 MP3 files back into 1:

C:\temp>\local\bin\mpgtx -j music_part-*.mp3
Now processing music_part-1.mp3 1/5 ...  100.00%
Now processing music_part-2.mp3 2/5 ...  100.00%
Now processing music_part-3.mp3 3/5 ...  100.00%
Now processing music_part-4.mp3 4/5 ...  100.00%
Now processing music_part-5.mp3 5/5 ...  100.00%

C:\temp\tmp>dir *.*

   8,629,481 chunk.mp3
   8,633,705 music_full.mp3
   1,722,828 music_part-1.mp3
   1,726,590 music_part-2.mp3
   1,727,216 music_part-3.mp3
   1,726,589 music_part-4.mp3
   1,726,258 music_part-5.mp3

Test chunk.mp3 with MPlayer. It plays nicely!

Table of Contents

 About This Book

 Audio CD (Compact Disc Digital Audio or CD-DA) Format

 Audio CD (Compact Disc Digital Audio or CD-DA) Players

 Audio CD (Compact Disc Digital Audio or CD-DA) Rip Music

 WAV Audio File Format

 MP3, MPEG-1 Audio Layer 3, Encoding Format

 Burning MP3 Music to Audio CD

 Windows Sound Recorder

 ISO 9660 Standard for Data CD

 Recording Data on CD

 VCD (Video CD) Standard

 DVD (Digital Video Disc) Standard Format

 TOC (Table Of Contents) on CDs

 IsoBuster - A Nice CD GUI Tool

 MPlayer - The Movie Player

 vStrip - Rip and Manipulate DVD VOB Files

mpgtx - Manipulating MPEG Files

 Downloading and Installing vStrip

 Printing MPEG Encoding Information with mpgtx

 Printing MP3 Encoding Information with mpgtx

 Slicing MPEG Files by Play Time Ranges with mpgtx

 Demuxing (Demultiplexing) MPEG Files with mpgtx

Splitting/Joining MPEG Files with mpgtx

 CD/DVD - File Name Extension and Format Types

 References

 PDF Printing Version