play command is the primary way to play Ace Stream content with Aceplay. It connects to the acestream-engine, retrieves the stream, and launches your configured video player.
Syntax
play subcommand:
URL Formats
Aceplay accepts Ace Stream URLs in the following formats:The Content ID is a 40-character hexadecimal string (SHA-1 hash). Aceplay will automatically add the
acestream:// prefix if you provide just the content ID.Flags
The play command accepts the following flags to override your default configuration:Specify which video player to use for playback.Supported players:
mpv- Recommended for its lightweight design and performancevlc- Feature-rich player with wide format supportffplay- Part of the FFmpeg suite
Hostname or IP address where acestream-engine is running.Example:
Port number for the acestream-engine HTTP API.Example:
Maximum time to wait for the stream to become ready.Accepts duration strings like
30s, 1m, 90s, 2m30s.Example:Enable HLS (HTTP Live Streaming) mode for playback.Some streams may work better with HLS enabled.Example:
Enable verbose output with detailed logging information.Useful for debugging connection or playback issues.Example:
Path to a custom configuration file or directory.Example:
Usage Examples
Basic Playback
Play a stream with default settings:Using a Specific Player
Play with VLC instead of the default player:Remote Engine Connection
Connect to acestream-engine running on another machine:Extended Timeout for Slow Streams
Increase timeout for streams that take longer to start:Enable HLS Mode
Use HLS streaming for better compatibility:Verbose Debugging Output
Enable detailed logging to troubleshoot issues:Combining Multiple Flags
Example Output
When you run the play command, you’ll see output similar to this:How It Works
- URL Parsing: Aceplay validates and extracts the content ID from the acestream:// URL
- Engine Connection: Connects to acestream-engine (starts it automatically if not running)
- Stream Request: Requests the stream using the content ID
- Waiting: Polls the engine until the stream is ready (with timeout)
- Player Launch: Launches your configured video player with the stream URL
- Monitoring: Displays real-time statistics while streaming
Troubleshooting
Common Issues
Stream timeout: Increase the timeout value if the stream takes a long time to start:Related Commands
- Config Command - Configure default settings
- Interactive Mode - Use the interactive configuration wizard