• 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 3.1.2 + stereo base profile IAMF "
17    "stream."
18  file_name_prefix: "test_000401"
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    "3.6.2/loudspeaker_layout == Stereo",
29    "3.6.2/loudspeaker_layout == 3.1.2",
30    "3.7.4/default_mix_gain",
31    "4.2/Base Profile",
32    "5.1.2/IA Data OBUs",
33    "8.5.1/Loudness Information"
34  ]
35  base_test: "test_000400"
36}
37
38encoder_control_metadata {
39  add_build_information_tag: false
40}
41
42ia_sequence_header_metadata {
43  primary_profile: PROFILE_VERSION_BASE
44  additional_profile: PROFILE_VERSION_BASE
45}
46
47codec_config_metadata {
48  codec_config_id: 200
49  codec_config {
50    codec_id: CODEC_ID_LPCM
51    num_samples_per_frame: 1024
52    audio_roll_distance: 0
53    decoder_config_lpcm {
54      sample_format_flags: LPCM_LITTLE_ENDIAN
55      sample_size: 16
56      sample_rate: 48000
57    }
58  }
59}
60
61audio_element_metadata: [
62  {
63    audio_element_id: 300
64    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
65    reserved: 0
66    codec_config_id: 200
67    num_substreams: 4
68    audio_substream_ids: [0, 1, 2, 3]
69    num_parameters: 0
70    scalable_channel_layout_config {
71      num_layers: 1
72      reserved: 0
73      channel_audio_layer_configs: [
74        {
75          loudspeaker_layout: LOUDSPEAKER_LAYOUT_3_1_2_CH
76          output_gain_is_present_flag: 0
77          recon_gain_is_present_flag: 0
78          reserved_a: 0
79          substream_count: 4
80          coupled_substream_count: 2
81        }
82      ]
83    }
84  },
85  {
86    audio_element_id: 301
87    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
88    reserved: 0
89    codec_config_id: 200
90    num_substreams: 1
91    audio_substream_ids: [5]
92    num_parameters: 0
93    scalable_channel_layout_config {
94      num_layers: 1
95      reserved: 0
96      channel_audio_layer_configs: [
97        {
98          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
99          output_gain_is_present_flag: 0
100          recon_gain_is_present_flag: 0
101          reserved_a: 0
102          substream_count: 1
103          coupled_substream_count: 1
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: 2
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: -5113
173        digital_peak: -1292
174      }
175    }
176    layouts {
177      loudness_layout {
178        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
179        ss_layout {
180          sound_system: SOUND_SYSTEM_11_2_3_0
181          reserved: 0
182        }
183      }
184      loudness {
185        info_type_bit_masks: []
186        integrated_loudness: -5165
187        digital_peak: -1766
188      }
189    }
190  }
191}
192
193audio_frame_metadata: [
194  {
195    wav_filename: "Mechanism_5s.wav"
196    samples_to_trim_at_end: 640
197    samples_to_trim_at_start: 0
198    audio_element_id: 300
199    channel_metadatas: [
200      { channel_id: 0 channel_label: CHANNEL_LABEL_L_3 },
201      { channel_id: 1 channel_label: CHANNEL_LABEL_R_3 },
202      { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
203      { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
204      { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_3 },
205      { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_3 }
206    ]
207  },
208  {
209    wav_filename: "dialog_clip_stereo.wav"
210    samples_to_trim_at_end: 640
211    samples_to_trim_at_start: 0
212    audio_element_id: 301
213    channel_metadatas: [
214      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
215      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
216    ]
217  }
218]
219
220temporal_delimiter_metadata {
221  enable_temporal_delimiters: false
222}
223