FFmpeg 101 (2024)
7 hours ago
- #multimedia
- #FFmpeg
- #decoding
- FFmpeg is a suite of tools and libraries for handling multimedia files.
- Key tools include ffmpeg (format conversion), ffplay (media player), and ffprobe (stream analyzer).
- Libraries like libavformat, libavcodec, and libavfilter provide core functionalities for multimedia processing.
- Basic usage involves demuxing and decoding streams using structures like AVFormatContext, AVStream, and AVCodec.
- Example code demonstrates opening a file, analyzing streams, and decoding video frames.
- The process includes finding the right codec, configuring the decoder, and processing packets and frames.
- Building the example requires meson and ninja, with FFmpeg automatically downloaded if not installed.