PyAV
PyAV copied to clipboard
Allow direct creation of AudioFrame with planes data
Overview
Currently, an AudioFrame has to be created and then the data set after the fact ( see here ), but it would be nice to be able to set the planes directly
Desired Behavior
Ability to set array or planes in the AudioFrame init
Example API
Then the linked to code could be replaced with:
return AudioFrame(array=array, format=format, layout=layout, samples=samples)
I don't really have plans for this, the API is already complex enough.