config command provides tools to view, edit, and manage your Aceplay configuration. Settings are stored in ~/.config/aceplay/config.yaml.
Syntax
Subcommands
show
Display your current configuration settings.set
Set a specific configuration value.key- The configuration key to setvalue- The new value
edit
Open an interactive configuration editor (TUI).Configuration Keys
The following keys can be used withaceplay config set:
Default video player for playback.Supported values:
mpv, vlc, ffplayExample:Hostname or IP address of acestream-engine.Example:
Port number for acestream-engine HTTP API.Example:
Default timeout for stream startup.Accepts duration strings like
30s, 1m, 2m30s.Example:Enable HLS mode by default.Accepted values:
true, falseExample:Enable verbose logging by default.Accepted values:
true, falseExample:Usage Examples
View Current Configuration
Change Default Player
Configure Remote Engine
Set up connection to acestream-engine on another machine:Adjust Default Timeout
Enable HLS by Default
Enable Verbose Logging
Multiple Settings
You can set multiple values in sequence:Use Interactive Editor
For a more user-friendly experience, use the interactive editor:Interactive Menu
Runningaceplay config without arguments (in a terminal) opens an interactive menu:
The interactive menu is only available when running in a terminal. In non-interactive environments (scripts, CI/CD), use
aceplay config show or aceplay config set.Configuration File
Configuration is stored in YAML format at:XDG_CONFIG_HOME is set:
Environment Variables
You can override configuration values using environment variables with theACEPLAY_ prefix:
Environment variables take precedence over the configuration file, but command-line flags take precedence over everything.
First Run Setup
On first run, if no configuration exists, Aceplay will launch a setup wizard to help you configure the basics:- Detect available video players on your system
- Let you select your preferred player
- Configure HLS mode preference
- Save your initial configuration
Configuration Precedence
Settings are applied in this order (later values override earlier ones):- Default values (hardcoded in Aceplay)
- Configuration file (
~/.config/aceplay/config.yaml) - Environment variables (
ACEPLAY_*) - Command-line flags (
--player,--timeout, etc.)
Resetting Configuration
To reset to default settings, simply delete the configuration file:Troubleshooting
Configuration not saved
Ensure the configuration directory exists and is writable:Invalid configuration value
If you set an invalid value, Aceplay will show an error:Related Commands
- Play Command - Play streams with custom flags
- Interactive Mode - Visual configuration editor