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 of a third-order ambisonics with three mixes that represent " 17 "different dialogue languages. Note that a real sample would typically " 18 "have the audio input recored in different languages. This sample " 19 "simulates different languages by applying a different mix gain to make " 20 "them audibly different." 21 file_name_prefix: "test_000706" 22 is_valid: true 23 is_valid_to_decode: true 24 validate_user_loudness: true 25 mp4_fixed_timestamp: "2024-08-14 00:00:00" 26 test_repository_tags: ["github/aomediacodec/libiamf/main"] 27 primary_tested_spec_sections: [ 28 "3.6.2/loudspeaker_layout == Stereo", 29 "3.6.4/ambisonics_mono_config", 30 "3.7.3/sound_system == Stereo", 31 "3.7.4/default_mix_gain", 32 "4.2/Base-Enhanced Profile", 33 "8.5.1/Loudness Information" 34 ] 35 base_test: "test_000705" 36} 37 38encoder_control_metadata { 39 add_build_information_tag: false 40} 41 42ia_sequence_header_metadata { 43 primary_profile: PROFILE_VERSION_BASE_ENHANCED 44 additional_profile: PROFILE_VERSION_BASE_ENHANCED 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_SCENE_BASED 65 reserved: 0 66 codec_config_id: 200 67 num_substreams: 16 68 audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 69 num_parameters: 0 70 ambisonics_config { 71 ambisonics_mode: AMBISONICS_MODE_MONO 72 ambisonics_mono_config { 73 output_channel_count: 16 74 substream_count: 16 75 channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 76 } 77 } 78 }, 79 { 80 audio_element_id: 301 81 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 82 reserved: 0 83 codec_config_id: 200 84 num_substreams: 1 85 audio_substream_ids: [16] 86 num_parameters: 0 87 scalable_channel_layout_config { 88 num_layers: 1 89 reserved: 0 90 channel_audio_layer_configs: [ 91 { 92 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 93 output_gain_is_present_flag: 0 94 recon_gain_is_present_flag: 0 95 reserved_a: 0 96 substream_count: 1 97 coupled_substream_count: 1 98 } 99 ] 100 } 101 }, 102 { 103 audio_element_id: 302 104 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 105 reserved: 0 106 codec_config_id: 200 107 num_substreams: 1 108 audio_substream_ids: [17] 109 num_parameters: 0 110 scalable_channel_layout_config { 111 num_layers: 1 112 reserved: 0 113 channel_audio_layer_configs: [ 114 { 115 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 116 output_gain_is_present_flag: 0 117 recon_gain_is_present_flag: 0 118 reserved_a: 0 119 substream_count: 1 120 coupled_substream_count: 1 121 } 122 ] 123 } 124 }, 125 { 126 audio_element_id: 303 127 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 128 reserved: 0 129 codec_config_id: 200 130 num_substreams: 1 131 audio_substream_ids: [18] 132 num_parameters: 0 133 scalable_channel_layout_config { 134 num_layers: 1 135 reserved: 0 136 channel_audio_layer_configs: [ 137 { 138 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 139 output_gain_is_present_flag: 0 140 recon_gain_is_present_flag: 0 141 reserved_a: 0 142 substream_count: 1 143 coupled_substream_count: 1 144 } 145 ] 146 } 147 } 148] 149 150mix_presentation_metadata [ 151 { 152 mix_presentation_id: 42 153 count_label: 1 154 annotations_language: ["en-us"] 155 localized_presentation_annotations: ["Simulated English Dialog (-0dB)."] 156 num_sub_mixes: 1 157 sub_mixes { 158 num_audio_elements: 2 159 audio_elements: [ 160 { 161 audio_element_id: 300 162 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 163 rendering_config { 164 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 165 } 166 element_mix_gain { 167 param_definition { 168 parameter_id: 999 # Non-existent; default will be used 169 parameter_rate: 48000 170 param_definition_mode: 1 171 reserved: 0 172 } 173 default_mix_gain: -768 174 } 175 }, 176 { 177 audio_element_id: 301 178 localized_element_annotations: ["test_sub_mix_0_audio_element_1"] 179 rendering_config { 180 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 181 } 182 element_mix_gain { 183 param_definition { 184 parameter_id: 998 # Non-existent; default will be used 185 parameter_rate: 48000 186 param_definition_mode: 1 187 reserved: 0 188 } 189 default_mix_gain: 0 190 } 191 } 192 ] 193 output_mix_gain { 194 param_definition { 195 parameter_id: 997 # 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 num_layouts: 1 203 layouts { 204 loudness_layout { 205 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 206 ss_layout { 207 sound_system: SOUND_SYSTEM_A_0_2_0 208 reserved: 0 209 } 210 } 211 loudness { 212 info_type_bit_masks: [] 213 integrated_loudness: -3673 214 digital_peak: -702 215 } 216 } 217 } 218 include_mix_presentation_tags: true 219 mix_presentation_tags: { 220 num_tags: 1 221 tags: { 222 tag_name: "content_language" 223 tag_value: "eng" 224 } 225 } 226 }, 227 { 228 mix_presentation_id: 43 229 count_label: 1 230 annotations_language: ["en-us"] 231 localized_presentation_annotations: ["Simulated Korean Dialog (-5dB)."] 232 num_sub_mixes: 1 233 sub_mixes { 234 num_audio_elements: 2 235 audio_elements: [ 236 { 237 audio_element_id: 300 238 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 239 rendering_config { 240 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 241 } 242 element_mix_gain { 243 param_definition { 244 parameter_id: 999 # Non-existent; default will be used 245 parameter_rate: 48000 246 param_definition_mode: 1 247 reserved: 0 248 } 249 default_mix_gain: -768 250 } 251 }, 252 { 253 audio_element_id: 302 254 localized_element_annotations: ["test_sub_mix_0_audio_element_1"] 255 rendering_config { 256 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 257 } 258 element_mix_gain { 259 param_definition { 260 parameter_id: 996 # Non-existent; default will be used 261 parameter_rate: 48000 262 param_definition_mode: 1 263 reserved: 0 264 } 265 default_mix_gain: -1280 266 } 267 } 268 ] 269 output_mix_gain { 270 param_definition { 271 parameter_id: 997 # Non-existent; default will be used 272 parameter_rate: 48000 273 param_definition_mode: 1 274 reserved: 0 275 } 276 default_mix_gain: 0 277 } 278 num_layouts: 1 279 layouts { 280 loudness_layout { 281 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 282 ss_layout { 283 sound_system: SOUND_SYSTEM_A_0_2_0 284 reserved: 0 285 } 286 } 287 loudness { 288 info_type_bit_masks: [] 289 integrated_loudness: -3655 290 digital_peak: -712 291 } 292 } 293 } 294 include_mix_presentation_tags: true 295 mix_presentation_tags: { 296 num_tags: 1 297 tags: { 298 tag_name: "content_language" 299 tag_value: "kor" 300 } 301 } 302 }, 303 { 304 mix_presentation_id: 44 305 count_label: 1 306 annotations_language: ["en-us"] 307 localized_presentation_annotations: ["Simulated Esperanto Dialog (-10dB)."] 308 num_sub_mixes: 1 309 sub_mixes { 310 num_audio_elements: 2 311 audio_elements: [ 312 { 313 audio_element_id: 300 314 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 315 rendering_config { 316 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 317 } 318 element_mix_gain { 319 param_definition { 320 parameter_id: 999 # Non-existent; default will be used 321 parameter_rate: 48000 322 param_definition_mode: 1 323 reserved: 0 324 } 325 default_mix_gain: -768 326 } 327 }, 328 { 329 audio_element_id: 303 330 localized_element_annotations: ["test_sub_mix_0_audio_element_1"] 331 rendering_config { 332 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 333 } 334 element_mix_gain { 335 param_definition { 336 parameter_id: 995 # Non-existent; default will be used 337 parameter_rate: 48000 338 param_definition_mode: 1 339 reserved: 0 340 } 341 default_mix_gain: -2560 342 } 343 } 344 ] 345 output_mix_gain { 346 param_definition { 347 parameter_id: 997 # Non-existent; default will be used 348 parameter_rate: 48000 349 param_definition_mode: 1 350 reserved: 0 351 } 352 default_mix_gain: 0 353 } 354 num_layouts: 1 355 layouts { 356 loudness_layout { 357 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 358 ss_layout { 359 sound_system: SOUND_SYSTEM_A_0_2_0 360 reserved: 0 361 } 362 } 363 loudness { 364 info_type_bit_masks: [] 365 integrated_loudness: -3613 366 digital_peak: -712 367 } 368 } 369 } 370 include_mix_presentation_tags: true 371 mix_presentation_tags: { 372 num_tags: 1 373 tags: { 374 tag_name: "content_language" 375 tag_value: "epo" 376 } 377 } 378 } 379] 380 381audio_frame_metadata: [ 382 { 383 wav_filename: "Transport_TOA_5s.wav" 384 samples_to_trim_at_end: 640 385 samples_to_trim_at_start: 0 386 audio_element_id: 300 387 channel_metadatas: [ 388 { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 }, 389 { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 }, 390 { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 }, 391 { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 }, 392 { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 }, 393 { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 }, 394 { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 }, 395 { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 }, 396 { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 }, 397 { channel_id: 9 channel_label: CHANNEL_LABEL_A_9 }, 398 { channel_id: 10 channel_label: CHANNEL_LABEL_A_10 }, 399 { channel_id: 11 channel_label: CHANNEL_LABEL_A_11 }, 400 { channel_id: 12 channel_label: CHANNEL_LABEL_A_12 }, 401 { channel_id: 13 channel_label: CHANNEL_LABEL_A_13 }, 402 { channel_id: 14 channel_label: CHANNEL_LABEL_A_14 }, 403 { channel_id: 15 channel_label: CHANNEL_LABEL_A_15 } 404 ] 405 }, 406 { 407 wav_filename: "dialog_clip_stereo.wav" 408 samples_to_trim_at_end: 640 409 samples_to_trim_at_start: 0 410 audio_element_id: 301 411 channel_metadatas: [ 412 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 413 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 414 ] 415 }, 416 { 417 wav_filename: "dialog_clip_stereo.wav" 418 samples_to_trim_at_end: 640 419 samples_to_trim_at_start: 0 420 audio_element_id: 302 421 channel_metadatas: [ 422 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 423 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 424 ] 425 }, 426 { 427 wav_filename: "dialog_clip_stereo.wav" 428 samples_to_trim_at_end: 640 429 samples_to_trim_at_start: 0 430 audio_element_id: 303 431 channel_metadatas: [ 432 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 433 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 434 ] 435 } 436] 437 438temporal_delimiter_metadata { 439 enable_temporal_delimiters: false 440} 441