1# Copyright (c) 2023, 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 IAMF stream with a mix presentation which mixes 2 stereo audio " 17 "elements." 18 file_name_prefix: "test_000058" 19 is_valid: true 20 is_valid_to_decode: true 21 validate_user_loudness: true 22 mp4_fixed_timestamp: "2023-06-20 00:00:00" 23 test_repository_tags: [ 24 "github/aomediacodec/libiamf/main", 25 "github/aomediacodec/libiamf/v1.0.0-errata" 26 ] 27 primary_tested_spec_sections: [ 28 "3.7/num_audio_elements", 29 "4.2/Base Profile", 30 "7/IAMF Processing", 31 "7.3.3/Mixing Audio Elements" 32 ] 33 base_test: "test_000005" 34} 35 36encoder_control_metadata { 37 add_build_information_tag: false 38} 39 40ia_sequence_header_metadata { 41 primary_profile: PROFILE_VERSION_BASE 42 additional_profile: PROFILE_VERSION_BASE 43} 44 45codec_config_metadata { 46 codec_config_id: 200 47 codec_config { 48 codec_id: CODEC_ID_LPCM 49 num_samples_per_frame: 64 50 audio_roll_distance: 0 51 decoder_config_lpcm { 52 sample_format_flags: LPCM_LITTLE_ENDIAN 53 sample_size: 16 54 sample_rate: 16000 55 } 56 } 57} 58 59audio_element_metadata { 60 audio_element_id: 300 61 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 62 reserved: 0 63 codec_config_id: 200 64 num_substreams: 1 65 audio_substream_ids: [0] 66 num_parameters: 0 67 scalable_channel_layout_config { 68 num_layers: 1 69 reserved: 0 70 channel_audio_layer_configs: [ 71 { 72 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 73 output_gain_is_present_flag: 0 74 recon_gain_is_present_flag: 0 75 reserved_a: 0 76 substream_count: 1 77 coupled_substream_count: 1 78 } 79 ] 80 } 81} 82 83audio_element_metadata { 84 audio_element_id: 301 85 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 86 reserved: 0 87 codec_config_id: 200 88 num_substreams: 1 89 audio_substream_ids: [1] 90 num_parameters: 0 91 scalable_channel_layout_config { 92 num_layers: 1 93 reserved: 0 94 channel_audio_layer_configs: [ 95 { 96 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 97 output_gain_is_present_flag: 0 98 recon_gain_is_present_flag: 0 99 reserved_a: 0 100 substream_count: 1 101 coupled_substream_count: 1 102 } 103 ] 104 } 105} 106 107mix_presentation_metadata { 108 mix_presentation_id: 42 109 count_label: 1 110 annotations_language: ["en-us"] 111 localized_presentation_annotations: ["test_mix_pres"] 112 num_sub_mixes: 1 113 sub_mixes { 114 num_audio_elements: 2 115 audio_elements { 116 audio_element_id: 300 117 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 118 rendering_config { 119 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 120 } 121 element_mix_gain { 122 param_definition { 123 parameter_id: 100 124 parameter_rate: 16000 125 param_definition_mode: 1 126 reserved: 0 127 } 128 default_mix_gain: 0 129 } 130 } 131 audio_elements { 132 audio_element_id: 301 133 localized_element_annotations: ["test_sub_mix_0_audio_element_1"] 134 rendering_config { 135 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 136 } 137 element_mix_gain { 138 param_definition { 139 parameter_id: 100 140 parameter_rate: 16000 141 param_definition_mode: 1 142 reserved: 0 143 } 144 default_mix_gain: 0 145 } 146 } 147 output_mix_gain { 148 param_definition { 149 parameter_id: 100 150 parameter_rate: 16000 151 param_definition_mode: 1 152 reserved: 0 153 } 154 default_mix_gain: 0 155 } 156 num_layouts: 1 157 layouts { 158 loudness_layout { 159 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 160 ss_layout { 161 sound_system: SOUND_SYSTEM_A_0_2_0 162 reserved: 0 163 } 164 } 165 loudness { 166 info_type_bit_masks: [] 167 integrated_loudness: -12192 168 digital_peak: -11337 169 } 170 } 171 } 172} 173 174audio_frame_metadata { 175 wav_filename: "sawtooth_100_stereo.wav" 176 samples_to_trim_at_end: 0 177 samples_to_trim_at_start: 0 178 audio_element_id: 300 179 channel_metadatas: [ 180 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 181 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 182 ] 183} 184 185audio_frame_metadata { 186 wav_filename: "sawtooth_100_stereo.wav" 187 samples_to_trim_at_end: 0 188 samples_to_trim_at_start: 0 189 audio_element_id: 301 190 channel_metadatas: [ 191 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 192 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 193 ] 194} 195 196parameter_block_metadata { 197 parameter_id: 100 198 start_timestamp: 0 199 duration: 8000 200 num_subblocks: 1 201 constant_subblock_duration: 8000 202 subblocks: [ 203 { 204 mix_gain_parameter_data { 205 animation_type: ANIMATE_STEP 206 param_data { 207 step { 208 start_point_value: 0 209 } 210 } 211 } 212 } 213 ] 214} 215 216temporal_delimiter_metadata { 217 enable_temporal_delimiters: false 218} 219