Splitting/Joining MPEG Files with mpgtx

Q

Splitting/Joining MPEG Files with mpgtx

✍: Guest

A

"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 t
he whole file!
if you want to force the operation. May yield to an endless loop if no valid hea
der 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
   

2008-01-31, 9115👍, 0💬