Overview
Aceplay uses a YAML configuration file to store persistent settings. The configuration file is automatically created when you run Aceplay for the first time or use the interactive configuration wizard.Configuration File Location
The configuration file is located at:XDG_CONFIG_HOME is set:
Complete Configuration Example
Configuration Fields
Top-Level Fields
The video player to use for playback. Supported players:
mpv, vlc, ffplay.See Player Setup for more details on configuring players.Maximum time to wait for a stream to become ready. Accepts duration strings like
60s, 2m, 1m30s.Maximum time to wait when connecting to the acestream-engine. Accepts duration strings.
Enable HLS (HTTP Live Streaming) mode. When enabled, streams are delivered using HLS protocol.
Enable verbose logging mode for detailed output and debugging information.
Engine Configuration
Theengine section configures the connection to acestream-engine:
Managing Configuration
View Current Configuration
Display your current configuration settings:Interactive Configuration
Launch the interactive configuration wizard:- Select your preferred video player
- Configure acestream-engine settings
- Set timeout and playback options
- Enable/disable HLS and verbose mode
Set Individual Values
Update specific configuration values from the command line:Manual Editing
You can also edit the configuration file directly with your preferred text editor:Configuration Priority
Configuration values are applied in the following order (later sources override earlier ones):- Default values - Built-in defaults from
internal/config/config.go:14-22 - Configuration file - Values from
~/.config/aceplay/config.yaml - Environment variables - See Environment Variables
- Command-line flags - Flags passed directly to the
aceplaycommand
Example Priority
Default Values Reference
These defaults are defined ininternal/config/config.go:
| Field | Default Value |
|---|---|
player | mpv |
timeout | 60s |
connect_timeout | 5s |
hls | false |
verbose | false |
engine.host | localhost |
engine.port | 6878 |
engine.auto_start | false |
engine.auto_start_command | "" (empty) |
First Run Setup
On first run, if no configuration file exists, Aceplay will automatically launch a setup wizard that:- Detects available video players on your system
- Prompts you to select your preferred player
- Asks if you want to enable HLS mode
- Creates the configuration file with your selections