cabsl - Linux


cabsl is a command-line tool that converts audio files to and from various formats, including AAC, MP3, WAV, OGG, and FLAC. It is primarily used to convert audio files quickly and efficiently for different purposes, such as playback on specific devices, storage optimization, or various editing tasks.


cabsl [options] <input-file> <output-file>


  • -f, –format: Specify the output audio format. Accepted values include:
    • aac
    • mp3
    • wav
    • ogg
    • flac
  • -b, –bitrate: Set the bitrate for the output audio file (kbps). Default: 128 for MP3, 160 for AAC, 1411 for WAV, 160 for OGG, and 1411 for FLAC.
  • -c, –channels: Specify the number of channels in the output audio file. Default: 2.
  • -s, –samplerate: Set the sampling rate for the output audio file (Hz). Default: 44100.
  • -v, –verbose: Output verbose information during conversion.
  • -h, –help: Display this help message and exit.


  • Convert an MP3 file to WAV format:
cabsl -f wav input.mp3 output.wav
  • Convert an AAC file to FLAC format with a bitrate of 500 kbps:
cabsl -f flac -b 500 input.aac output.flac
  • Extract audio from a video file into an OGG file:
ffmpeg -i video.mp4 -vn -acodec libvorbis output.ogg

Common Issues

  • Invalid output format: Ensure the specified output format is supported. Check the list of accepted values for -f.
  • Conversion failure: Verify that the input file is a valid audio file and that the output file path is accessible.
  • No output file specified: Always provide an output file path as the last argument.


cabsl can be combined with other commands for advanced audio processing tasks. For example:

  • Convert and trim audio:
cabsl -f mp3 input.wav output.mp3
ffmpeg -i output.mp3 -ss 00:00:10 -t 00:00:15 trimmed.mp3

Related Commands

  • ffmpeg: A powerful command-line tool for video and audio conversion, editing, and transcoding.
  • sox: A command-line tool for audio processing and manipulation.