avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
Deprecated List
Member av::CodecContext2::close (OptionalErrorCode ec=throws())

Since FFmpeg 4.0 the recommendation is to destroy and recreate the context instead of closing it: close() does not free the context and leaves it in a half-initialized state.

Start from FFmpeg 4.0 it is recommended to destroy and recreate codec context insted of close

Member av::dumpBinaryBuffer (uint8_t *buffer, int buffer_size, int width=16)
Use av::hex_dump()
Member av::FormatContext::addStream (const Codec &codec, OptionalErrorCode ec=throws())

The codec argument is not used by the FFmpeg API. Use addStream() without a codec and attach the configured codec context to the returned stream.

Codec is not used by the FFmpeg API. Use addStream() without codec and point configured codec context after

Member av::FrameCommon::setPts (int64_t pts, Rational ptsTimeBase)
Pass a Timestamp instead, so the time base travels with the value and cannot be lost.
Member av::Packet::setDts (int64_t dts, const Rational &tsTimeBase=Rational(0, 0))
Pass a Timestamp instead, so the time base travels with the value.
Member av::Packet::setPts (int64_t pts, const Rational &tsTimeBase=Rational(0, 0))
Pass a Timestamp instead, so the time base travels with the value.
Member av::Stream::currentDts () const

For FFmpeg 5.0 and newer this returns NO_PTS: take the DTS from the packet instead.

For FFmpeg 5.0+ return NO_PTS

Member setFFmpegLoggingLevel
Use set_logging_level().