# Changelog ## v0.18.1 (2023-01-06) * Expose packet duration ## v0.18.0 (2023-01-05) * Add try_into_mut() and into_mut() for audio and video frames * Add try_into_mut() for Packet * Add the ability to provide a hint to the muxer about the desired timebase * Add the ability to get/set stream ID * Add support for the new channel layout API introduced in FFmpeg 5.1 * Expose best effort timestamp for video frames * Expose picture type for video frames * Allow using per-target lib/include paths * Fix segfault caused by implicit av_malloc declaration in new FFmpeg versions ## v0.17.4 (2022-05-17) * Fix broken build with FFmpeg 4.x ## v0.17.3 (2022-03-08) * Fix docs.rs build ## v0.17.2 (2022-03-08) * TimeBase now implements the Debug trait * Allow setting raw packet timestamps * Build support for FFmpeg 5 ## v0.17.1 (2021-09-06) * Add convenience methods for creating decoder builders from Stream instances * Set pkt_timebase correctly when initializing decoders * Avoid using deprecated FFmpeg functions ## v0.17.0 (2021-05-28) * Add seek methods to Demuxer * Add Stream type with ability to set stream metadata * Add a MuxerBuilder method for setting per-container metadata * Rename DemuxerWithCodecParameters to DemuxerWithStreamInfo * Deprecate MuxerBuilder.set_url() in favor of MuxerBuilder.set_option() * Improve input format lookup ## v0.16.0 (2021-03-01) * Remove unjustified dependencies * Use std::time::Duration in Demuxer::find_stream_info ## v0.15.6 (2021-02-24) * Allow closing the muxer explicitly and taking back the underlying IO ## v0.15.5 (2020-10-29) * Add codec parameters type for subtitles * Allow passing URL to the muxer builder ## v0.15.4 (2020-10-07) * Fix minimum required pkg-config version ## v0.15.3 (2020-09-29) * Allow accessing audio frame samples ## v0.15.2 (2020-09-11) * Reset codec tag when adding stream to a muxer (fixes incompatibility between different containers) ## v0.15.1 (2020-08-11) * Use pkg-config for finding native dependencies ## v0.15.0 (2020-08-11) * Polish the public API a bit * Improve error handling * Update README * Add module-level docs * Improve decoder/encoder interface * Add better examples * Add license file ## v0.14.0 (2020-07-02) * Update the bytes crate ## v0.13.0 (2020-06-08) * Allow setting encoder and decoder options ## v0.12.1 (2020-06-05) * Avoid excessive amount of allocations in the MemWriter ## v0.12.0 (2020-01-31) * Add interface for video frame planes ## v0.11.2 (2019-08-08) * Add missing `impl Send` and `impl Sync` for the bitstream filter ## v0.11.1 (2019-08-06) * Add bitstream filters ## v0.11.0 (2019-07-26) * Add demuxer * Refactor of the format::io module * Improve error handling ## v0.10.2 (2019-02-20) * Add methods for getting decoder/encoder name from codec parameters ## v0.10.1 (2019-01-31) * Add a method for creating black video frames * Fix output packet DTS in the audio transcoder ## v0.10.0 (2019-01-30) * Update the API for dealing with channel layouts, sample formats and pixel formats ## v0.9.0 (2019-01-30) * Unification of the decoder interface * Remove the Muxer::get\_option method and allow setting options in MuxerBuilder * Fix timestamp handling in audio resampler and audio transcoder and add gap/overlap compensation to the resampler ## v0.8.0 (2019-01-23) * Add audio resampler * Refactoring of the codec parameters model ## v0.7.1 (2019-01-22) * Add audio resampler * Allow to take codec parameters from encoders and make frame size available for audio encoders ## v0.7.0 (2019-01-21) * Public API refinements * New audio encoder and decoder ## v0.6.1 (2019-01-18) * Create decoder from codec parameters * Determine media type from codec parameters ## v0.6.0 (2018-12-19) * Make codec parameters independent of media type ## v0.5.1 (2018-12-12) * Implement Clone for CodecParameters ## v0.5.0 (2018-12-07) * Redesign of the packet interface for better ergonomics ## v0.4.1 (2018-12-05) * Fix memory leak in muxer ## v0.4.0 (2018-12-05) * Add support for muxer runtime options ## v0.3.0 (2018-12-04) * Add codec parameters, decoder builder and extradata ## v0.2.1 (2018-12-03) * Allow to take the muxer output ## v0.2.0 (2018-12-03) * Add muxer