---
title: Combining multiple streams of metadata into the same track
framework: quicktime-file-format
role: article
role_heading: Article
path: quicktime-file-format/combining_multiple_streams_of_metadata_into_the_same_track
---

# Combining multiple streams of metadata into the same track

Introduce new metadata samples with the union of all metadata values from combined tracks.

## Overview

Overview Because two “streams” or tracks of metadata values might occur where the time ranges for one stream does not coincide with those of the other stream, a convention is recommended if both streams of metadata values are combined into a single new metadata track (typically because of some production process). At any point in the timeline where a metadata value comes into scope or goes out of scope, new metadata samples should be introduced with the union of all metadata values present for the time range, replacing the existing overlapped samples for that portion of the media time range. For example, this figure shows the results of combining the metadata from two metadata tracks:

note: The combined timed metadata media samples from time t1 to t2 contain both the A and B metadata values. This is done so that for any time t, it is possible to determine all applicable metadata values without needing to scan through all timed metadata media tracks in backward or forward directions. In the new combined track, a single timed metadata sample description containing the keys A and B may be used. Creating sample descriptions for each combination (A, B, {A,B}) is possible but discouraged as this makes the determination of whether a key is in the tracks more complex.

## See Also

### Storing timed metadata media

- [Overview of timed metadata](quicktime-file-format/overview_of_timed_metadata.md)
- [Timed metadata sample description](quicktime-file-format/timed_metadata_sample_descriptions.md)
- [Timed metadata sample data format](quicktime-file-format/timed_metadata_sample_data_format.md)
- [Constant-size timed metadata sample data](quicktime-file-format/constant-size_timed_metadata_sample_data.md)
- [Movie-level relationships among tracks](quicktime-file-format/movie-level_relationships_among_tracks.md)
