|
| 1 | +# TAGLINE |
| 2 | + |
| 3 | +Play encoded audio streams through PipeWire |
| 4 | + |
| 5 | +# TLDR |
| 6 | + |
| 7 | +**Play an encoded audio file** |
| 8 | + |
| 9 | +```pw-encplay [path/to/file]``` |
| 10 | + |
| 11 | +**Play with a specific volume** |
| 12 | + |
| 13 | +```pw-encplay --volume [0.8] [path/to/file]``` |
| 14 | + |
| 15 | +**Play to a specific target node** |
| 16 | + |
| 17 | +```pw-encplay --target [node_id] [path/to/file]``` |
| 18 | + |
| 19 | +**Play with verbose output** |
| 20 | + |
| 21 | +```pw-encplay -v [path/to/file]``` |
| 22 | + |
| 23 | +# SYNOPSIS |
| 24 | + |
| 25 | +**pw-encplay** [_options_] [_FILE_ | **-**] |
| 26 | + |
| 27 | +# PARAMETERS |
| 28 | + |
| 29 | +**--volume** _level_ |
| 30 | +> Stream volume (default 1.0). |
| 31 | +
|
| 32 | +**--rate** _hz_ |
| 33 | +> Sample rate in Hz (default 48000). |
| 34 | +
|
| 35 | +**--channels** _num_ |
| 36 | +> Number of audio channels (default 2). |
| 37 | +
|
| 38 | +**--channel-map** _map_ |
| 39 | +> Channel layout (e.g. stereo, surround-51, or custom FL,FR mapping). |
| 40 | +
|
| 41 | +**--format** _fmt_ |
| 42 | +> Sample format: u8, s8, s16, s24, s32, f32, f64 (default s16). |
| 43 | +
|
| 44 | +**--target** _value_ |
| 45 | +> Target node: auto, 0, or a specific node ID. |
| 46 | +
|
| 47 | +**--latency** _value_ |
| 48 | +> Node latency (default 100ms). |
| 49 | +
|
| 50 | +**-q**, **--quality** _level_ |
| 51 | +> Resampler quality (0-15, default 4). |
| 52 | +
|
| 53 | +**-R**, **--remote** _name_ |
| 54 | +> Connect to a specific PipeWire instance. |
| 55 | +
|
| 56 | +**-P**, **--properties** _json_ |
| 57 | +> Extra stream properties as a JSON object. |
| 58 | +
|
| 59 | +**-v**, **--verbose** |
| 60 | +> Enable verbose output. |
| 61 | +
|
| 62 | +**-h**, **--help** |
| 63 | +> Display help information. |
| 64 | +
|
| 65 | +**--version** |
| 66 | +> Show version details. |
| 67 | +
|
| 68 | +# DESCRIPTION |
| 69 | + |
| 70 | +**pw-encplay** plays encoded (compressed) audio streams through a PipeWire server. It is a convenience wrapper for **pw-cat** in encoded playback mode, passing encoded audio data directly to the PipeWire graph without decoding it first. |
| 71 | + |
| 72 | +This enables passthrough of compressed audio formats (such as AC3, DTS, or AAC) to hardware decoders or receivers that support native decoding, preserving the original encoded stream quality. |
| 73 | + |
| 74 | +When **-** is given as the file, data is read from stdin. |
| 75 | + |
| 76 | +# CAVEATS |
| 77 | + |
| 78 | +Requires a sink that supports the encoded format for passthrough playback. If the connected output does not support the format, no audio will be produced. Typically used with HDMI or S/PDIF outputs connected to AV receivers. |
| 79 | + |
| 80 | +# HISTORY |
| 81 | + |
| 82 | +Part of **PipeWire**, the modern multimedia framework for Linux created by **Wim Taymans** at Red Hat. PipeWire was first released in **2017** and provides unified audio and video handling, replacing PulseAudio and JACK. The pw-cat family of tools provides simple command-line media playback and capture. |
| 83 | + |
| 84 | +# SEE ALSO |
| 85 | + |
| 86 | +[pw-cat](/man/pw-cat)(1), [pw-play](/man/pw-play)(1), [pw-record](/man/pw-record)(1), [pipewire](/man/pipewire)(1) |
0 commit comments