memecoders
This contains a few either amusing or mostly useless codecs/encoders.
Thought they might be cool to have atleast.
LossyWav
Bases: Encoder
A lossy (lol) preprocessor for wav/pcm audio that selectively reduces bitdepth by zero'ing out certain bits. Certain lossless encoders like FLAC (only the reference one) will get a massive size reduction that way. I don't really see a use for this over actual lossy codecs besides making a meme release.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quality
|
Lossywav Quality Preset |
required | |
target_encoder
|
Whatever encoder the lossy wav file will be fed to. (lossless encoders only) Only properly supports libFLAC and wavpack (will be added later) out of what we have. |
required | |
override_options
|
Automatically sets the appropriate options for each encoder to work as intended. |
required | |
limit
|
Frequency cutoff in hz. |
required | |
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
output
|
Custom output. Can be a dir or a file. Do not specify an extension unless you know what you're doing. |
required |
Source code in muxtools/audio/memecoders.py
TTA
Bases: LosslessEncoder
Uses ffmpeg to encode audio to TTA/The True Audio. (I could not get the reference encoder to work with any ffmpeg wav or any flac) This doesn't really seem to have any benefit over FLAC except for maybe encode speed? Definitely has a cool name tho.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
output
|
Custom output. Can be a dir or a file. Do not specify an extension unless you know what you're doing. |
required |
Source code in muxtools/audio/memecoders.py
Wavpack
Bases: LosslessEncoder
Another interesting lossless codec even if solely for the fact that it supports 32bit float and an arbitrary amount of channels. Compression seems to be ever so slightly worse than FLAC from my very scarce testing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fast
|
Use either fast or high quality modes. Obviously fast means less compression. |
required | |
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
output
|
Custom output. Can be a dir or a file. Do not specify an extension unless you know what you're doing. |
required |
Source code in muxtools/audio/memecoders.py
qALAC
Bases: Encoder
Uses qAAC encoder to encode audio to ALAC. This is basically just worse FLAC and the only real use is good Apple hardware support.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
output
|
Custom output. Can be a dir or a file. Do not specify an extension unless you know what you're doing. |
required |