audio
__all__ = ['audio_async_render', 'WaveHeader']
module-attribute
Most if not everything in this file is stolen from this because I don't feel like waiting for setsu to add it to vapoursynth itself.
https://github.com/Ichunjo/vardautomation/blob/fae054956b3611e641276dc92f4a8c4060a3d8e2/vardautomation/render.py
WaveFormat
Bases: IntEnum
WAVE form wFormatTag IDs Complete list is in mmreg.h in Windows 10 SDK.
Source code in vsmuxtools/utils/audio.py
WaveHeader
audio_async_render(audio, outfile, header=WaveHeader.AUTO, progress='Rendering audio...')
Render an audio by requesting frames asynchronously using audio.frames.
Implementation-like of VideoNode.output for an AudioNode that isn't in the Cython side yet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
audio
|
AudioNode
|
Audio to render. |
required |
outfile
|
BinaryIO
|
Render output BinaryIO handle. |
required |
header
|
WaveHeader
|
Kind of Wave header. WaveHeader.AUTO adds a Wave64 header if the audio * Has more than 2 channels * Has a bitdepth > 16 * Has more than 44100 samples |
AUTO
|
progress
|
Optional[str]
|
String to use for render progress display. If empty or |
'Rendering audio...'
|