• 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 using the maximum number of audio elements for Base-Enhanced "
17    "profile. It has two audio elements {third-order mono ambisonics, 7.1.4} "
18    "and a stereo output layout."
19  file_name_prefix: "test_000708"
20  is_valid: true
21  is_valid_to_decode: true
22  validate_user_loudness: true
23  mp4_fixed_timestamp: "2024-08-14 00:00:00"
24  test_repository_tags: ["github/aomediacodec/libiamf/main"]
25  primary_tested_spec_sections: [
26    "3.6.2/loudspeaker_layout == 7.1.4",
27    "3.6.3/ambisonics_mono_config",
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_000624"
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: 7
66    audio_substream_ids: [0, 1, 2, 3, 4, 5, 6]
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_7_1_4_CH
74          output_gain_is_present_flag: 0
75          recon_gain_is_present_flag: 0
76          reserved_a: 0
77          substream_count: 7
78          coupled_substream_count: 5
79        }
80      ]
81    }
82  },
83  {
84    audio_element_id: 301
85    audio_element_type: AUDIO_ELEMENT_SCENE_BASED
86    reserved: 0
87    codec_config_id: 200
88    num_substreams: 16
89    audio_substream_ids: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
90    num_parameters: 0
91    ambisonics_config {
92      ambisonics_mode: AMBISONICS_MODE_MONO
93      ambisonics_mono_config {
94        output_channel_count: 16
95        substream_count: 16
96        channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
97      }
98    }
99  }
100]
101
102mix_presentation_metadata {
103  mix_presentation_id: 42
104  count_label: 1
105  annotations_language: ["en-us"]
106  localized_presentation_annotations: ["test_mix_pres"]
107  num_sub_mixes: 1
108  sub_mixes {
109    num_audio_elements: 2
110    audio_elements: [
111      {
112        audio_element_id: 300
113        localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
114        rendering_config {
115          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
116        }
117        element_mix_gain {
118          param_definition {
119            parameter_id: 999  # Non-existent; default will be used
120            parameter_rate: 48000
121            param_definition_mode: 1
122            reserved: 0
123          }
124          default_mix_gain: -768
125        }
126      },
127      {
128        audio_element_id: 301
129        localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
130        rendering_config {
131          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
132        }
133        element_mix_gain {
134          param_definition {
135            parameter_id: 998  # Non-existent; default will be used
136            parameter_rate: 48000
137            param_definition_mode: 1
138            reserved: 0
139          }
140          default_mix_gain: -768
141        }
142      }
143    ]
144    output_mix_gain {
145      param_definition {
146        parameter_id: 997  # Non-existent; default will be used
147        parameter_rate: 48000
148        param_definition_mode: 1
149        reserved: 0
150      }
151      default_mix_gain: 0
152    }
153    num_layouts: 2
154    layouts {
155      loudness_layout {
156        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
157        ss_layout {
158          sound_system: SOUND_SYSTEM_A_0_2_0
159          reserved: 0
160        }
161      }
162      loudness {
163        info_type_bit_masks: []
164        integrated_loudness: -3519
165        digital_peak: 0
166      }
167    }
168    layouts {
169      loudness_layout {
170        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
171        ss_layout {
172          sound_system: SOUND_SYSTEM_J_4_7_0
173          reserved: 0
174        }
175      }
176      loudness {
177        info_type_bit_masks: []
178        integrated_loudness: -3904
179        digital_peak: -1700
180      }
181    }
182  }
183}
184
185audio_frame_metadata: [
186  {
187    wav_filename: "Mechanism_5s.wav"
188    samples_to_trim_at_end: 640
189    samples_to_trim_at_start: 0
190    audio_element_id: 300
191    channel_metadatas: [
192      { channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
193      { channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
194      { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
195      { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
196      { channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
197      { channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
198      { channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
199      { channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 },
200      { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
201      { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
202      { channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
203      { channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 }
204    ]
205  },
206  {
207    wav_filename: "Transport_TOA_5s.wav"
208    samples_to_trim_at_end: 640
209    samples_to_trim_at_start: 0
210    audio_element_id: 301
211    channel_metadatas: [
212      { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 },
213      { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 },
214      { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 },
215      { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 },
216      { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 },
217      { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 },
218      { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 },
219      { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 },
220      { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 },
221      { channel_id: 9 channel_label: CHANNEL_LABEL_A_9 },
222      { channel_id: 10 channel_label: CHANNEL_LABEL_A_10 },
223      { channel_id: 11 channel_label: CHANNEL_LABEL_A_11 },
224      { channel_id: 12 channel_label: CHANNEL_LABEL_A_12 },
225      { channel_id: 13 channel_label: CHANNEL_LABEL_A_13 },
226      { channel_id: 14 channel_label: CHANNEL_LABEL_A_14 },
227      { channel_id: 15 channel_label: CHANNEL_LABEL_A_15 }
228    ]
229  }
230]
231
232temporal_delimiter_metadata {
233  enable_temporal_delimiters: false
234}
235