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 which contains one Mix Presentation which uses greater " 17 "than the maximum number of channels for Base-Enhanced profile and " 18 "should be ignored. It has a second audio element which encodes " 19 "fourth-order ambisonics which can be decoded under Base-Enhanced profile." 20 file_name_prefix: "test_000711" 21 # The encoder typically would not produce files with reserved profile values. 22 is_valid: false 23 # The decoder can decode the Mix Presentation with ID = 43. 24 is_valid_to_decode: true 25 validate_user_loudness: true 26 mp4_fixed_timestamp: "2024-08-14 00:00:00" 27 test_repository_tags: ["github/aomediacodec/libiamf/main"] 28 primary_tested_spec_sections: [ 29 "3.4/additional_profile == 255", 30 "3.6.2/loudspeaker_layout == Expanded", 31 "3.6.2/expanded_loudspeaker_layout == Top-6Ch", 32 "3.6.3/ambisonics_mono_config", 33 "3.7/num_audio_elements", 34 "3.7.3/sound_system == Stereo", 35 "3.7.4/default_mix_gain", 36 "4.2/Base-Enhanced Profile", 37 "8.5.1/Loudness Information" 38 ] 39 base_test: "test_000400" 40} 41 42encoder_control_metadata { 43 add_build_information_tag: false 44} 45 46ia_sequence_header_metadata { 47 primary_profile: PROFILE_VERSION_BASE_ENHANCED 48 additional_profile: PROFILE_VERSION_RESERVED_255 49} 50 51codec_config_metadata { 52 codec_config_id: 200 53 codec_config { 54 codec_id: CODEC_ID_LPCM 55 num_samples_per_frame: 1024 56 audio_roll_distance: 0 57 decoder_config_lpcm { 58 sample_format_flags: LPCM_LITTLE_ENDIAN 59 sample_size: 16 60 sample_rate: 48000 61 } 62 } 63} 64 65audio_element_metadata: [ 66 { 67 audio_element_id: 300 68 audio_element_type: AUDIO_ELEMENT_SCENE_BASED 69 reserved: 0 70 codec_config_id: 200 71 num_substreams: 25 72 audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24] 73 num_parameters: 0 74 ambisonics_config { 75 ambisonics_mode: AMBISONICS_MODE_MONO 76 ambisonics_mono_config { 77 output_channel_count: 25 78 substream_count: 25 79 channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24] 80 } 81 } 82 }, 83 { 84 audio_element_id: 301 85 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 86 reserved: 0 87 codec_config_id: 200 88 num_substreams: 3 89 audio_substream_ids: [25, 26, 27] 90 num_parameters: 0 91 scalable_channel_layout_config { 92 num_layers: 1 93 reserved: 0 94 channel_audio_layer_configs: [ 95 { 96 loudspeaker_layout: LOUDSPEAKER_LAYOUT_EXPANDED 97 output_gain_is_present_flag: 0 98 recon_gain_is_present_flag: 0 99 reserved_a: 0 100 substream_count: 3 101 coupled_substream_count: 3 102 expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_TOP_6_CH 103 } 104 ] 105 } 106 } 107] 108 109mix_presentation_metadata [ 110 { 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: 0 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: 0 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: -2982 173 digital_peak: 0 174 } 175 } 176 } 177 }, 178 { 179 mix_presentation_id: 43 180 count_label: 1 181 annotations_language: ["en-us"] 182 localized_presentation_annotations: ["test_mix_pres"] 183 num_sub_mixes: 1 184 sub_mixes { 185 num_audio_elements: 1 186 audio_elements: [ 187 { 188 audio_element_id: 300 189 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 190 rendering_config { 191 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 192 } 193 element_mix_gain { 194 param_definition { 195 parameter_id: 999 # Non-existent; default will be used 196 parameter_rate: 48000 197 param_definition_mode: 1 198 reserved: 0 199 } 200 default_mix_gain: 0 201 } 202 } 203 ] 204 output_mix_gain { 205 param_definition { 206 parameter_id: 997 # Non-existent; default will be used 207 parameter_rate: 48000 208 param_definition_mode: 1 209 reserved: 0 210 } 211 default_mix_gain: 0 212 } 213 num_layouts: 1 214 layouts { 215 loudness_layout { 216 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 217 ss_layout { 218 sound_system: SOUND_SYSTEM_A_0_2_0 219 reserved: 0 220 } 221 } 222 loudness { 223 info_type_bit_masks: [] 224 integrated_loudness: -3665 225 digital_peak: -2896 226 } 227 } 228 } 229 } 230] 231 232audio_frame_metadata: [ 233 { 234 wav_filename: "sine_1000_4oa_48khz.wav" 235 samples_to_trim_at_end: 640 236 samples_to_trim_at_start: 0 237 audio_element_id: 300 238 channel_metadatas: [ 239 { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 }, 240 { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 }, 241 { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 }, 242 { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 }, 243 { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 }, 244 { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 }, 245 { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 }, 246 { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 }, 247 { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 }, 248 { channel_id: 9 channel_label: CHANNEL_LABEL_A_9 }, 249 { channel_id: 10 channel_label: CHANNEL_LABEL_A_10 }, 250 { channel_id: 11 channel_label: CHANNEL_LABEL_A_11 }, 251 { channel_id: 12 channel_label: CHANNEL_LABEL_A_12 }, 252 { channel_id: 13 channel_label: CHANNEL_LABEL_A_13 }, 253 { channel_id: 14 channel_label: CHANNEL_LABEL_A_14 }, 254 { channel_id: 15 channel_label: CHANNEL_LABEL_A_15 }, 255 { channel_id: 16 channel_label: CHANNEL_LABEL_A_16 }, 256 { channel_id: 17 channel_label: CHANNEL_LABEL_A_17 }, 257 { channel_id: 18 channel_label: CHANNEL_LABEL_A_18 }, 258 { channel_id: 19 channel_label: CHANNEL_LABEL_A_19 }, 259 { channel_id: 20 channel_label: CHANNEL_LABEL_A_20 }, 260 { channel_id: 21 channel_label: CHANNEL_LABEL_A_21 }, 261 { channel_id: 22 channel_label: CHANNEL_LABEL_A_22 }, 262 { channel_id: 23 channel_label: CHANNEL_LABEL_A_23 }, 263 { channel_id: 24 channel_label: CHANNEL_LABEL_A_24 } 264 ] 265 }, 266 { 267 wav_filename: "Transport_9.1.6_5s.wav" 268 samples_to_trim_at_end: 640 269 samples_to_trim_at_start: 0 270 audio_element_id: 301 271 channel_metadatas: [ 272 { channel_id: 10 channel_label: CHANNEL_LABEL_TP_FL }, 273 { channel_id: 11 channel_label: CHANNEL_LABEL_TP_FR }, 274 { channel_id: 12 channel_label: CHANNEL_LABEL_TP_BL }, 275 { channel_id: 13 channel_label: CHANNEL_LABEL_TP_BR }, 276 { channel_id: 14 channel_label: CHANNEL_LABEL_TP_SI_L }, 277 { channel_id: 15 channel_label: CHANNEL_LABEL_TP_SI_R } 278 ] 279 } 280] 281 282temporal_delimiter_metadata { 283 enable_temporal_delimiters: false 284} 285