How to Extract Raw YUV with libaom Decoder?

Extracting raw YUV video from an AV1 encoded file using the reference aomdec tool (built from the libaom source) requires specifying the input file, defining the output format, and designating the destination path. By default, aomdec processes the AV1 bitstream and can output raw YUV data either wrapped in a Y4M (YUV4MPEG2) container or as a completely uncompressed, headerless raw YUV sequence. This article provides the specific command-line syntax and arguments needed to successfully execute this extraction.

Core Command Syntax

To extract video using the libaom decoder, you primarily interact with the aomdec executable. The basic command structure to output raw YUV data requires a few essential flags.

aomdec input.ivf --raw -o output.yuv

Essential Arguments Explained

Specifying Codec Options

While aomdec automatically detects the profile, bit depth, and chroma subsampling (such as YUV420p, YUV422p, or YUV444p) from the AV1 sequence header, you can pass additional arguments to control the decoding behavior: