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 "A 2-layer IAMF stream encoded by normalizing the input 32-bit wav file to " 17 "the range [-1.0, 1.0] then encoding it with the Opus float API." 18 file_name_prefix: "test_000098" 19 is_valid: true 20 is_valid_to_decode: true 21 validate_user_loudness: true 22 mp4_fixed_timestamp: "2023-11-14 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.6/num_parameters", 29 "3.6.2/channel_audio_layer_config", 30 "3.6.2/loudspeaker_layout == Stereo", 31 "3.6.2/loudspeaker_layout == 5.1", 32 "3.6.2/num_layers", 33 "3.9/Audio Frame OBU Syntax and Semantics", 34 "3.11.1/OPUS Specific" 35 ] 36 base_test: "test_000049" 37 output_wav_file_bit_depth_override: 16 38} 39 40encoder_control_metadata { 41 add_build_information_tag: false 42} 43 44ia_sequence_header_metadata { 45 primary_profile: PROFILE_VERSION_SIMPLE 46 additional_profile: PROFILE_VERSION_SIMPLE 47} 48 49codec_config_metadata { 50 codec_config_id: 200 51 codec_config { 52 codec_id: CODEC_ID_OPUS 53 num_samples_per_frame: 2880 54 audio_roll_distance: -2 55 decoder_config_opus { 56 version: 1 57 pre_skip: 312 58 input_sample_rate: 48000 59 opus_encoder_metadata { 60 target_bitrate_per_channel: 48000 61 application: APPLICATION_AUDIO 62 use_float_api: true 63 } 64 } 65 } 66} 67 68audio_element_metadata { 69 audio_element_id: 300 70 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 71 reserved: 0 72 codec_config_id: 200 73 num_substreams: 4 74 audio_substream_ids: [0, 1, 2, 3] 75 num_parameters: 2 76 audio_element_params { 77 param_definition_type: PARAM_DEFINITION_TYPE_DEMIXING 78 demixing_param: { 79 param_definition { 80 parameter_id: 998 # Non-existent; default will be used 81 parameter_rate: 48000 82 param_definition_mode: 0 83 reserved: 0 84 duration: 2880 85 num_subblocks: 1 86 constant_subblock_duration: 2880 87 } 88 default_demixing_info_parameter_data: { 89 dmixp_mode: DMIXP_MODE_2 90 } 91 default_w: 0 92 } 93 } 94 audio_element_params { 95 param_definition_type: PARAM_DEFINITION_TYPE_RECON_GAIN 96 recon_gain_param { 97 param_definition { 98 parameter_id: 999 # Non-existent; default will be used 99 parameter_rate: 48000 100 param_definition_mode: 0 101 reserved: 0 102 duration: 2880 103 num_subblocks: 1 104 constant_subblock_duration: 2880 105 } 106 } 107 } 108 scalable_channel_layout_config { 109 num_layers: 2 110 reserved: 0 111 channel_audio_layer_configs: [ 112 { 113 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 114 output_gain_is_present_flag: 0 115 recon_gain_is_present_flag: 0 116 reserved_a: 0 117 substream_count: 1 118 coupled_substream_count: 1 119 }, 120 { 121 loudspeaker_layout: LOUDSPEAKER_LAYOUT_5_1_CH 122 output_gain_is_present_flag: 0 123 recon_gain_is_present_flag: 1 124 reserved_a: 0 125 substream_count: 3 126 coupled_substream_count: 1 127 } 128 ] 129 } 130} 131 132mix_presentation_metadata { 133 mix_presentation_id: 42 134 count_label: 1 135 annotations_language: ["en-us"] 136 localized_presentation_annotations: ["test_mix_pres"] 137 num_sub_mixes: 1 138 sub_mixes { 139 num_audio_elements: 1 140 audio_elements { 141 audio_element_id: 300 142 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 143 rendering_config { 144 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 145 } 146 element_mix_gain { 147 param_definition { 148 parameter_id: 100 149 parameter_rate: 48000 150 param_definition_mode: 1 151 reserved: 0 152 } 153 default_mix_gain: 0 154 } 155 } 156 output_mix_gain { 157 param_definition { 158 parameter_id: 100 159 parameter_rate: 48000 160 param_definition_mode: 1 161 reserved: 0 162 } 163 default_mix_gain: 0 164 } 165 num_layouts: 2 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 integrated_loudness: -4618 177 digital_peak: -630 178 } 179 } 180 layouts { 181 loudness_layout { 182 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 183 ss_layout { 184 sound_system: SOUND_SYSTEM_B_0_5_0 185 reserved: 0 186 } 187 } 188 loudness { 189 info_type_bit_masks: [] 190 integrated_loudness: -4637 191 digital_peak: -1009 192 } 193 } 194 } 195} 196 197audio_frame_metadata { 198 wav_filename: "Mechanism_5s_32bit.wav" 199 samples_to_trim_at_end: 1608 200 samples_to_trim_at_start: 312 201 audio_element_id: 300 202 channel_metadatas: [ 203 { channel_id: 0 channel_label: CHANNEL_LABEL_L_5 }, 204 { channel_id: 1 channel_label: CHANNEL_LABEL_R_5 }, 205 { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE }, 206 { channel_id: 3 channel_label: CHANNEL_LABEL_LFE }, 207 { channel_id: 4 channel_label: CHANNEL_LABEL_LS_5 }, 208 { channel_id: 5 channel_label: CHANNEL_LABEL_RS_5 } 209 ] 210} 211 212parameter_block_metadata { 213 parameter_id: 100 214 start_timestamp: 0 215 duration: 648000 216 num_subblocks: 1 217 constant_subblock_duration: 648000 218 subblocks: [ 219 { 220 mix_gain_parameter_data { 221 animation_type: ANIMATE_STEP 222 param_data { 223 step { 224 start_point_value: 0 225 } 226 } 227 } 228 } 229 ] 230} 231 232temporal_delimiter_metadata { 233 enable_temporal_delimiters: false 234} 235