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_OPUS 58 num_samples_per_frame: 960 59 decoder_config_opus { 60 version: 1 61 input_sample_rate: 48000 62 opus_encoder_metadata { 63 target_bitrate_per_channel: 64000 64 application: APPLICATION_AUDIO 65 use_float_api: false 66 } 67 } 68 } 69} 70 71audio_element_metadata: [ 72 { 73 audio_element_id: 300 74 audio_element_type: AUDIO_ELEMENT_SCENE_BASED 75 reserved: 0 76 codec_config_id: 200 77 num_substreams: 4 78 audio_substream_ids: [0, 1, 2, 3] 79 num_parameters: 0 80 ambisonics_config { 81 ambisonics_mode: AMBISONICS_MODE_MONO 82 ambisonics_mono_config { 83 output_channel_count: 4 84 substream_count: 4 85 channel_mapping: [0, 1, 2, 3] 86 } 87 } 88 }, 89 { 90 audio_element_id: 301 91 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 92 reserved: 0 93 codec_config_id: 200 94 num_substreams: 1 95 audio_substream_ids: [5] 96 num_parameters: 0 97 scalable_channel_layout_config { 98 num_layers: 1 99 reserved: 0 100 channel_audio_layer_configs: [ 101 { 102 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 103 output_gain_is_present_flag: 0 104 recon_gain_is_present_flag: 0 105 reserved_a: 0 106 substream_count: 1 107 coupled_substream_count: 1 108 } 109 ] 110 } 111 } 112] 113 114mix_presentation_metadata { 115 mix_presentation_id: 42 116 count_label: 1 117 annotations_language: ["en-us"] 118 localized_presentation_annotations: ["Default Mix Presentation"] 119 num_sub_mixes: 1 120 sub_mixes { 121 num_audio_elements: 2 122 audio_elements: [ 123 { 124 audio_element_id: 300 125 localized_element_annotations: ["First-order Ambisonics"] 126 rendering_config { 127 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL 128 } 129 element_mix_gain { 130 param_definition { 131 parameter_id: 999 # Non-existent; default will be used 132 parameter_rate: 48000 133 param_definition_mode: 1 134 reserved: 0 135 } 136 default_mix_gain: -768 137 } 138 }, 139 { 140 audio_element_id: 301 141 localized_element_annotations: ["Stereo"] 142 rendering_config { 143 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 144 } 145 element_mix_gain { 146 param_definition { 147 parameter_id: 998 # Non-existent; default will be used 148 parameter_rate: 48000 149 param_definition_mode: 1 150 reserved: 0 151 } 152 default_mix_gain: -768 153 } 154 } 155 ] 156 output_mix_gain { 157 param_definition { 158 parameter_id: 997 # Non-existent; default will be used 159 parameter_rate: 48000 160 param_definition_mode: 1 161 reserved: 0 162 } 163 default_mix_gain: 0 164 } 165 num_layouts: 1 166 layouts { 167 loudness_layout { 168 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 169 ss_layout { 170 sound_system: SOUND_SYSTEM_A_0_2_0 171 reserved: 0 172 } 173 } 174 loudness { 175 info_type_bit_masks: [] 176 } 177 } 178 } 179} 180 181temporal_delimiter_metadata { 182 enable_temporal_delimiters: false 183} 184