PyAV icon indicating copy to clipboard operation
PyAV copied to clipboard

Allow direct creation of AudioFrame with planes data

Open daveisfera opened this issue 2 years ago • 1 comments

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)

daveisfera avatar Oct 12 '23 02:10 daveisfera

I don't really have plans for this, the API is already complex enough.

jlaine avatar Nov 02 '23 06:11 jlaine