The track player, which the Klipspringer hub uses for playing and streaming audio files (with sources kliptrack and audiostream), can be run directly with the command kliptrack1. It can play .flac, .oga (Ogg FLAC), .ogg (Ogg Vorbis), and .opus files if the respective codec API is installed, and .wav or .aiff (or .aif) files without any external codec.
An advantage of kliptrack compared to other audio players is its smooth transition between tracks, which comes from starting to decode the next file before the current one is finished (on the condition that the files have the exact same format). Tracks can even be crossfaded into each other with the -mixinfo option. Other assets are quick and consistent response to skip and seek commands, and precision in status updates.
The track player is installed as part of the full Klipspringer platform.
Running
To play a sequence of audio files on the standard audio output device on your system, simply use the command kliptrack, something like this:
kliptrack track1.flac track2.flac track3.flac
If the audio device you want to use is not the configured standard on your system, or if you want to output to a file instead, specify it with the -output option.
Run kliptrack -help to see a full list of options. The -mixinfo option is explained in the blog post about crossfading.
Interaction
When run from a TTY terminal, the track player has an interactive interface, which continuously shows the current file being played and the time, and accepts key presses to control playback (skipping forward and backwards etc.) The full set of key commands is listed with kliptrack -help.
Notes
- The command is a shell script that launches the Java class TrackPlayer. Hence, Java needs to be installed, but Node.js is not required if
kliptrackis run as a standalone program.