### software::resampling::Context::get_with API Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Adds the `Context::get_with` method to `software::resampling` for specifying additional options during context creation. ```APIDOC software::resampling::Context::get_with: Add method for specifying additional options. ``` -------------------------------- ### util::log Module for FFmpeg Logging Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Introduces the `util::log` module to expose FFmpeg's internal logging facilities to the Rust application. ```APIDOC util::log module: Exposes FFmpeg's logging facilities. ``` -------------------------------- ### FFmpeg 5.0.0 API: Codec Context Retrieval Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Documents the change in FFmpeg 5.0.0 where `AVStream.codec` was removed. The new recommended approach for obtaining codec information from a stream is to use `Context::from_parameters(stream.parameters())`. ```APIDOC AVStream.codec removed. New method: Context::from_parameters(stream.parameters()) to get codec context. ``` -------------------------------- ### Automatic FFmpeg Version Detection Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Describes the change where FFmpeg version detection is now automatic, making feature flags like `ffmpeg4`, `ffmpeg41`, `ffmpeg42`, and `ffmpeg43` obsolete. These flags are kept as no-ops for backward compatibility but will be removed in future versions. ```APIDOC FFmpeg version detection is now automatic. Obsolete feature flags (noop): ffmpeg4, ffmpeg41, ffmpeg42, ffmpeg43. ``` -------------------------------- ### Modern FFmpeg Codec APIs (Send/Receive Pattern) Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Introduces the new encoding/decoding APIs based on the modern send/receive pattern, replacing the deprecated `avcodec_decode/encode` functions. These include `send_frame()` / `send_eof()` and `receive_packet()` for encoders, and `send_packet()` / `send_eof()` and `receive_frame()` for decoders. ```APIDOC New encoding/decoding APIs (send/receive pattern): - encoder::{Audio, Video}: - send_frame() - send_eof() - receive_packet() - decoder::{Audio, Video}: - send_packet() - send_eof() - receive_frame() ``` -------------------------------- ### Deprecated FFmpeg Codec APIs (Pre-FFmpeg 3.1) Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Details the deprecation of older FFmpeg codec APIs like `avcodec_decode_video2()`, `avcodec_decode_audio4()`, `avcodec_encode_video2()`, and `avcodec_encode_audio2()`, and their corresponding Rust wrappers (`decoder::Video::decode()`, `decode::Audio::decode()`, `encoder::Video::encode()`, `encoder::Audio::decode()`). Users are advised to migrate to the modern send/receive APIs. ```APIDOC Deprecated APIs: - avcodec_decode_video2() - avcodec_decode_audio4() - avcodec_encode_video2() - avcodec_encode_audio2() Corresponding Rust wrappers: - decoder::Video::decode() - decode::Audio::decode() - encoder::Video::encode() - encoder::Audio::decode() ``` -------------------------------- ### util::error::Error::Other Variant Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Introduces a new `Error` variant, `Error::Other { errno }`, to wrap POSIX error codes (from `AVERROR` macro) and re-exports common POSIX error codes under `util::error`. ```APIDOC util::error::Error::Other { errno }: New variant for wrapped POSIX error codes. Common POSIX error codes re-exported under util::error. ``` -------------------------------- ### filter::Source::close API Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Adds the `Source::close()` method to the `filter` module, exposing the underlying `av_buffersrc_close` FFmpeg function. ```APIDOC filter::Source::close(): Exposes av_buffersrc_close. ``` -------------------------------- ### Packet::write_interleaved Signature Update Source: https://github.com/zmwangx/rust-ffmpeg/blob/master/CHANGELOG.md Fixes the signature of `Packet::write_interleaved` from `Result` to `Result<(), Error>`. ```APIDOC Packet::write_interleaved signature changed: - Old: Result - New: Result<(), Error> ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.