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 frame-aligned stereo IAMF stream encoded with " 17 "FLAC with an invalid roll distance." 18 file_name_prefix: "test_000084" 19 is_valid: false 20 is_valid_to_decode: false 21 validate_user_loudness: true 22 mp4_fixed_timestamp: "2023-07-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.5/audio_roll_distance != 0", 29 "3.11.3/FLAC Specific" 30 ] 31 base_test: "test_000072" 32} 33 34encoder_control_metadata { 35 add_build_information_tag: false 36} 37 38ia_sequence_header_metadata { 39 primary_profile: PROFILE_VERSION_SIMPLE 40 additional_profile: PROFILE_VERSION_SIMPLE 41} 42 43codec_config_metadata { 44 codec_config_id: 200 45 codec_config { 46 codec_id: CODEC_ID_FLAC 47 num_samples_per_frame: 64 48 # Prevent encoder from overriding the invalid `audio_roll_distance` value. 49 automatically_override_audio_roll_distance: false 50 audio_roll_distance: -1 51 decoder_config_flac: { 52 metadata_blocks: { 53 header: { 54 last_metadata_block_flag: true 55 block_type: FLAC_BLOCK_TYPE_STREAMINFO 56 metadata_data_block_length: 34 57 } 58 stream_info { 59 minimum_block_size: 64 60 maximum_block_size: 64 61 sample_rate: 48000 62 bits_per_sample: 15 # Flac interprets this as 16 bits. 63 total_samples_in_stream: 24000 64 } 65 } 66 flac_encoder_metadata { 67 compression_level: 0 68 } 69 } 70 } 71} 72 73audio_element_metadata { 74 audio_element_id: 300 75 audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED 76 reserved: 0 77 codec_config_id: 200 78 num_substreams: 1 79 audio_substream_ids: [0] 80 num_parameters: 0 81 scalable_channel_layout_config { 82 num_layers: 1 83 reserved: 0 84 channel_audio_layer_configs: [ 85 { 86 loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO 87 output_gain_is_present_flag: 0 88 recon_gain_is_present_flag: 0 89 reserved_a: 0 90 substream_count: 1 91 coupled_substream_count: 1 92 } 93 ] 94 } 95} 96 97mix_presentation_metadata { 98 mix_presentation_id: 42 99 count_label: 1 100 annotations_language: ["en-us"] 101 localized_presentation_annotations: ["test_mix_pres"] 102 num_sub_mixes: 1 103 sub_mixes { 104 num_audio_elements: 1 105 audio_elements { 106 audio_element_id: 300 107 localized_element_annotations: ["test_sub_mix_0_audio_element_0"] 108 rendering_config { 109 headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO 110 } 111 element_mix_gain { 112 param_definition { 113 parameter_id: 100 114 parameter_rate: 48000 115 param_definition_mode: 1 116 reserved: 0 117 } 118 default_mix_gain: 0 119 } 120 } 121 output_mix_gain { 122 param_definition { 123 parameter_id: 100 124 parameter_rate: 48000 125 param_definition_mode: 1 126 reserved: 0 127 } 128 default_mix_gain: 0 129 } 130 num_layouts: 1 131 layouts { 132 loudness_layout { 133 layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION 134 ss_layout { 135 sound_system: SOUND_SYSTEM_A_0_2_0 136 reserved: 0 137 } 138 } 139 loudness { 140 info_type_bit_masks: [] 141 integrated_loudness: -5393 142 digital_peak: -5394 143 } 144 } 145 } 146} 147 148audio_frame_metadata { 149 wav_filename: "sine_1000_48khz.wav" 150 samples_to_trim_at_end: 0 151 samples_to_trim_at_start: 0 152 audio_element_id: 300 153 channel_metadatas: [ 154 { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 }, 155 { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 } 156 ] 157} 158 159parameter_block_metadata { 160 parameter_id: 100 161 start_timestamp: 0 162 duration: 24000 163 num_subblocks: 1 164 constant_subblock_duration: 24000 165 subblocks: [ 166 { 167 mix_gain_parameter_data { 168 animation_type: ANIMATE_STEP 169 param_data { 170 step { 171 start_point_value: 0 172 } 173 } 174 } 175 } 176 ] 177} 178 179temporal_delimiter_metadata { 180 enable_temporal_delimiters: false 181} 182