
More.Īv_frame_get_buffer ( AVFrame * frame, int align)Īllocate new buffer(s) for audio or video data.

Move everything contained in src to dst and reset src. More.Īv_frame_move_ref ( AVFrame *dst, AVFrame * src) Unreference all the buffers referenced by frame and reset the frame fields. More.Ĭreate a new frame that references the same data as src. Set up a new reference to the data described by the source frame. More.Īv_frame_ref ( AVFrame *dst, const AVFrame * src) More.įree the frame and any dynamically allocated objects in it, e.g. More.ĪV_FRAME_DATA_MASTERING_DISPLAY_METADATA,ĪV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENTĪllocate an AVFrame and set its fields to default values. This structure describes decoded (raw) audio or video data. Structure describing a single Region Of Interest.
Pip install -upgrade -r tests/requirements.Structure to hold side data for an AVFrame. # Either install the testing dependencies: See the Conda install docs to get started with (mini)Conda.Īnd if you want to build from the absolute source (for development or testing): git clone PyAV If you want to use your existing FFmpeg, the source version of PyAV is on PyPI too: pip install av -no-binary avĪnother way of installing PyAV is via conda-forge: conda install av -c conda-forge

You can install these wheels by running: pip install av Since release 8.0.0 binary wheels are provided on PyPI for Linux, Mac and Windows linked against a modern FFmpeg. Installationĭue to the complexity of the dependencies, PyAV is not always the easiest Python package to install from source. If the ffmpeg command does the job without you bending over backwards, PyAV is likely going to be more of a hindrance than a help.īut where you can't work without it, PyAV is a critical tool. This power does come with some responsibility as working with media is horrendously complicated and PyAV can't abstract it away or make all the best decisions for you. It exposes a few transformations of that data, and helps you get your data to/from other packages (e.g. PyAV is for direct and precise access to your media via containers, streams, packets, codecs, and frames.

We aim to provide all of the power and control of the underlying library, but manage the gritty details as much as possible. PyAV is a Pythonic binding for the FFmpeg libraries.
