Peak Tracer is a command-line tool that helps you find the loudest parts of an audio file and export them as JSON or concatenate them into a new file.
Peak Tracer requires FFmpeg to be installed on your system.
To install Peak Tracer, you need to have Go installed on your system. Then, run the following command:
go get -u github.com/Paxx-RnD/peak-tracer
This will download the source code and build the binary for you. You should now be able to run the peak-tracer command in your terminal.
Peak Tracer can be used with the following command line options:
-i string
The path to the input audio file (required)
-o string
The path to the output JSON file (required)
-after float
The number of seconds after each peak to include (default 1)
-before float
The number of seconds before each peak to include (default 1)
-concat string
The path to the output file for concatenation
-samples int
The number of samples per peak (default 48000)
-target int
The target duration of the output file in seconds (default 60)
To find the peaks in a media file, you can use the following command:
peak-tracer -i input.mp3 -o output.json
This will analyze the input file and export the peaks as a JSON file.
To concatenate the loudest parts of a media file into a new file, you can use the following command:
peak-tracer -i input.mp3 -concat output.mp3
This will analyze the input file and create a new file that contains the concatenated peaks.
You can customize the behavior of Peak Tracer with the following options:
-after: The number of seconds after each peak to include (default: 1).
-before: The number of seconds before each peak to include (default: 1).
-samples: The number of samples per peak (default: 48000).
-target: The target duration of the output file in seconds (default: 60).
Peak Tracer is licensed under the MIT License. See the LICENSE file for more information.
Peak Tracer was created by Paxx R&D.