Tools developed within the AOMedia Storage and Transport Formats (STF) Working Group for parsing, analyzing, manipulating, and packaging AV2 bitstreams.
- av2-isobmff - the AV2-in-ISOBMFF specification these tools implement.
- av2-interop-private - AV2 interop stream recipes and catalog that consume these tools.
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_CONTAINER_TOOLS=ON -DBUILD_EXAMPLES=ON
make -jThe project builds libav2_obu.a, a reusable C++ library for parsing AV2 OBU bitstreams.
The project builds several applications that use the libav2_obu.a:
- av2_obu_tool - Parse, dump, and analyze AV2 bitstreams (JSON export, statistics)
- av2_obu_switcher - Bitstream switching experiments
- av2_mux - Mux AV2 elementary stream into MP4/ISOBMFF (requires
-DBUILD_CONTAINER_TOOLS=ON) - av2_demux - Demux MP4/ISOBMFF back to an AV2 elementary stream (requires
-DBUILD_CONTAINER_TOOLS=ON) - av2_obu_channel_sim - Simulate packet loss and network conditions
- CMake 3.16+
- C++17 compiler
- Dependencies (auto-fetched):
- CLI11
- spdlog
- nlohmann/json
- libisomedia
- Google Test
-DBUILD_WASM=ON (with emcmake) builds av2-parser.{js,wasm} from src/wasm, used by the browser OBU analyzer in
web/. The module runs in browsers, Web Workers and Node.js. Exports: av2_parse_to_json(data, size) (returns a
NUL-terminated JSON string, release it with av2_free_json) and av2_get_last_error().
The JSON has a top-level schema_version (currently 1). It is incremented when a field is renamed, removed or changes
meaning; adding fields does not change it. Consumers should check it.
Smoke test in Node (no stream needed, or pass any .obu):
node tests/wasm/wasm_smoke.mjs build-wasm/src/wasm/av2-parser.js [stream.obu]See LICENSE file.