keepcalculator

06 Numbers and Powers

Mp3blaster Music Player for Terminal: How to Use It

Card No. 06·43828 · Updated · Standard formula, shown below

Mp3blaster is a console-based audio player that lets you play MP3, Ogg Vorbis, and WAV files directly from a terminal, without a graphical desktop. You control it with keyboard shortcuts, and it is designed for users who work in a text-only environment or want a lightweight player for older hardware. This article explains what Mp3blaster is, how to install and use it, and how it compares to other terminal music players.

What Is Mp3blaster?

Mp3blaster is a small, text-based audio player that runs in a terminal emulator or on the Linux console. It was originally written by Bastiaan Bakker and later maintained by others. The program supports MP3, Ogg Vorbis, and WAV files, and it can play a list of tracks (a playlist) with basic controls like pause, next, previous, and volume adjustment. It does not have a graphical interface; all interaction happens via keyboard keys.

The player is known for being very lightweight and fast, making it suitable for old computers, embedded systems, or servers where a desktop environment is not installed. It is also useful for users who prefer keyboard-driven workflows and want to avoid the overhead of a GUI.

How to Install Mp3blaster

Mp3blaster is available in the package repositories of many Linux distributions. To install it, you typically use your distribution’s package manager. For example:

  • On Debian/Ubuntu: sudo apt install mp3blaster
  • On Fedora: sudo dnf install mp3blaster
  • On Arch Linux: sudo pacman -S mp3blaster

If it is not in your repository, you can compile it from source. The source code is available from the official website or its GitHub mirror. Compiling requires a C++ compiler and the development libraries for the audio formats (e.g., libmpg123, libvorbis). After compiling, you run make install as root.

Basic Usage and Keyboard Controls

To start Mp3blaster, simply type mp3blaster in the terminal. You will see a full-screen interface with a playlist on the right and a file browser on the left. You can navigate with the arrow keys. To add files to the playlist, press a on a file or directory. To play the selected file, press Enter or p. To control playback, use these common keys:

  • Space – pause/resume
  • n – next track
  • b – previous track
  • + / - – increase/decrease volume
  • q – quit
  • ? – show help

The interface is divided into panes; you can switch between them with Tab. The playlist is saved to a file (e.g., ~/.mp3blaster/playlist) so you can reload it later with mp3blaster -l playlistfile.

Common Problems and How to Fix Them

Users often encounter a few issues when using Mp3blaster:

  • No sound: Ensure your audio device is properly configured. Mp3blaster uses the OSS (Open Sound System) or ALSA API. If you are on a modern system with PulseAudio or PipeWire, you may need to run it with aoss or padsp to redirect audio. For example: padsp mp3blaster.
  • Cannot play MP3 files: Some distributions compile Mp3blaster without MP3 support due to patent issues (though patents have expired). Check if the package includes MP3; if not, you may need to compile from source with --with-mp3.
  • Interface looks garbled: Make sure your terminal supports the required character set and size. Try increasing the terminal window size or using a different terminal emulator.
  • Playlist not saved: By default, the playlist is saved when you quit. If it is not, check the directory ~/.mp3blaster/ exists and is writable.

Comparing Mp3blaster to Other Terminal Players

Mp3blaster is one of several terminal-based audio players. Here is how it compares to a few others:

  • MOC (Music On Console): MOC has a more modern interface with a server-client architecture, supports more formats (including FLAC), and uses a separate daemon. Mp3blaster is simpler and lighter.
  • CMUS (C* Music Player): CMUS is highly configurable, supports many formats, and has a powerful library browser. It is more feature-rich but also more complex. Mp3blaster is easier for basic playback.
  • mpd (Music Player Daemon) + client: MPD is a daemon that plays music in the background, controlled by clients like ncmpcpp. It is ideal for remote control and large libraries. Mp3blaster is a single process without a daemon.
  • VLC (ncurses interface): VLC can run in a terminal with vlc -I ncurses, but it is much heavier and not designed for pure terminal use.

Mp3blaster stands out for its minimalism and speed. It is a good choice if you want a no-frills player that just works.

Is Mp3blaster Still Maintained?

The original development of Mp3blaster stopped in the early 2000s, but the source code remains available and the program still compiles on modern systems with minor patches. Some distributions maintain their own patches. Because it is a small program, it does not have many dependencies and continues to work on current Linux kernels. However, it lacks support for newer audio formats like FLAC or Opus, and its interface may feel dated. For basic MP3 and Ogg playback, it remains functional.

Safety and Performance Considerations

Mp3blaster is a safe program; it does not require root privileges and does not modify your files. It only reads audio files and writes a playlist file in your home directory. However, as with any software, you should only install it from trusted sources (your distribution’s repository or the official source).

Performance-wise, Mp3blaster uses very little CPU and memory, making it ideal for low-resource systems. It can run on a Raspberry Pi or an old laptop with ease. The audio output is direct, so it may not support software mixing or per-application volume control; you must adjust the system volume or use the player’s volume keys.

Frequently Asked Questions

Can Mp3blaster play FLAC files?

No, Mp3blaster only supports MP3, Ogg Vorbis, and WAV. For FLAC, consider using MOC or CMUS.

How do I create a playlist in Mp3blaster?

Use the file browser to navigate to your music directory, then press a to add files or directories to the playlist. You can also load a playlist file with mp3blaster -l playlist.m3u.

Why is there no sound when I run Mp3blaster?

This is usually an audio server issue. Try running padsp mp3blaster (if using PulseAudio) or aoss mp3blaster (if using OSS compatibility). Also check that your sound card is not muted.

Can I use Mp3blaster on macOS or Windows?

Mp3blaster is primarily for Unix-like systems. It may compile on macOS with some tweaks, but it is not officially supported. On Windows, you would need a Unix-like environment like Cygwin or WSL.

Is Mp3blaster available for Android or iOS?

No, Mp3blaster is a desktop terminal application and is not available for mobile operating systems.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →