• 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 4-layer IAMF stream encoded using Opus with the last layer "
17    "being 7.1.4 and a binaural layout."
18  file_name_prefix: "test_000095"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2023-07-17 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/default_w",
29    "3.6.2/channel_audio_layer_config",
30    "3.6.2/loudspeaker_layout == Stereo",
31    "3.6.2/loudspeaker_layout == 3.1.2",
32    "3.6.2/loudspeaker_layout == 7.1.2",
33    "3.6.2/loudspeaker_layout == 7.1.4",
34    "3.6.2/num_layers",
35    "3.7.3/headphones_rendering_mode == 1",
36    "3.7.6/layout_type == BINAURAL",
37    "3.9/Audio Frame OBU Syntax and Semantics",
38    "3.11.1/OPUS Specific",
39    "6/ISOBMFF IAMF Encapsulation",
40    "7/IAMF Processing",
41    "7.3.2/Rendering an Audio Element",
42    "7.3.2.1/Rendering a Channel-Based Audio Element to Loudspeakers",
43    "7.3.2.3/Rendering a Channel-Based Audio Element to Headphones"
44  ]
45  base_test: "test_000050"
46}
47
48encoder_control_metadata {
49  add_build_information_tag: false
50}
51
52ia_sequence_header_metadata {
53  primary_profile: PROFILE_VERSION_SIMPLE
54  additional_profile: PROFILE_VERSION_SIMPLE
55}
56
57codec_config_metadata {
58  codec_config_id: 200
59  codec_config {
60    codec_id: CODEC_ID_LPCM
61    num_samples_per_frame: 1024
62    audio_roll_distance: 0
63    decoder_config_lpcm {
64      sample_format_flags: LPCM_LITTLE_ENDIAN
65      sample_size: 16
66      sample_rate: 48000
67    }
68  }
69}
70
71audio_element_metadata {
72  audio_element_id: 300
73  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
74  reserved: 0
75  codec_config_id: 200
76  num_substreams: 7
77  audio_substream_ids: [0, 1, 2, 3, 4, 5, 6]
78  num_parameters: 1
79  audio_element_params {
80    param_definition_type: PARAM_DEFINITION_TYPE_DEMIXING
81    demixing_param: {
82      param_definition {
83        parameter_id: 998  # Non-existent; default will be used
84        parameter_rate: 48000
85        param_definition_mode: 0
86        reserved: 0
87        duration: 1024
88        num_subblocks: 1
89        constant_subblock_duration: 1024
90      }
91      default_demixing_info_parameter_data: {
92        dmixp_mode: DMIXP_MODE_2
93      }
94      default_w: 0
95    }
96  }
97  scalable_channel_layout_config {
98    num_layers: 4
99    reserved: 0
100    channel_audio_layer_configs: [
101      {
102        loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
103        output_gain_is_present_flag: 0
104        recon_gain_is_present_flag: 0
105        reserved_a: 0
106        substream_count: 1
107        coupled_substream_count: 1
108      },
109      {
110        loudspeaker_layout: LOUDSPEAKER_LAYOUT_3_1_2_CH
111        output_gain_is_present_flag: 0
112        recon_gain_is_present_flag: 0
113        reserved_a: 0
114        substream_count: 3
115        coupled_substream_count: 1
116      },
117      {
118        loudspeaker_layout: LOUDSPEAKER_LAYOUT_7_1_2_CH
119        output_gain_is_present_flag: 0
120        recon_gain_is_present_flag: 0
121        reserved_a: 0
122        substream_count: 2
123        coupled_substream_count: 2
124      },
125      {
126        loudspeaker_layout: LOUDSPEAKER_LAYOUT_7_1_4_CH
127        output_gain_is_present_flag: 0
128        recon_gain_is_present_flag: 0
129        reserved_a: 0
130        substream_count: 1
131        coupled_substream_count: 1
132      }
133    ]
134  }
135}
136
137mix_presentation_metadata {
138  mix_presentation_id: 42
139  count_label: 1
140  annotations_language: ["en-us"]
141  localized_presentation_annotations: ["test_mix_pres"]
142  num_sub_mixes: 1
143  sub_mixes {
144    num_audio_elements: 1
145    audio_elements {
146      audio_element_id: 300
147      localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
148      rendering_config {
149        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
150      }
151      element_mix_gain {
152        param_definition {
153          parameter_id: 997  # Non-existent; default will be used
154          parameter_rate: 48000
155          param_definition_mode: 1
156          reserved: 0
157        }
158        default_mix_gain: 0
159      }
160    }
161    output_mix_gain {
162      param_definition {
163        parameter_id: 996  # Non-existent; default will be used
164        parameter_rate: 48000
165        param_definition_mode: 1
166        reserved: 0
167      }
168      default_mix_gain: 0
169    }
170    num_layouts: 5
171    layouts {
172      loudness_layout {
173        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
174        ss_layout {
175          sound_system: SOUND_SYSTEM_A_0_2_0
176          reserved: 0
177        }
178      }
179      loudness {
180        info_type_bit_masks: []
181        integrated_loudness: -6110
182        digital_peak: -2108
183      }
184    }
185    layouts {
186      loudness_layout {
187        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
188        ss_layout {
189          sound_system: SOUND_SYSTEM_11_2_3_0
190          reserved: 0
191        }
192      }
193      loudness {
194        info_type_bit_masks: []
195        integrated_loudness: -6084
196        digital_peak: -2688
197      }
198    }
199    layouts {
200      loudness_layout {
201        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
202        ss_layout {
203          sound_system: SOUND_SYSTEM_10_2_7_0
204          reserved: 0
205        }
206      }
207      loudness {
208        info_type_bit_masks: []
209        integrated_loudness: -6092
210        digital_peak: -2816
211      }
212    }
213    layouts {
214      loudness_layout {
215        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
216        ss_layout {
217          sound_system: SOUND_SYSTEM_J_4_7_0
218          reserved: 0
219        }
220      }
221      loudness {
222        info_type_bit_masks: []
223        integrated_loudness: -6189
224        digital_peak: -2816
225      }
226    }
227    layouts {
228      loudness_layout {
229        layout_type: LAYOUT_TYPE_BINAURAL
230        reserved_or_binaural_layout: {
231          reserved: 0
232        }
233      }
234      loudness {
235        info_type_bit_masks: []
236        integrated_loudness: -32768  # Loudness value should be ignored.
237        digital_peak: -32768  # Loudness value should be ignored.
238      }
239    }
240  }
241}
242
243audio_frame_metadata {
244  wav_filename: "audiolab-acoustic-guitar_2OA_470_ALLRAD_5s.wav"
245  samples_to_trim_at_end: 640
246  samples_to_trim_at_start: 0
247  audio_element_id: 300
248  channel_metadatas: [
249    { channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
250    { channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
251    { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
252    { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
253    { channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
254    { channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
255    { channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
256    { channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 },
257    { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
258    { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
259    { channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
260    { channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 }
261  ]
262}
263
264temporal_delimiter_metadata {
265  enable_temporal_delimiters: false
266}
267