ChapterForge
Loading...
Searching...
No Matches
aac_extractor.hpp File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for aac_extractor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AacExtractResult
 

Functions

AacExtractResult extract_adts_frames (const std::vector< uint8_t > &data)
 Extract AAC frames from a raw ADTS buffer.
 
std::optional< AacExtractResultextract_from_mp4 (const std::string &path)
 Extract AAC frames and related tables from an MP4/M4A source.
 

Class Documentation

◆ AacExtractResult

struct AacExtractResult
Class Members
uint8_t audio_object_type = 0
uint8_t channel_config = 0
vector< vector< uint8_t > > frames
vector< uint8_t > ilst_payload
vector< uint8_t > meta_payload
uint32_t sample_rate = 0
uint8_t sampling_index = 0
vector< uint32_t > sizes
vector< uint8_t > stco_payload
vector< uint8_t > stsc_payload
vector< uint8_t > stsd_payload
vector< uint8_t > stsz_payload
vector< uint8_t > stts_payload

Function Documentation

◆ extract_adts_frames()

AacExtractResult extract_adts_frames ( const std::vector< uint8_t > &  data)

Extract AAC frames from a raw ADTS buffer.

◆ extract_from_mp4()

std::optional< AacExtractResult > extract_from_mp4 ( const std::string &  path)

Extract AAC frames and related tables from an MP4/M4A source.

Preferred when the input is already an MP4 container so we can reuse stsd/stts/stsc/stsz/stco and any meta/ilst payloads.