Merges zipped mp3 files comprising a mix/album without re-encoding (using mp3cat).
This PowerShell script expects a zip file containing multiple mp3 files to be merged into a single mp3 file. It will do so without re-encoding, preserving the original audio quality. Specifically, the script will do the following:
- Extract the mixed zip file into the
%TEMP%
folder. - Recursively look for an
mp3
file in that folder. - Run mp3cat on the folder where the first
mp3
file was found. - All mp3 files in the folder will be merged into
C:\foo\bar.mp3
, whereC:\foo\bar.zip
is the input zipped mix file.
Make sure that mp3cat is either in your PATH
or in the script's working folder.
Merge-ZippedMix.ps1 mix.zip
- Both CBR and VBR mp3s are supported (by virtue of mp3cat).
- The ID3 tag of the first mp3 file will be used for the merged file (using
mp3cat --tag
).
If you have multiple mix zip files in some folder and you'd like to merge all of them, try:
$mixes = Get-ChildItem "C:\MixFolder" -Filter *.zip
$mixes | foreach { .\Merge-ZippedMix.ps1 $_.FullName }