• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023, Alliance for Open Media. All rights reserved
2#
3# This source code is subject to the terms of the BSD 3-Clause Clear License
4# and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
5# License was not distributed with this source code in the LICENSE file, you
6# can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the
7# Alliance for Open Media Patent License 1.0 was not distributed with this
8# source code in the PATENTS file, you can obtain it at
9# www.aomedia.org/license/patent.
10
11# proto-file: iamf/cli/proto/user_metadata.proto
12# proto-message: UserMetadata
13
14test_vector_metadata {
15  human_readable_description:
16    "A simple example of a stereo + stereo base profile IAMF stream has 2 Mix "
17    "Presentation OBUs."
18  file_name_prefix: "test_000409"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2023-06-20 00:00:00"
23  test_repository_tags: [
24    "github/aomediacodec/libiamf/main",
25    "github/aomediacodec/libiamf/v1.0.0-errata"
26  ]
27  primary_tested_spec_sections: [
28    "7/IAMF Processing",
29    "7.3/Mix Presentation",
30    "7.3.1/Selecting a Mix Presentation"
31  ]
32  base_test: "test_000400"
33}
34
35encoder_control_metadata {
36  add_build_information_tag: false
37}
38
39ia_sequence_header_metadata {
40  primary_profile: PROFILE_VERSION_BASE
41  additional_profile: PROFILE_VERSION_BASE
42}
43
44codec_config_metadata {
45  codec_config_id: 200
46  codec_config {
47    codec_id: CODEC_ID_LPCM
48    num_samples_per_frame: 1024
49    audio_roll_distance: 0
50    decoder_config_lpcm {
51      sample_format_flags: LPCM_LITTLE_ENDIAN
52      sample_size: 16
53      sample_rate: 48000
54    }
55  }
56}
57
58audio_element_metadata: [
59  {
60    audio_element_id: 300
61    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
62    reserved: 0
63    codec_config_id: 200
64    num_substreams: 1
65    audio_substream_ids: [0]
66    num_parameters: 0
67    scalable_channel_layout_config {
68      num_layers: 1
69      reserved: 0
70      channel_audio_layer_configs: [
71        {
72          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
73          output_gain_is_present_flag: 0
74          recon_gain_is_present_flag: 0
75          reserved_a: 0
76          substream_count: 1
77          coupled_substream_count: 1
78        }
79      ]
80    }
81  },
82  {
83    audio_element_id: 301
84    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
85    reserved: 0
86    codec_config_id: 200
87    num_substreams: 1
88    audio_substream_ids: [1]
89    num_parameters: 0
90    scalable_channel_layout_config {
91      num_layers: 1
92      reserved: 0
93      channel_audio_layer_configs: [
94        {
95          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
96          output_gain_is_present_flag: 0
97          recon_gain_is_present_flag: 0
98          reserved_a: 0
99          substream_count: 1
100          coupled_substream_count: 1
101        }
102      ]
103    }
104  }
105]
106
107mix_presentation_metadata: [
108  {
109    mix_presentation_id: 42
110    count_label: 1
111    annotations_language: ["en-us"]
112    localized_presentation_annotations: ["test_mix_pres_0"]
113    num_sub_mixes: 1
114    sub_mixes {
115      num_audio_elements: 2
116      audio_elements: [
117        {
118          audio_element_id: 300
119          localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
120          rendering_config {
121            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
122          }
123          element_mix_gain {
124            param_definition {
125              parameter_id: 999  # Non-existent; default will be used
126              parameter_rate: 48000
127              param_definition_mode: 1
128              reserved: 0
129            }
130            default_mix_gain: -768
131          }
132        },
133        {
134          audio_element_id: 301
135          localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
136          rendering_config {
137            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
138          }
139          element_mix_gain {
140            param_definition {
141              parameter_id: 998  # Non-existent; default will be used
142              parameter_rate: 48000
143              param_definition_mode: 1
144              reserved: 0
145            }
146            default_mix_gain: -768
147          }
148        }
149      ]
150      output_mix_gain {
151        param_definition {
152          parameter_id: 997  # Non-existent; default will be used
153          parameter_rate: 48000
154          param_definition_mode: 1
155        }
156        default_mix_gain: 0
157      }
158      num_layouts: 1
159      layouts {
160        loudness_layout {
161          layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
162          ss_layout {
163            sound_system: SOUND_SYSTEM_A_0_2_0
164            reserved: 0
165          }
166        }
167        loudness {
168          info_type_bit_masks: []
169          integrated_loudness: -5451
170          digital_peak: -1784
171        }
172      }
173    }
174  },
175  {
176    mix_presentation_id: 43
177    count_label: 1
178    annotations_language: ["en-us"]
179    localized_presentation_annotations: ["test_mix_pres_1"]
180    num_sub_mixes: 1
181    sub_mixes {
182      num_audio_elements: 2
183      audio_elements: [
184        {
185          audio_element_id: 300
186          localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
187          rendering_config {
188            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
189          }
190          element_mix_gain {
191            param_definition {
192              parameter_id: 996  # Non-existent; default will be used
193              parameter_rate: 48000
194              param_definition_mode: 1
195              reserved: 0
196            }
197            default_mix_gain: -1536
198          }
199        },
200        {
201          audio_element_id: 301
202          localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
203          rendering_config {
204            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
205          }
206          element_mix_gain {
207            param_definition {
208              parameter_id: 995  # Non-existent; default will be used
209              parameter_rate: 48000
210              param_definition_mode: 1
211              reserved: 0
212            }
213            default_mix_gain: -384
214          }
215        }
216      ]
217      output_mix_gain {
218        param_definition {
219          parameter_id: 994  # Non-existent; default will be used
220          parameter_rate: 48000
221          param_definition_mode: 1
222        }
223        default_mix_gain: 0
224      }
225      num_layouts: 1
226      layouts {
227        loudness_layout {
228          layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
229          ss_layout {
230            sound_system: SOUND_SYSTEM_A_0_2_0
231            reserved: 0
232          }
233        }
234        loudness {
235          info_type_bit_masks: []
236          integrated_loudness: -5625
237          digital_peak: -2182
238        }
239      }
240    }
241  }
242]
243
244audio_frame_metadata: [
245  {
246    wav_filename: "Mechanism_5s.wav"
247    samples_to_trim_at_end: 640
248    samples_to_trim_at_start: 0
249    audio_element_id: 300
250    channel_metadatas: [
251      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
252      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
253    ]
254  },
255  {
256    wav_filename: "dialog_clip_stereo.wav"
257    samples_to_trim_at_end: 640
258    samples_to_trim_at_start: 0
259    audio_element_id: 301
260    channel_metadatas: [
261      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
262      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
263    ]
264  }
265]
266
267temporal_delimiter_metadata {
268  enable_temporal_delimiters: false
269}
270