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_OPUS 70 num_samples_per_frame: 960 71 decoder_config_opus { 72 version: 1 73 input_sample_rate: 48000 74 opus_encoder_metadata { 75 target_bitrate_per_channel: 64000 76 application: APPLICATION_AUDIO 77 use_float_api: false 78 } 79 } 80 } 81} 82 83audio_element_metadata: [ 84 { 85 audio_element_id: 300 86 audio_element_type: AUDIO_ELEMENT_SCENE_BASED 87 reserved: 0 88 codec_config_id: 200 89 num_substreams: 16 90 audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 91 num_parameters: 0 92 ambisonics_config { 93 ambisonics_mode: AMBISONICS_MODE_MONO 94 ambisonics_mono_config { 95 output_channel_count: 16 96 substream_count: 16 97 channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] 98 } 99 } 100 }, 101 { 102 audio_element_id: 301 103 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 104 reserved: 0 105 codec_config_id: 200 106 num_substreams: 1 107 audio_substream_ids: [16] 108 num_parameters: 0 109 scalable_channel_layout_config { 110 num_layers: 1 111 reserved: 0 112 channel_audio_layer_configs: [ 113 { 114 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 115 output_gain_is_present_flag: 0 116 recon_gain_is_present_flag: 0 117 reserved_a: 0 118 substream_count: 1 119 coupled_substream_count: 1 120 } 121 ] 122 } 123 } 124] 125 126mix_presentation_metadata { 127 mix_presentation_id: 42 128 count_label: 1 129 annotations_language: ["en-us"] 130 localized_presentation_annotations: ["Default Mix Presentation"] 131 num_sub_mixes: 1 132 sub_mixes { 133 num_audio_elements: 2 134 audio_elements: [ 135 { 136 audio_element_id: 300 137 localized_element_annotations: ["Third-order Ambisonics"] 138 rendering_config { 139 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL 140 } 141 element_mix_gain { 142 param_definition { 143 parameter_id: 999 # Non-existent; default will be used 144 parameter_rate: 48000 145 param_definition_mode: 1 146 reserved: 0 147 } 148 default_mix_gain: -768 149 } 150 }, 151 { 152 audio_element_id: 301 153 localized_element_annotations: ["Stereo"] 154 rendering_config { 155 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 156 } 157 element_mix_gain { 158 param_definition { 159 parameter_id: 998 # Non-existent; default will be used 160 parameter_rate: 48000 161 param_definition_mode: 1 162 reserved: 0 163 } 164 default_mix_gain: -768 165 } 166 } 167 ] 168 output_mix_gain { 169 param_definition { 170 parameter_id: 997 # Non-existent; default will be used 171 parameter_rate: 48000 172 param_definition_mode: 1 173 reserved: 0 174 } 175 default_mix_gain: 0 176 } 177 num_layouts: 3 178 layouts { 179 loudness_layout { 180 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 181 ss_layout { 182 sound_system: SOUND_SYSTEM_A_0_2_0 183 reserved: 0 184 } 185 } 186 loudness { 187 info_type_bit_masks: [] 188 } 189 } 190 layouts { 191 loudness_layout { 192 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 193 ss_layout { 194 sound_system: SOUND_SYSTEM_B_0_5_0 195 reserved: 0 196 } 197 } 198 loudness { 199 info_type_bit_masks: [] 200 } 201 } 202 layouts { 203 loudness_layout { 204 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 205 ss_layout { 206 sound_system: SOUND_SYSTEM_J_4_7_0 207 reserved: 0 208 } 209 } 210 loudness { 211 info_type_bit_masks: [] 212 } 213 } 214 } 215} 216 217temporal_delimiter_metadata { 218 enable_temporal_delimiters: false 219} 220