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: "Template. Fill in `file_name_prefix` and `wav_filename` to encode a file." 16 file_name_prefix: "TEMPLATE" 17 is_valid: true 18} 19 20audio_frame_metadata: [ 21 { 22 wav_filename: "TEMPLATE_TOA.wav" 23 samples_to_trim_at_end_includes_padding: false 24 samples_to_trim_at_start_includes_codec_delay: false 25 samples_to_trim_at_end: 0 26 samples_to_trim_at_start: 0 27 audio_element_id: 300 28 channel_metadatas: [ 29 { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 }, 30 { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 }, 31 { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 }, 32 { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 }, 33 { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 }, 34 { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 }, 35 { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 }, 36 { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 }, 37 { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 }, 38 { channel_id: 9 channel_label: CHANNEL_LABEL_A_9 }, 39 { channel_id: 10 channel_label: CHANNEL_LABEL_A_10 }, 40 { channel_id: 11 channel_label: CHANNEL_LABEL_A_11 }, 41 { channel_id: 12 channel_label: CHANNEL_LABEL_A_12 }, 42 { channel_id: 13 channel_label: CHANNEL_LABEL_A_13 }, 43 { channel_id: 14 channel_label: CHANNEL_LABEL_A_14 }, 44 { channel_id: 15 channel_label: CHANNEL_LABEL_A_15 } 45 ] 46 }, 47 { 48 wav_filename: "TEMPLATE_stereo.wav" 49 samples_to_trim_at_end_includes_padding: false 50 samples_to_trim_at_start_includes_codec_delay: false 51 samples_to_trim_at_end: 0 52 samples_to_trim_at_start: 0 53 audio_element_id: 301 54 channel_metadatas: [ 55 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 56 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 57 ] 58 } 59] 60 61ia_sequence_header_metadata { 62 primary_profile: PROFILE_VERSION_BASE 63 additional_profile: PROFILE_VERSION_BASE 64} 65 66codec_config_metadata { 67 codec_config_id: 200 68 codec_config { 69 codec_id: CODEC_ID_LPCM 70 num_samples_per_frame: 1024 71 decoder_config_lpcm { 72 sample_format_flags: LPCM_LITTLE_ENDIAN 73 sample_size: 24 74 sample_rate: 48000 75 } 76 } 77} 78 79audio_element_metadata: [ 80 { 81 audio_element_id: 300 82 audio_element_type: AUDIO_ELEMENT_SCENE_BASED 83 reserved: 0 84 codec_config_id: 200 85 num_substreams: 16 86 audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 87 num_parameters: 0 88 ambisonics_config { 89 ambisonics_mode: AMBISONICS_MODE_MONO 90 ambisonics_mono_config { 91 output_channel_count: 16 92 substream_count: 16 93 channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 94 } 95 } 96 }, 97 { 98 audio_element_id: 301 99 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 100 reserved: 0 101 codec_config_id: 200 102 num_substreams: 1 103 audio_substream_ids: [16] 104 num_parameters: 0 105 scalable_channel_layout_config { 106 num_layers: 1 107 reserved: 0 108 channel_audio_layer_configs: [ 109 { 110 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 111 output_gain_is_present_flag: 0 112 recon_gain_is_present_flag: 0 113 reserved_a: 0 114 substream_count: 1 115 coupled_substream_count: 1 116 } 117 ] 118 } 119 } 120] 121 122mix_presentation_metadata { 123 mix_presentation_id: 42 124 count_label: 1 125 annotations_language: ["en-us"] 126 localized_presentation_annotations: ["Default Mix Presentation"] 127 num_sub_mixes: 1 128 sub_mixes { 129 num_audio_elements: 2 130 audio_elements: [ 131 { 132 audio_element_id: 300 133 localized_element_annotations: ["Third-order Ambisonics"] 134 rendering_config { 135 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL 136 } 137 element_mix_gain { 138 param_definition { 139 parameter_id: 999 # Non-existent; default will be used 140 parameter_rate: 48000 141 param_definition_mode: 1 142 reserved: 0 143 } 144 default_mix_gain: -768 145 } 146 }, 147 { 148 audio_element_id: 301 149 localized_element_annotations: ["Stereo"] 150 rendering_config { 151 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 152 } 153 element_mix_gain { 154 param_definition { 155 parameter_id: 998 # Non-existent; default will be used 156 parameter_rate: 48000 157 param_definition_mode: 1 158 reserved: 0 159 } 160 default_mix_gain: -768 161 } 162 } 163 ] 164 output_mix_gain { 165 param_definition { 166 parameter_id: 997 # Non-existent; default will be used 167 parameter_rate: 48000 168 param_definition_mode: 1 169 reserved: 0 170 } 171 default_mix_gain: 0 172 } 173 num_layouts: 3 174 layouts { 175 loudness_layout { 176 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 177 ss_layout { 178 sound_system: SOUND_SYSTEM_A_0_2_0 179 reserved: 0 180 } 181 } 182 loudness { 183 info_type_bit_masks: [] 184 } 185 } 186 layouts { 187 loudness_layout { 188 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 189 ss_layout { 190 sound_system: SOUND_SYSTEM_B_0_5_0 191 reserved: 0 192 } 193 } 194 loudness { 195 info_type_bit_masks: [] 196 } 197 } 198 layouts { 199 loudness_layout { 200 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 201 ss_layout { 202 sound_system: SOUND_SYSTEM_J_4_7_0 203 reserved: 0 204 } 205 } 206 loudness { 207 info_type_bit_masks: [] 208 } 209 } 210 } 211} 212 213temporal_delimiter_metadata { 214 enable_temporal_delimiters: false 215} 216