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 7.1.4 IAMF stream to use default demixing " 17 "parameter." 18 file_name_prefix: "test_000221" 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/default_demixing_info_parameter_data", 29 "3.6.2/loudspeaker_layout == 7.1.4", 30 "7/IAMF Processing", 31 "7.3.2.1/Rendering a Channel-Based Audio Element to Loudspeakers", 32 "7.5.1/Loudness Normalization", 33 "7.5.2/Limiter", 34 "9.1.2.1/Annex A2.1: Down-mix parameter and Loudness" 35 ] 36 base_test: "test_000209" 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: 960 54 audio_roll_distance: -4 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: false 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: 7 74 audio_substream_ids: [0, 1, 2, 3, 4, 5, 6] 75 num_parameters: 1 76 audio_element_params { 77 param_definition_type: PARAM_DEFINITION_TYPE_DEMIXING 78 demixing_param: { 79 param_definition { 80 parameter_id: 999 # Non-existent; default will be used 81 parameter_rate: 48000 82 param_definition_mode: 0 83 reserved: 0 84 duration: 960 85 num_subblocks: 1 86 constant_subblock_duration: 960 87 } 88 default_demixing_info_parameter_data: { 89 dmixp_mode: DMIXP_MODE_2 90 } 91 default_w: 0 92 } 93 } 94 scalable_channel_layout_config { 95 num_layers: 1 96 reserved: 0 97 channel_audio_layer_configs: [ 98 { 99 loudspeaker_layout: LOUDSPEAKER_LAYOUT_7_1_4_CH 100 output_gain_is_present_flag: 0 101 recon_gain_is_present_flag: 0 102 reserved_a: 0 103 substream_count: 7 104 coupled_substream_count: 5 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: ["test_mix_pres"] 115 num_sub_mixes: 1 116 sub_mixes { 117 num_audio_elements: 1 118 audio_elements { 119 audio_element_id: 300 120 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 121 rendering_config { 122 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 123 } 124 element_mix_gain { 125 param_definition { 126 parameter_id: 998 # Non-existent; default will be used 127 parameter_rate: 48000 128 param_definition_mode: 1 129 reserved: 0 130 } 131 default_mix_gain: 0 132 } 133 } 134 output_mix_gain { 135 param_definition { 136 parameter_id: 997 # Non-existent; default will be used 137 parameter_rate: 48000 138 param_definition_mode: 1 139 reserved: 0 140 } 141 default_mix_gain: 0 142 } 143 num_layouts: 4 144 layouts { 145 loudness_layout { 146 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 147 ss_layout { 148 sound_system: SOUND_SYSTEM_A_0_2_0 149 reserved: 0 150 } 151 } 152 loudness { 153 info_type_bit_masks: [] 154 integrated_loudness: -4013 155 digital_peak: 0 156 } 157 } 158 layouts { 159 loudness_layout { 160 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 161 ss_layout { 162 sound_system: SOUND_SYSTEM_B_0_5_0 163 reserved: 0 164 } 165 } 166 loudness { 167 info_type_bit_masks: [] 168 integrated_loudness: -3695 169 digital_peak: -798 170 } 171 } 172 layouts { 173 loudness_layout { 174 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 175 ss_layout { 176 sound_system: SOUND_SYSTEM_11_2_3_0 177 reserved: 0 178 } 179 } 180 loudness { 181 info_type_bit_masks: [] 182 integrated_loudness: -4290 183 digital_peak: 0 184 } 185 } 186 layouts { 187 loudness_layout { 188 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 189 ss_layout { 190 sound_system: SOUND_SYSTEM_J_4_7_0 191 reserved: 0 192 } 193 } 194 loudness { 195 info_type_bit_masks: [] 196 integrated_loudness: -4112 197 digital_peak: -998 198 } 199 } 200 } 201} 202 203audio_frame_metadata { 204 wav_filename: "Mechanism_5s.wav" 205 samples_to_trim_at_end: 648 206 samples_to_trim_at_start: 312 207 audio_element_id: 300 208 channel_metadatas: [ 209 { channel_id: 0 channel_label: CHANNEL_LABEL_L_7 }, 210 { channel_id: 1 channel_label: CHANNEL_LABEL_R_7 }, 211 { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE }, 212 { channel_id: 3 channel_label: CHANNEL_LABEL_LFE }, 213 { channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 }, 214 { channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 }, 215 { channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 }, 216 { channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 }, 217 { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 }, 218 { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 }, 219 { channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 }, 220 { channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 } 221 ] 222} 223 224temporal_delimiter_metadata { 225 enable_temporal_delimiters: false 226} 227