• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024, 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 7.1.4 + TOA IAMF stream encoded using Opus and with two Mix "
17    "Presentations. The first Mix Presentation uses both Audio Elements. The "
18    "second Mix Presentation uses only the TOA Audio Element. The primary "
19    "profile is set to Base and the additional profile is set to "
20    "Base-Enhanced."
21  file_name_prefix: "test_000123"
22  is_valid: true
23  is_valid_to_decode: true
24  validate_user_loudness: true
25  mp4_fixed_timestamp: "2024-07-17 00:00:00"
26  test_repository_tags: [
27    "github/aomediacodec/libiamf/main",
28    "github/aomediacodec/libiamf/v1.0.0-errata"
29  ]
30  primary_tested_spec_sections: [
31    "3.6/num_substreams",
32    "3.6.2/subtream_count",
33    "3.6.2/coupled_substream_count",
34    "3.6.4/subtream_count",
35    "3.6.4/coupled_substream_count",
36    "4.2/Simple Profile",
37    "4.2/Base-Enhannced Profile",
38    "4.3/Cumulative channel limit"
39  ]
40  base_test: "test_000118"
41  output_wav_file_bit_depth_override: 16
42}
43
44encoder_control_metadata {
45  add_build_information_tag: false
46}
47
48ia_sequence_header_metadata {
49  primary_profile: PROFILE_VERSION_BASE
50  additional_profile: PROFILE_VERSION_BASE_ENHANCED
51}
52
53codec_config_metadata {
54  codec_config_id: 200
55  codec_config {
56    codec_id: CODEC_ID_OPUS
57    num_samples_per_frame: 960
58    audio_roll_distance: -4
59    decoder_config_opus {
60      version: 1
61      pre_skip: 312
62      input_sample_rate: 48000
63      opus_encoder_metadata {
64        target_bitrate_per_channel: 48000
65        application: APPLICATION_AUDIO
66        use_float_api: false
67      }
68    }
69  }
70}
71
72audio_element_metadata: [
73  {
74    audio_element_id: 300
75    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
76    reserved: 0
77    codec_config_id: 200
78    num_substreams: 7
79    audio_substream_ids: [0, 1, 2, 3, 4, 5, 6]
80    num_parameters: 0
81    scalable_channel_layout_config {
82      num_layers: 1
83      reserved: 0
84      channel_audio_layer_configs: [
85        {
86          loudspeaker_layout: LOUDSPEAKER_LAYOUT_7_1_4_CH
87          output_gain_is_present_flag: 0
88          recon_gain_is_present_flag: 0
89          reserved_a: 0
90          substream_count: 7
91          coupled_substream_count: 5
92        }
93      ]
94    }
95  },
96  {
97    audio_element_id: 301
98    audio_element_type: AUDIO_ELEMENT_SCENE_BASED
99    reserved: 0
100    codec_config_id: 200
101    num_substreams: 16
102    audio_substream_ids: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
103    num_parameters: 0
104    ambisonics_config {
105      ambisonics_mode: AMBISONICS_MODE_MONO
106      ambisonics_mono_config {
107        output_channel_count: 16
108        substream_count: 16
109        channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
110      }
111    }
112  }
113]
114
115mix_presentation_metadata {
116  mix_presentation_id: 42
117  count_label: 1
118  annotations_language: ["en-us"]
119  localized_presentation_annotations: ["test_mix_pres_0_with_twenty_eight_channels"]
120  num_sub_mixes: 1
121  sub_mixes {
122    num_audio_elements: 2
123    audio_elements: [
124      {
125        audio_element_id: 300
126        localized_element_annotations: ["test_mix_pres_0_sub_mix_0_audio_element_0"]
127        rendering_config {
128          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
129        }
130        element_mix_gain {
131          param_definition {
132            parameter_id: 999  # Non-existent; default will be used
133            parameter_rate: 48000
134            param_definition_mode: 1
135            reserved: 0
136          }
137          default_mix_gain: -768
138        }
139      },
140      {
141        audio_element_id: 301
142        localized_element_annotations: ["test_mix_pres_0_sub_mix_0_audio_element_1"]
143        rendering_config {
144          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
145        }
146        element_mix_gain {
147          param_definition {
148            parameter_id: 998  # Non-existent; default will be used
149            parameter_rate: 48000
150            param_definition_mode: 1
151            reserved: 0
152          }
153          default_mix_gain: -768
154        }
155      }
156    ]
157    output_mix_gain {
158      param_definition {
159        parameter_id: 997  # Non-existent; default will be used
160        parameter_rate: 48000
161        param_definition_mode: 1
162        reserved: 0
163      }
164      default_mix_gain: 0
165    }
166    num_layouts: 2
167    layouts {
168      loudness_layout {
169        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
170        ss_layout {
171          sound_system: SOUND_SYSTEM_A_0_2_0
172          reserved: 0
173        }
174      }
175      loudness {
176        info_type_bit_masks: []
177        integrated_loudness: -3519
178        digital_peak: 0
179      }
180    }
181    layouts {
182      loudness_layout {
183        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
184        ss_layout {
185          sound_system: SOUND_SYSTEM_J_4_7_0
186          reserved: 0
187        }
188      }
189      loudness {
190        info_type_bit_masks: []
191        integrated_loudness: -3904
192        digital_peak: -1700
193      }
194    }
195  }
196}
197
198mix_presentation_metadata {
199  mix_presentation_id: 43
200  count_label: 1
201  annotations_language: ["en-us"]
202  localized_presentation_annotations: ["test_mix_pres_with_sixteen_channels"]
203  num_sub_mixes: 1
204  sub_mixes {
205    num_audio_elements: 1
206    audio_elements: [
207      {
208        audio_element_id: 301
209        localized_element_annotations: ["test_mix_pres_1_sub_mix_0_audio_element_0"]
210        rendering_config {
211          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
212        }
213        element_mix_gain {
214          param_definition {
215            parameter_id: 998  # Non-existent; default will be used
216            parameter_rate: 48000
217            param_definition_mode: 1
218            reserved: 0
219          }
220          default_mix_gain: -768
221        }
222      }
223    ]
224    output_mix_gain {
225      param_definition {
226        parameter_id: 997  # Non-existent; default will be used
227        parameter_rate: 48000
228        param_definition_mode: 1
229        reserved: 0
230      }
231      default_mix_gain: 0
232    }
233    num_layouts: 2
234    layouts {
235      loudness_layout {
236        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
237        ss_layout {
238          sound_system: SOUND_SYSTEM_A_0_2_0
239          reserved: 0
240        }
241      }
242      loudness {
243        info_type_bit_masks: []
244        integrated_loudness: -3602
245        digital_peak: -712
246      }
247    }
248    layouts {
249      loudness_layout {
250        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
251        ss_layout {
252          sound_system: SOUND_SYSTEM_J_4_7_0
253          reserved: 0
254        }
255      }
256      loudness {
257        info_type_bit_masks: []
258        integrated_loudness: -4428
259        digital_peak: -1719
260      }
261    }
262  }
263}
264
265audio_frame_metadata: [
266  {
267    wav_filename: "Mechanism_5s.wav"
268    samples_to_trim_at_end: 648
269    samples_to_trim_at_start: 312
270    audio_element_id: 300
271    channel_metadatas: [
272      { channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
273      { channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
274      { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
275      { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
276      { channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
277      { channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
278      { channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
279      { channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 },
280      { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
281      { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
282      { channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
283      { channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 }
284    ]
285  },
286  {
287    wav_filename: "Transport_TOA_5s.wav"
288    samples_to_trim_at_end: 648
289    samples_to_trim_at_start: 312
290    audio_element_id: 301
291    channel_metadatas: [
292      { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 },
293      { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 },
294      { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 },
295      { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 },
296      { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 },
297      { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 },
298      { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 },
299      { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 },
300      { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 },
301      { channel_id: 9 channel_label: CHANNEL_LABEL_A_9 },
302      { channel_id: 10 channel_label: CHANNEL_LABEL_A_10 },
303      { channel_id: 11 channel_label: CHANNEL_LABEL_A_11 },
304      { channel_id: 12 channel_label: CHANNEL_LABEL_A_12 },
305      { channel_id: 13 channel_label: CHANNEL_LABEL_A_13 },
306      { channel_id: 14 channel_label: CHANNEL_LABEL_A_14 },
307      { channel_id: 15 channel_label: CHANNEL_LABEL_A_15 }
308    ]
309  }
310]
311
312temporal_delimiter_metadata {
313  enable_temporal_delimiters: false
314}
315