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 with the last layer being " 17 "5.1." 18 file_name_prefix: "test_000036" 19 is_valid: true 20 is_valid_to_decode: true 21 validate_user_loudness: true 22 mp4_fixed_timestamp: "2023-05-12 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.2/channel_audio_layer_config", 29 "3.6.2/loudspeaker_layout == Stereo", 30 "3.6.2/loudspeaker_layout == 5.1", 31 "3.6.2/num_layers", 32 "7/IAMF Processing", 33 "7.2/non-scalable", 34 "7.2.2/De-mixer" 35 ] 36 base_test: "test_000005" 37} 38 39encoder_control_metadata { 40 add_build_information_tag: false 41} 42 43ia_sequence_header_metadata { 44 primary_profile: PROFILE_VERSION_SIMPLE 45 additional_profile: PROFILE_VERSION_SIMPLE 46} 47 48codec_config_metadata { 49 codec_config_id: 200 50 codec_config { 51 codec_id: CODEC_ID_LPCM 52 num_samples_per_frame: 512 53 audio_roll_distance: 0 54 decoder_config_lpcm { 55 sample_format_flags: LPCM_LITTLE_ENDIAN 56 sample_size: 16 57 sample_rate: 48000 58 } 59 } 60} 61 62audio_element_metadata { 63 audio_element_id: 300 64 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 65 reserved: 0 66 codec_config_id: 200 67 num_substreams: 4 68 audio_substream_ids: [0, 1, 2, 3] 69 num_parameters: 1 70 audio_element_params { 71 param_definition_type: PARAM_DEFINITION_TYPE_DEMIXING 72 demixing_param: { 73 param_definition { 74 parameter_id: 998 # Non-existent; default will be used 75 parameter_rate: 48000 76 param_definition_mode: 0 77 reserved: 0 78 duration: 512 79 num_subblocks: 1 80 constant_subblock_duration: 512 81 } 82 default_demixing_info_parameter_data: { 83 dmixp_mode: DMIXP_MODE_2 84 } 85 default_w: 0 86 } 87 } 88 scalable_channel_layout_config { 89 num_layers: 2 90 reserved: 0 91 channel_audio_layer_configs: [ 92 { 93 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 94 output_gain_is_present_flag: 0 95 recon_gain_is_present_flag: 0 96 reserved_a: 0 97 substream_count: 1 98 coupled_substream_count: 1 99 }, 100 { 101 loudspeaker_layout: LOUDSPEAKER_LAYOUT_5_1_CH 102 output_gain_is_present_flag: 0 103 recon_gain_is_present_flag: 0 104 reserved_a: 0 105 substream_count: 3 106 coupled_substream_count: 1 107 } 108 ] 109 } 110} 111 112mix_presentation_metadata { 113 mix_presentation_id: 42 114 count_label: 1 115 annotations_language: ["en-us"] 116 localized_presentation_annotations: ["test_mix_pres"] 117 num_sub_mixes: 1 118 sub_mixes { 119 num_audio_elements: 1 120 audio_elements { 121 audio_element_id: 300 122 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 123 rendering_config { 124 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 125 } 126 element_mix_gain { 127 param_definition { 128 parameter_id: 100 129 parameter_rate: 48000 130 param_definition_mode: 1 131 reserved: 0 132 } 133 default_mix_gain: 0 134 } 135 } 136 output_mix_gain { 137 param_definition { 138 parameter_id: 100 139 parameter_rate: 48000 140 param_definition_mode: 1 141 reserved: 0 142 } 143 default_mix_gain: 0 144 } 145 num_layouts: 2 146 layouts { 147 loudness_layout { 148 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 149 ss_layout { 150 sound_system: SOUND_SYSTEM_A_0_2_0 151 reserved: 0 152 } 153 } 154 loudness { 155 info_type_bit_masks: [] 156 integrated_loudness: -4618 157 digital_peak: -630 158 } 159 } 160 layouts { 161 loudness_layout { 162 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 163 ss_layout { 164 sound_system: SOUND_SYSTEM_B_0_5_0 165 reserved: 0 166 } 167 } 168 loudness { 169 info_type_bit_masks: [] 170 integrated_loudness: -4637 171 digital_peak: -1009 172 } 173 } 174 } 175} 176 177audio_frame_metadata { 178 wav_filename: "Mechanism_5s.wav" 179 samples_to_trim_at_end: 128 180 samples_to_trim_at_start: 0 181 audio_element_id: 300 182 channel_metadatas: [ 183 { channel_id: 0 channel_label: CHANNEL_LABEL_L_5 }, 184 { channel_id: 1 channel_label: CHANNEL_LABEL_R_5 }, 185 { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE }, 186 { channel_id: 3 channel_label: CHANNEL_LABEL_LFE }, 187 { channel_id: 4 channel_label: CHANNEL_LABEL_LS_5 }, 188 { channel_id: 5 channel_label: CHANNEL_LABEL_RS_5 } 189 ] 190} 191 192parameter_block_metadata { 193 parameter_id: 100 194 start_timestamp: 0 195 duration: 645120 196 num_subblocks: 1 197 constant_subblock_duration: 645120 198 subblocks: [ 199 { 200 mix_gain_parameter_data { 201 animation_type: ANIMATE_STEP 202 param_data { 203 step { 204 start_point_value: 0 205 } 206 } 207 } 208 } 209 ] 210} 211 212temporal_delimiter_metadata { 213 enable_temporal_delimiters: false 214} 215