• 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    "An example of a 5.1.2 with three mixes that represent different dialogue "
17    "languages. Note that a real sample would typically have the audio input "
18    "recorded in different languages. This sample simulates different "
19    "languages by applying a different mix gain to make them audibly different."
20  file_name_prefix: "test_000705"
21  is_valid: true
22  is_valid_to_decode: true
23  validate_user_loudness: true
24  mp4_fixed_timestamp: "2024-08-14 00:00:00"
25  test_repository_tags: ["github/aomediacodec/libiamf/main"]
26  primary_tested_spec_sections: [
27    "3.6.2/loudspeaker_layout == 5.1.2",
28    "3.6.2/loudspeaker_layout == Stereo",
29    "3.7.3/sound_system == Stereo",
30    "3.7.4/default_mix_gain",
31    "4.2/Base-Enhanced Profile",
32    "8.5.1/Loudness Information"
33  ]
34  base_test: "test_000631"
35}
36
37encoder_control_metadata {
38  add_build_information_tag: false
39}
40
41ia_sequence_header_metadata {
42  primary_profile: PROFILE_VERSION_BASE_ENHANCED
43  additional_profile: PROFILE_VERSION_BASE_ENHANCED
44}
45
46codec_config_metadata {
47  codec_config_id: 200
48  codec_config {
49    codec_id: CODEC_ID_LPCM
50    num_samples_per_frame: 1024
51    audio_roll_distance: 0
52    decoder_config_lpcm {
53      sample_format_flags: LPCM_LITTLE_ENDIAN
54      sample_size: 16
55      sample_rate: 48000
56    }
57  }
58}
59
60audio_element_metadata: [
61  {
62    audio_element_id: 300
63    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
64    reserved: 0
65    codec_config_id: 200
66    num_substreams: 5
67    audio_substream_ids: [0, 1, 2, 3, 4]
68    num_parameters: 0
69    scalable_channel_layout_config {
70      num_layers: 1
71      reserved: 0
72      channel_audio_layer_configs: [
73        {
74          loudspeaker_layout: LOUDSPEAKER_LAYOUT_5_1_2_CH
75          output_gain_is_present_flag: 0
76          recon_gain_is_present_flag: 0
77          reserved_a: 0
78          substream_count: 5
79          coupled_substream_count: 3
80        }
81      ]
82    }
83  },
84  {
85    audio_element_id: 301
86    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
87    reserved: 0
88    codec_config_id: 200
89    num_substreams: 1
90    audio_substream_ids: [5]
91    num_parameters: 0
92    scalable_channel_layout_config {
93      num_layers: 1
94      reserved: 0
95      channel_audio_layer_configs: [
96        {
97          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
98          output_gain_is_present_flag: 0
99          recon_gain_is_present_flag: 0
100          reserved_a: 0
101          substream_count: 1
102          coupled_substream_count: 1
103        }
104      ]
105    }
106  },
107  {
108    audio_element_id: 302
109    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
110    reserved: 0
111    codec_config_id: 200
112    num_substreams: 1
113    audio_substream_ids: [6]
114    num_parameters: 0
115    scalable_channel_layout_config {
116      num_layers: 1
117      reserved: 0
118      channel_audio_layer_configs: [
119        {
120          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
121          output_gain_is_present_flag: 0
122          recon_gain_is_present_flag: 0
123          reserved_a: 0
124          substream_count: 1
125          coupled_substream_count: 1
126        }
127      ]
128    }
129  },
130  {
131    audio_element_id: 303
132    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
133    reserved: 0
134    codec_config_id: 200
135    num_substreams: 1
136    audio_substream_ids: [7]
137    num_parameters: 0
138    scalable_channel_layout_config {
139      num_layers: 1
140      reserved: 0
141      channel_audio_layer_configs: [
142        {
143          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
144          output_gain_is_present_flag: 0
145          recon_gain_is_present_flag: 0
146          reserved_a: 0
147          substream_count: 1
148          coupled_substream_count: 1
149        }
150      ]
151    }
152  }
153]
154
155mix_presentation_metadata [
156  {
157    mix_presentation_id: 42
158    count_label: 1
159    annotations_language: ["en-us"]
160    localized_presentation_annotations: ["Simulated English Dialog (-0dB)."]
161    num_sub_mixes: 1
162    sub_mixes {
163      num_audio_elements: 2
164      audio_elements: [
165        {
166          audio_element_id: 300
167          localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
168          rendering_config {
169            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
170          }
171          element_mix_gain {
172            param_definition {
173              parameter_id: 999  # Non-existent; default will be used
174              parameter_rate: 48000
175              param_definition_mode: 1
176              reserved: 0
177            }
178            default_mix_gain: -768
179          }
180        },
181        {
182          audio_element_id: 301
183          localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
184          rendering_config {
185            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
186          }
187          element_mix_gain {
188            param_definition {
189              parameter_id: 998  # Non-existent; default will be used
190              parameter_rate: 48000
191              param_definition_mode: 1
192              reserved: 0
193            }
194            default_mix_gain: 0
195          }
196        }
197      ]
198      output_mix_gain {
199        param_definition {
200          parameter_id: 997  # Non-existent; default will be used
201          parameter_rate: 48000
202          param_definition_mode: 1
203          reserved: 0
204        }
205        default_mix_gain: 0
206      }
207      num_layouts: 1
208      layouts {
209        loudness_layout {
210          layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
211          ss_layout {
212            sound_system: SOUND_SYSTEM_A_0_2_0
213            reserved: 0
214          }
215        }
216        loudness {
217          info_type_bit_masks: []
218          integrated_loudness: -4721
219          digital_peak: -1087
220        }
221      }
222    }
223    include_mix_presentation_tags: true
224    mix_presentation_tags: {
225      num_tags: 1
226      tags: {
227        tag_name: "content_language"
228        tag_value: "eng"
229      }
230    }
231  },
232  {
233    mix_presentation_id: 43
234    count_label: 1
235    annotations_language: ["en-us"]
236    localized_presentation_annotations: ["Simulated Korean Dialog (-5dB)."]
237    num_sub_mixes: 1
238    sub_mixes {
239      num_audio_elements: 2
240      audio_elements: [
241        {
242          audio_element_id: 300
243          localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
244          rendering_config {
245            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
246          }
247          element_mix_gain {
248            param_definition {
249              parameter_id: 999  # Non-existent; default will be used
250              parameter_rate: 48000
251              param_definition_mode: 1
252              reserved: 0
253            }
254            default_mix_gain: -768
255          }
256        },
257        {
258          audio_element_id: 302
259          localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
260          rendering_config {
261            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
262          }
263          element_mix_gain {
264            param_definition {
265              parameter_id: 996  # Non-existent; default will be used
266              parameter_rate: 48000
267              param_definition_mode: 1
268              reserved: 0
269            }
270            default_mix_gain: -1280
271          }
272        }
273      ]
274      output_mix_gain {
275        param_definition {
276          parameter_id: 997  # Non-existent; default will be used
277          parameter_rate: 48000
278          param_definition_mode: 1
279          reserved: 0
280        }
281        default_mix_gain: 0
282      }
283      num_layouts: 1
284      layouts {
285        loudness_layout {
286          layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
287          ss_layout {
288            sound_system: SOUND_SYSTEM_A_0_2_0
289            reserved: 0
290          }
291        }
292        loudness {
293          info_type_bit_masks: []
294          integrated_loudness: -5074
295          digital_peak: -1421
296        }
297      }
298    }
299    include_mix_presentation_tags: true
300    mix_presentation_tags: {
301      num_tags: 1
302      tags: {
303        tag_name: "content_language"
304        tag_value: "kor"
305      }
306    }
307  },
308  {
309    mix_presentation_id: 44
310    count_label: 1
311    annotations_language: ["en-us"]
312    localized_presentation_annotations: ["Simulated Esperanto Dialog (-10dB)."]
313    num_sub_mixes: 1
314    sub_mixes {
315      num_audio_elements: 2
316      audio_elements: [
317        {
318          audio_element_id: 300
319          localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
320          rendering_config {
321            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
322          }
323          element_mix_gain {
324            param_definition {
325              parameter_id: 999  # Non-existent; default will be used
326              parameter_rate: 48000
327              param_definition_mode: 1
328              reserved: 0
329            }
330            default_mix_gain: -768
331          }
332        },
333        {
334          audio_element_id: 303
335          localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
336          rendering_config {
337            headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
338          }
339          element_mix_gain {
340            param_definition {
341              parameter_id: 995  # Non-existent; default will be used
342              parameter_rate: 48000
343              param_definition_mode: 1
344              reserved: 0
345            }
346            default_mix_gain: -2560
347          }
348        }
349      ]
350      output_mix_gain {
351        param_definition {
352          parameter_id: 997  # Non-existent; default will be used
353          parameter_rate: 48000
354          param_definition_mode: 1
355          reserved: 0
356        }
357        default_mix_gain: 0
358      }
359      num_layouts: 1
360      layouts {
361        loudness_layout {
362          layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
363          ss_layout {
364            sound_system: SOUND_SYSTEM_A_0_2_0
365            reserved: 0
366          }
367        }
368        loudness {
369          info_type_bit_masks: []
370          integrated_loudness: -5212
371          digital_peak: -1418
372        }
373      }
374    }
375    include_mix_presentation_tags: true
376    mix_presentation_tags: {
377      num_tags: 1
378      tags: {
379        tag_name: "content_language"
380        tag_value: "epo"
381      }
382    }
383  }
384]
385
386audio_frame_metadata: [
387  {
388    wav_filename: "Mechanism_5s.wav"
389    samples_to_trim_at_end: 640
390    samples_to_trim_at_start: 0
391    audio_element_id: 300
392    channel_metadatas: [
393      { channel_id: 0 channel_label: CHANNEL_LABEL_L_5 },
394      { channel_id: 1 channel_label: CHANNEL_LABEL_R_5 },
395      { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
396      { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
397      { channel_id: 4 channel_label: CHANNEL_LABEL_LS_5 },
398      { channel_id: 5 channel_label: CHANNEL_LABEL_RS_5 },
399      { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_2 },
400      { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_2 }
401    ]
402
403  },
404  {
405    wav_filename: "dialog_clip_stereo.wav"
406    samples_to_trim_at_end: 640
407    samples_to_trim_at_start: 0
408    audio_element_id: 301
409    channel_metadatas: [
410      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
411      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
412    ]
413  },
414  {
415    wav_filename: "dialog_clip_stereo.wav"
416    samples_to_trim_at_end: 640
417    samples_to_trim_at_start: 0
418    audio_element_id: 302
419    channel_metadatas: [
420      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
421      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
422    ]
423  },
424  {
425    wav_filename: "dialog_clip_stereo.wav"
426    samples_to_trim_at_end: 640
427    samples_to_trim_at_start: 0
428    audio_element_id: 303
429    channel_metadatas: [
430      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
431      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
432    ]
433  }
434]
435
436temporal_delimiter_metadata {
437  enable_temporal_delimiters: false
438}
439