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_FOA.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 ] 34 }, 35 { 36 wav_filename: "TEMPLATE_stereo.wav" 37 samples_to_trim_at_end_includes_padding: false 38 samples_to_trim_at_start_includes_codec_delay: false 39 samples_to_trim_at_end: 0 40 samples_to_trim_at_start: 0 41 audio_element_id: 301 42 channel_metadatas: [ 43 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 44 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 45 ] 46 } 47] 48 49ia_sequence_header_metadata { 50 primary_profile: PROFILE_VERSION_BASE 51 additional_profile: PROFILE_VERSION_BASE 52} 53 54codec_config_metadata { 55 codec_config_id: 200 56 codec_config { 57 codec_id: CODEC_ID_LPCM 58 num_samples_per_frame: 1024 59 decoder_config_lpcm { 60 sample_format_flags: LPCM_LITTLE_ENDIAN 61 sample_size: 24 62 sample_rate: 48000 63 } 64 } 65} 66 67audio_element_metadata: [ 68 { 69 audio_element_id: 300 70 audio_element_type: AUDIO_ELEMENT_SCENE_BASED 71 reserved: 0 72 codec_config_id: 200 73 num_substreams: 4 74 audio_substream_ids: [0, 1, 2, 3] 75 num_parameters: 0 76 ambisonics_config { 77 ambisonics_mode: AMBISONICS_MODE_MONO 78 ambisonics_mono_config { 79 output_channel_count: 4 80 substream_count: 4 81 channel_mapping: [0, 1, 2, 3] 82 } 83 } 84 }, 85 { 86 audio_element_id: 301 87 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 88 reserved: 0 89 codec_config_id: 200 90 num_substreams: 1 91 audio_substream_ids: [5] 92 num_parameters: 0 93 scalable_channel_layout_config { 94 num_layers: 1 95 reserved: 0 96 channel_audio_layer_configs: [ 97 { 98 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 99 output_gain_is_present_flag: 0 100 recon_gain_is_present_flag: 0 101 reserved_a: 0 102 substream_count: 1 103 coupled_substream_count: 1 104 } 105 ] 106 } 107 } 108] 109 110mix_presentation_metadata { 111 mix_presentation_id: 42 112 count_label: 1 113 annotations_language: ["en-us"] 114 localized_presentation_annotations: ["Default Mix Presentation"] 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: ["First-order Ambisonics"] 122 rendering_config { 123 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL 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: -768 133 } 134 }, 135 { 136 audio_element_id: 301 137 localized_element_annotations: ["Stereo"] 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: -768 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 } 173 } 174 } 175} 176 177temporal_delimiter_metadata { 178 enable_temporal_delimiters: false 179} 180