PyAV is a Pythonic binding for FFmpeg or Libav. We aim to provide all of the power and control of the underlying library, but manage the gritty details as much as possible.
Currently we provide the basics of:
- libavformat:
- :class:`containers <.Container>`
- audio/video/subtitle :class:`streams <.Stream>`
- :class:`packets <.Packet>`
- libavdevice (by specifying a format to containers)
- and a few more utilities.
.. testsetup::
path_to_video = common.fate_png() # We don't need a full QT here.
.. testcode::
import av
import os
container = av.open(path_to_video)
for frame in container.decode(video=0):
frame.to_image().save('frame-%04d.jpg' % frame.index)
.. toctree::
:maxdepth: 2
about
installation
examples
api
hacking
includes