avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
Which type do I need

A one-page map from the job to the types that do it. Each row links to the generated reference for the group and to the guide that shows the flow end to end.

I want to… Types Reference Guide
initialise the library av::init() Core utilities Getting started
open a file or a stream av::FormatContext, av::InputFormat Containers and I/O Getting started
enumerate streams av::Stream, av::FormatContext::streams() Containers and I/O Getting started
read compressed data av::Packet Containers and I/O Decoding
decode video av::VideoDecoderContext, av::VideoFrame Codecs, Frames and formats Decoding
decode audio av::AudioDecoderContext, av::AudioSamples Codecs, Frames and formats Decoding
decode subtitles av::SubtitleDecoderContext, av::SubtitleFrame Subtitles Subtitles
encode video av::VideoEncoderContext, av::findEncodingCodec() Codecs Encoding
encode audio av::AudioEncoderContext Codecs Encoding
write a container av::FormatContext, av::OutputFormat Containers and I/O Encoding
copy streams without decoding av::CodecParameters, av::Stream::setCodecParameters() Containers and I/O Remuxing
filter frames av::FilterGraph, av::BufferSrcFilterContext, av::BufferSinkFilterContext Filtering Filters
scale video av::VideoRescaler Frames and formats Filters
resample audio av::AudioResampler Frames and formats Filters
use a GPU av::hw::DeviceContext, av::hw::FramesContext Hardware acceleration Hardware decoding and encoding
handle failures av::OptionalErrorCode, av::Errors, av::Exception Core utilities Error handling
convert time av::Timestamp, av::Rational Core utilities —
store options av::Dictionary, av::DictionaryArray Core utilities —
own raw data av::BufferRef, av::BufferRefView Core utilities —

The four objects behind everything

Almost every operation moves data between four types:

If you know which of these four a function takes and returns, you know where you are in the pipeline. Decoding and Encoding cover the transitions; Remuxing skips them entirely.

Naming conventions

  • setX() / x() pairs are direct property access; they do not do I/O and do not fail.
  • create() returns a value and can fail; constructors that can fail are absent on purpose.
  • *Range, *View, *List types are non-owning views over memory owned by someone else.
  • raw() returns the underlying FFmpeg pointer when you need to call FFmpeg directly.