2024-04-30 12:50:38 +07:00
v1
2024-04-30 00:57:24 +07:00
v3
2024-04-30 12:47:46 +07:00
v3
2024-04-30 12:47:46 +07:00
2024-04-30 00:53:27 +07:00
v3
2024-04-30 12:47:46 +07:00
2024-04-30 12:50:38 +07:00
v3
2024-04-30 12:47:46 +07:00
v3
2024-04-30 12:47:46 +07:00
v3
2024-04-30 12:47:46 +07:00

xHE-Opus

xHE-Opus is extended High Efficiency. It use Dual-Encoder to encode per channel and bitrate is divide 2 for per channel. It provides optimal coding efficiency with bitrates from 6 to 510 kilobits per second and above. It has content loudness metadata on footer.

Install

PyOgg (damp11113 moded)

Using

Encoder

to encode you can use

$ python3 encode.py
usage: encode.py [-h] [-sr SAMPRATE] [-b BITRATE] [-c COMPRESS] [-l LOSS] [-fs FRAMESIZE] [-bm BITMODE]
                 [-bw BANDWIDTH] [-a APP] [-v VER] [-pred] [-ph] [-dtx] [-sb]
                 input output
encode.py: error: the following arguments are required: input, output

simple example

$ python3 encode.py input.wav output.xopus

This will convert to xhe-opus with bitrate 64Kbps (32Kbps per channel), bitrate mode is CVBR, compression is 10 and app is hev2

or if you want to set bitrate you can use -b <bitrate> input bit per sec (bps) like

$ python3 encode.py input.wav output.xopus -b 16000

Decoder/Player

To player or decode this file you can use

$ python3 input.xopus

or if you want only convert to wav you can use

$ python3 input.xopus -o output.wav
Languages
Python 100%