• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 using Opus with the last layer "
17    "being 7.1."
18  file_name_prefix: "test_000053"
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/param_definition_type",
29    "3.6.2/channel_audio_layer_config",
30    "3.6.2/loudspeaker_layout == Stereo",
31    "3.6.2/loudspeaker_layout == 7.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_000051"
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: 5
74  audio_substream_ids: [0, 1, 2, 3, 4]
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: 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  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: 960
103        num_subblocks: 1
104        constant_subblock_duration: 960
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_7_1_CH
122        output_gain_is_present_flag: 0
123        recon_gain_is_present_flag: 1
124        reserved_a: 0
125        substream_count: 4
126        coupled_substream_count: 2
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: -6110
177        digital_peak: -2108
178      }
179    }
180    layouts {
181      loudness_layout {
182        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
183        ss_layout {
184          sound_system: SOUND_SYSTEM_I_0_7_0
185          reserved: 0
186        }
187      }
188      loudness {
189        info_type_bit_masks: []
190        integrated_loudness: -6600
191        digital_peak: -2816
192      }
193    }
194  }
195}
196
197audio_frame_metadata {
198  # Not using every channel in the input wav file.
199  wav_filename: "audiolab-acoustic-guitar_2OA_470_ALLRAD_5s.wav"
200  samples_to_trim_at_end: 648
201  samples_to_trim_at_start: 312
202  audio_element_id: 300
203  channel_metadatas: [
204    { channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
205    { channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
206    { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
207    { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
208    { channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
209    { channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
210    { channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
211    { channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 }
212  ]
213
214}
215
216parameter_block_metadata {
217  parameter_id: 100
218  start_timestamp: 0
219  duration: 240960
220  num_subblocks: 1
221  constant_subblock_duration: 240960
222  subblocks: [
223    {
224      mix_gain_parameter_data {
225        animation_type: ANIMATE_STEP
226        param_data {
227          step {
228            start_point_value: 0
229          }
230        }
231      }
232    }
233  ]
234}
235
236temporal_delimiter_metadata {
237  enable_temporal_delimiters: false
238}
239