• 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 simple example of a 9.1.6 + Top-4ch Base-Enhanced profile IAMF "
17    "stream and a stereo output layout."
18  file_name_prefix: "test_000601"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2024-08-09 00:00:00"
23  test_repository_tags: ["github/aomediacodec/libiamf/main"]
24  primary_tested_spec_sections: [
25    "3.6.2/loudspeaker_layout == Expanded",
26    "3.6.2/expanded_loudspeaker_layout == 9.1.6",
27    "3.6.2/expanded_loudspeaker_layout == Top-4ch",
28    "3.7.3/sound_system == Stereo",
29    "3.7.4/default_mix_gain",
30    "4.2/Base-Enhanced Profile",
31    "8.5.1/Loudness Information"
32  ]
33  base_test: "test_000600"
34}
35
36encoder_control_metadata {
37  add_build_information_tag: false
38}
39
40ia_sequence_header_metadata {
41  primary_profile: PROFILE_VERSION_BASE_ENHANCED
42  additional_profile: PROFILE_VERSION_BASE_ENHANCED
43}
44
45codec_config_metadata {
46  codec_config_id: 200
47  codec_config {
48    codec_id: CODEC_ID_LPCM
49    num_samples_per_frame: 1024
50    audio_roll_distance: 0
51    decoder_config_lpcm {
52      sample_format_flags: LPCM_LITTLE_ENDIAN
53      sample_size: 16
54      sample_rate: 48000
55    }
56  }
57}
58
59audio_element_metadata: [
60  {
61    audio_element_id: 300
62    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
63    reserved: 0
64    codec_config_id: 200
65    num_substreams: 9
66    audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8]
67    num_parameters: 0
68    scalable_channel_layout_config {
69      num_layers: 1
70      reserved: 0
71      channel_audio_layer_configs: [
72        {
73          loudspeaker_layout: LOUDSPEAKER_LAYOUT_EXPANDED
74          output_gain_is_present_flag: 0
75          recon_gain_is_present_flag: 0
76          reserved_a: 0
77          substream_count: 9
78          coupled_substream_count: 7
79          expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_9_1_6_CH
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: 2
90    audio_substream_ids: [9, 10]
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_EXPANDED
98          output_gain_is_present_flag: 0
99          recon_gain_is_present_flag: 0
100          reserved_a: 0
101          substream_count: 2
102          coupled_substream_count: 2
103          expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_TOP_4_CH
104        }
105      ]
106    }
107  }
108]
109
110mix_presentation_metadata {
111  mix_presentation_id: 42
112  count_label: 1
113  annotations_language: ["en-us"]
114  localized_presentation_annotations: ["test_mix_pres"]
115  num_sub_mixes: 1
116  sub_mixes {
117    num_audio_elements: 2
118    audio_elements: [
119      {
120        audio_element_id: 300
121        localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
122        rendering_config {
123          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
124        }
125        element_mix_gain {
126          param_definition {
127            parameter_id: 999  # Non-existent; default will be used
128            parameter_rate: 48000
129            param_definition_mode: 1
130            reserved: 0
131          }
132          default_mix_gain: -768
133        }
134      },
135      {
136        audio_element_id: 301
137        localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
138        rendering_config {
139          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
140        }
141        element_mix_gain {
142          param_definition {
143            parameter_id: 998  # Non-existent; default will be used
144            parameter_rate: 48000
145            param_definition_mode: 1
146            reserved: 0
147          }
148          default_mix_gain: -768
149        }
150      }
151    ]
152    output_mix_gain {
153      param_definition {
154        parameter_id: 997  # Non-existent; default will be used
155        parameter_rate: 48000
156        param_definition_mode: 1
157        reserved: 0
158      }
159      default_mix_gain: 0
160    }
161    num_layouts: 1
162    layouts {
163      loudness_layout {
164        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
165        ss_layout {
166          sound_system: SOUND_SYSTEM_A_0_2_0
167          reserved: 0
168        }
169      }
170      loudness {
171        info_type_bit_masks: []
172        integrated_loudness: -2941
173        digital_peak: -44
174      }
175    }
176  }
177}
178
179audio_frame_metadata: [
180  {
181    wav_filename: "Transport_9.1.6_5s.wav"
182    samples_to_trim_at_end: 640
183    samples_to_trim_at_start: 0
184    audio_element_id: 300
185    channel_metadatas: [
186      { channel_id: 0 channel_label: CHANNEL_LABEL_FL },
187      { channel_id: 1 channel_label: CHANNEL_LABEL_FR },
188      { channel_id: 2 channel_label: CHANNEL_LABEL_FC },
189      { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
190      { channel_id: 4 channel_label: CHANNEL_LABEL_BL },
191      { channel_id: 5 channel_label: CHANNEL_LABEL_BR },
192      { channel_id: 6 channel_label: CHANNEL_LABEL_FLC },
193      { channel_id: 7 channel_label: CHANNEL_LABEL_FRC },
194      { channel_id: 8 channel_label: CHANNEL_LABEL_SI_L },
195      { channel_id: 9 channel_label: CHANNEL_LABEL_SI_R },
196      { channel_id: 10 channel_label: CHANNEL_LABEL_TP_FL },
197      { channel_id: 11 channel_label: CHANNEL_LABEL_TP_FR },
198      { channel_id: 12 channel_label: CHANNEL_LABEL_TP_BL },
199      { channel_id: 13 channel_label: CHANNEL_LABEL_TP_BR },
200      { channel_id: 14 channel_label: CHANNEL_LABEL_TP_SI_L },
201      { channel_id: 15 channel_label: CHANNEL_LABEL_TP_SI_R }
202    ]
203  },
204  {
205    wav_filename: "Mechanism_5s.wav"
206    samples_to_trim_at_end: 640
207    samples_to_trim_at_start: 0
208    audio_element_id: 301
209    channel_metadatas: [
210      { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
211      { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
212      { channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
213      { channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 }
214    ]
215  }
216]
217
218temporal_delimiter_metadata {
219  enable_temporal_delimiters: false
220}
221