Changelog¶
We are operating with semantic versioning.
HEAD¶
v6.1.1¶
Micro:
- Fix alignment in
VideoFrame.from_ndarray()
. (#478) - Fix error message in
Buffer.update()
.
Build:
- Fix more compiler warnings.
v6.1.0¶
Minor:
av.datasets
for sample data that is pulled from either FFmpeg’s FATE suite, or our documentation server.InputContainer.seek()
gets astream
argument to specify thetime_base
the requestedoffset
is in.
Micro:
- Avoid infinite look in
Stream.__getattr__
. (#450) - Correctly handle Python I/O with no
seek
method. - Remove
Datastream.seek
override (#299)
Build:
- Assert building against compatible FFmpeg. (#401)
- Lock down Cython lanaguage level to avoid build warnings. (#443)
Other:
- Incremental improvements to docs and tests.
- Examples directory will now always be runnable as-is, and embeded in the docs (in a copy-pastable form).
v6.0.0¶
Major:
- Drop support for FFmpeg < 3.2.
- Remove
VideoFrame.to_qimage
method, as it is too tied to PyQt4. (#424)
Minor:
- Add support for all known sample formats in
AudioFrame.to_ndarray()
and addAudioFrame.to_ndarray()
. (#422) - Add support for more image formats in
VideoFrame.to_ndarray()
andVideoFrame.from_ndarray()
. (#415)
Micro:
- Fix a memory leak in
OutputContainer.mux_one()
. (#431) - Ensure
OutputContainer.close()
is called at destruction. (#427) - Fix a memory leak in
OutputContainer
initialisation. (#427) - Make all video frames created by PyAV use 8-byte alignment. (#425)
- Behave properly in
VideoFrame.to_image()
andVideoFrame.from_image()
whenwidth != line_width
. (#425) - Fix manipulations on video frames whose width does not match the line stride. (#423)
- Fix several
Plane.line_size
misunderstandings. (#421) - Consistently decode dictionary contents. (#414)
- Always use send/recv en/decoding mechanism. This removes the
count
parameter, which was not used in the send/recv pipeline. (#413) - Remove various deprecated iterators. (#412)
- Fix a memory leak when using Python I/O. (#317)
- Make
OutputContainer.mux_one()
call av_interleaved_write_frame with the GIL released.
Build:
- Remove the “reflection” mechanism, and rely on FFmpeg version we build against to decide which methods to call. (#416)
- Fix many more
const
warnings.
v0.x.y¶
Note
Below here we used v0.x.y
.
We incremented x
to signal a major change (i.e. backwards
incompatibilities) and incremented y
as a minor change (i.e. backwards
compatible features).
Once we wanted more subtlety and felt we had matured enough, we jumped
past the implications of v1.0.0
straight to v6.0.0
(as if we had not been stuck in v0.x.y
all along).
v0.5.3¶
Minor:
- Expose
VideoFrame.pict_type
asPictureType
enum. (#402) - Expose
Codec.video_rates
andCodec.audio_rates
. (#381)
Patch:
- Fix
Packet.time_base
handling during flush. (#398) VideoFrame.reformat()
can throw exceptions when requested colorspace transforms aren’t possible.- Wrapping the stream object used to overwrite the
pix_fmt
attribute. (#390)
Runtime:
- Deprecate
VideoFrame.ptr
in favour ofVideoFrame.buffer_ptr
. - Deprecate
Plane.update_buffer()
andPacket.update_buffer
in favour ofPlane.update()
. (#407) - Deprecate
Plane.update_from_string()
in favour ofPlane.update()
. (#407) - Deprecate
AudioFrame.to_nd_array()
andVideoFrame.to_nd_array()
in favour ofAudioFrame.to_ndarray()
andVideoFrame.to_ndarray()
. (#404)
Build:
- CI covers more cases, including macOS. (#373 and #399)
- Fix many compilation warnings. (#379, #380, #387, and #388)
Docs:
v0.5.2¶
Build:
- Fixed Windows build, which broke in v0.5.1.
- Compiler checks are not cached by default. This behaviour is retained if you
source scripts/activate.sh
to develop PyAV. (#256) - Changed to
PYAV_SETUP_REFLECT_DEBUG=1
fromPYAV_DEBUG_BUILD=1
.
v0.5.1¶
Build:
- Set
PYAV_DEBUG_BUILD=1
to force a verbose reflection (mainly for being installed viapip
, which is why this is worth a release).
v0.5.0¶
Major:
- Dropped support for Libav in general. (#110)
- No longer uses libavresample.
Minor:
av.open
hascontainer_options
andstream_options
.Frame
includespts
inrepr
.
Patch:
v0.4.1¶
Minor:
- Add Frame.interlaced_frame to indicate if the frame is interlaced. (#327 by @MPGek)
- Add FLTP support to
Frame.to_nd_array()
. (#288 by @rawler) - Expose
CodecContext.extradata
for codecs that have extra data, e.g. Huffman tables. (#287 by @adavoudi)
Patch:
v0.4.0¶
Major:
CodecContext
has taken over encoding/decoding, and can work in isolation of streams/containers.Stream.encode
returns a list of packets, instead of a single packet.AudioFifo
andAudioResampler
will raiseValueError
if input frames inconsistantpts
.time_base
use has been revisited across the codebase, and may not be converted bettweenStream.time_base
andCodecContext.time_base
at the same times in the transcoding pipeline.CodecContext.rate
has been removed, but proxied toVideoCodecContext.framerate
andAudioCodecContext.sample_rate
. The definition is effectively inverted from the old one (i.e. for 24fps it used to be1/24
and is now24/1
).- Fractions (e.g.
time_base
,rate
) will beNone
if they are invalid. InputContainer.seek
andStream.seek
will raise TypeError if given a float, when previously they converted it from seconds.
Minor:
- Added
Packet.is_keyframe
andPacket.is_corrupt
. (#226) - Many more
time_base
,pts
and other attributes are writeable. Option
exposes much more of the API (but not get/set). (#243)- Expose metadata encoding controls. (#250)
- Expose
CodecContext.skip_frame
. (#259)
Patch:
v0.3.3¶
Patch:
v0.3.2¶
Minor:
- Expose basics of avfilter via
Filter
. - Add
Packet.time_base
. - Add
AudioFrame.to_nd_array
to match same onVideoFrame
. - Update Windows build process.
Patch:
- Further improvements to the logging system. (#128)
v0.3.1¶
Minor:
av.logging.set_log_after_shutdown
renamed toset_print_after_shutdown
- Repeating log messages will be skipped, much like ffmpeg’s does by default
Patch:
v0.3.0¶
Major:
- Python IO can write
- Improve build system to use Python’s C compiler for function detection; build system is much more robust
- MSVC support. (#115 by @vidartf)
- Continuous integration on Windows via AppVeyor. (by @vidartf)
Minor:
- Add
Packet.decode_one()
to skip packet flushing for codecs that would otherwise error StreamContainer
for easier selection of streams- Add buffer protocol support to Packet
Patch:
- Fix bug when using Python IO on files larger than 2GB. (#109 by @xxr3376)
- Fix usage of changed Pillow API
Known Issues:
- VideoFrame is suspected to leak memory in narrow cases on Linux. (#128)
v0.2.4¶
v0.2.3¶
Warning
There was an issue with the PyPI distribution in which it required Cython to be installed.
Major:
- Python IO.
- Agressively releases GIL
- Add experimental Windows build. (#84)
Minor:
- Several new Stream/Packet/Frame attributes
Patch:
v0.2.2¶
- Cythonization in setup.py; mostly a development issue.
- Fix for av.InputContainer.size over 2**31.
v0.2.1¶
- Python 3 compatibility!
- Build process fails if missing libraries.
- Fix linking of libavdevices.
v0.2.0¶
Warning
This version has an issue linking in libavdevices, and very likely will not work for you.
It sure has been a long time since this was released, and there was a lot of arbitrary changes that come with us wrapping an API as we are discovering it. Changes include, but are not limited to:
- Audio encoding.
- Exposing planes and buffers.
- Descriptors for channel layouts, video and audio formats, etc..
- Seeking.
- Many many more properties on all of the objects.
- Device support (e.g. webcams).
v0.1.0¶
- FIRST PUBLIC RELEASE!
- Container/video/audio formats.
- Audio layouts.
- Decoding video/audio/subtitles.
- Encoding video.
- Audio FIFOs and resampling.