Audio Compressor is a Windows desktop application built with WinForms and .NET Framework 4.0. It can import a YouTube video as MP3, or load a local audio file, then trim and compress the audio while keeping the same file extension as the source.
- Paste a YouTube URL and import the video audio as an MP3 saved in the app's current working folder.
- Drag-and-drop or browse for an audio file.
- Choose a compression percentage from
0%to80%. - Preserve the original file type for the output.
- Preview the selected audio range on a waveform timeline, move the play cursor freely, then trim and compress in one step.
- Quality guard that clamps or blocks unsafe bitrate targets.
- Live metadata display, progress reporting, and cancel support.
- Native Windows
.exeoutput.
MP3,M4A,AAC,OGG,OPUS,WMA, andMP2are recompressed with a lower bitrate while preserving the original extension.FLACstays lossless and uses a higher FLAC compression level instead of lowering fidelity.WAVcan only become much smaller by switching to a lossy codec inside the WAV container. The app blocks that path when quality guard is enabled.AIFFis not recompressed because keeping the same extension and meaningfully shrinking it is not transparent.
Run the build script from PowerShell:
.\build.ps1 -Configuration ReleaseTo bundle ffmpeg.exe, ffprobe.exe, ffplay.exe, and optionally yt-dlp.exe into the output folder:
.\build.ps1 -Configuration Release -BundleToolsIf yt-dlp.exe is installed outside the PATH, pass it explicitly:
.\build.ps1 -Configuration Release -BundleTools -YtDlpPath C:\Tools\yt-dlp.exeUse -IncludeSymbols only when you want the .pdb file for debugging.
The distributable output is created in dist\AudioCompressor and includes AudioCompressor.exe plus README.md. Tool binaries are added when -BundleTools is used.
- Lossy formats can only be made smaller by accepting some trade-off. The app protects against obvious quality degradation by default instead of blindly honoring unsafe settings.
- If
ffprobe.exeis not present, the app falls back to reading metadata fromffmpeg.exe. - YouTube import requires both
ffmpeg.exeandyt-dlp.exeto be available next toAudioCompressor.exeor on the PATH.