encoders
FDK_AAC
Bases: Encoder
Uses the libFDK implementation in ffmpeg to encode audio to AAC. It's strongly recommended to use qAAC if you're on windows because its straight up the best AAC encoder.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bitrate_mode
|
Any int value from 0 - 5 0 will be CBR and using the bitrate below, 1 - 5 are true VBR modes See https://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC#Bitrate_Modes |
required | |
bitrate
|
Any int value representing kbps |
required | |
cutoff
|
Hard frequency cutoff. 20 kHz is a good default and setting it to 0 will let it choose automatically. |
required | |
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
use_binary
|
Whether to use the fdkaac encoder binary or ffmpeg. If you don't have ffmpeg compiled with libfdk it will try to fall back to the binary. |
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/encoders.py
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 |
|
FF_FLAC
Bases: LosslessEncoder
Uses the ffmpeg/libav FLAC encoder to encode audio to flac.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
compression_level
|
Any int value from 0 to 12 (Higher = better but slower) |
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/encoders.py
FLAC
Bases: LosslessEncoder
Uses the reference libFLAC encoder to encode audio to flac.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
compression_level
|
Any int value from 0 to 8 (Higher = better but slower) |
required | |
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
verify
|
Make the encoder verify each encoded sample while encoding to ensure valid output. |
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/encoders.py
FLACCL
Bases: LosslessEncoder
Uses the CUETools FLACCL encoder to encode audio to flac. This one uses OpenCL or Cuda depending on your GPU and claims to have better compression than libFLAC.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
compression_level
|
Any int value from 0 to 11 (Higher = better but slower) Keep in mind that over 8 is technically out of spec so we default to 8 here. |
required | |
preprocess
|
Any amount of preprocessors to run before passing it to the encoder. |
required | |
verify
|
Make the encoder verify each encoded sample while encoding to ensure valid output. |
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/encoders.py
Opus
Bases: Encoder
Uses opusenc to encode audio to opus.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bitrate
|
Any int value representing kbps from 1 to 512 Automatically chooses 192 and 320 for stereo and surround respectively if None |
required | |
vbr
|
Uses VBR encoding if True |
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/encoders.py
qAAC
Bases: Encoder
Uses qAAC to encode audio to AAC.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
q
|
Quality value ranging from 0 to 127 if using TVBR, otherwise bitrate in kbps |
required | |
mode
|
Encoding mode, Defaults to TVBR |
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 |