ChapterForge
Loading...
Searching...
No Matches
stbl_metadata_builder.hpp
Go to the documentation of this file.
1//
2// stbl_metadata_builder.hpp
3// ChapterForge
4//
5// Created by Till Toenshoff on 12/9/25.
6// Copyright © 2025 Till Toenshoff. All rights reserved.
7//
8
9#pragma once
10
11#include <memory>
12#include <string>
13#include <vector>
14
15#include "mp4_atoms.hpp"
16
17// Represents a timed metadata sample aligned to chapter timing.
19 std::string payload; // UTF-8 content
20 uint32_t start_ms = 0; // absolute start time in ms
21};
22
23std::unique_ptr<Atom> build_metadata_stbl(const std::vector<ChapterMetadataSample> &samples,
24 uint32_t track_timescale);
std::string payload
Definition stbl_metadata_builder.hpp:19
std::unique_ptr< Atom > build_metadata_stbl(const std::vector< ChapterMetadataSample > &samples, uint32_t track_timescale)
uint32_t start_ms
Definition stbl_metadata_builder.hpp:20
Definition stbl_metadata_builder.hpp:18