• 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 simple example of a stereo + stereo base profile IAMF stream using "
17    "linear gain."
18  file_name_prefix: "test_000406"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2023-06-21 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: ["3.8.1/animation_type == LINEAR"]
28  base_test: "test_000400"
29}
30
31encoder_control_metadata {
32  add_build_information_tag: false
33}
34
35ia_sequence_header_metadata {
36  primary_profile: PROFILE_VERSION_BASE
37  additional_profile: PROFILE_VERSION_BASE
38}
39
40codec_config_metadata {
41  codec_config_id: 200
42  codec_config {
43    codec_id: CODEC_ID_LPCM
44    num_samples_per_frame: 1024
45    audio_roll_distance: 0
46    decoder_config_lpcm {
47      sample_format_flags: LPCM_LITTLE_ENDIAN
48      sample_size: 16
49      sample_rate: 48000
50    }
51  }
52}
53
54audio_element_metadata: [
55  {
56    audio_element_id: 300
57    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
58    reserved: 0
59    codec_config_id: 200
60    num_substreams: 1
61    audio_substream_ids: [0]
62    num_parameters: 0
63    scalable_channel_layout_config {
64      num_layers: 1
65      reserved: 0
66      channel_audio_layer_configs: [
67        {
68          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
69          output_gain_is_present_flag: 0
70          recon_gain_is_present_flag: 0
71          reserved_a: 0
72          substream_count: 1
73          coupled_substream_count: 1
74        }
75      ]
76    }
77  },
78  {
79    audio_element_id: 301
80    audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
81    reserved: 0
82    codec_config_id: 200
83    num_substreams: 1
84    audio_substream_ids: [1]
85    num_parameters: 0
86    scalable_channel_layout_config {
87      num_layers: 1
88      reserved: 0
89      channel_audio_layer_configs: [
90        {
91          loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
92          output_gain_is_present_flag: 0
93          recon_gain_is_present_flag: 0
94          reserved_a: 0
95          substream_count: 1
96          coupled_substream_count: 1
97        }
98      ]
99    }
100  }
101]
102
103mix_presentation_metadata {
104  mix_presentation_id: 42
105  count_label: 1
106  annotations_language: ["en-us"]
107  localized_presentation_annotations: ["test_mix_pres"]
108  num_sub_mixes: 1
109  sub_mixes {
110    num_audio_elements: 2
111    audio_elements: [
112      {
113        audio_element_id: 300
114        localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
115        rendering_config {
116          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
117        }
118        element_mix_gain {
119          param_definition {
120            parameter_id: 999  # Non-existent; default will be used
121            parameter_rate: 48000
122            param_definition_mode: 1
123            reserved: 0
124          }
125          default_mix_gain: -768
126        }
127      },
128      {
129        audio_element_id: 301
130        localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
131        rendering_config {
132          headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
133        }
134        element_mix_gain {
135          param_definition {
136            parameter_id: 998  # Non-existent; default will be used
137            parameter_rate: 48000
138            param_definition_mode: 1
139            reserved: 0
140          }
141          default_mix_gain: -768
142        }
143      }
144    ]
145    output_mix_gain {
146      param_definition {
147        parameter_id: 400
148        parameter_rate: 48000
149        param_definition_mode: 1
150        reserved: 0
151      }
152      default_mix_gain: 0
153    }
154    num_layouts: 1
155    layouts {
156      loudness_layout {
157        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
158        ss_layout {
159          sound_system: SOUND_SYSTEM_A_0_2_0
160          reserved: 0
161        }
162      }
163      loudness {
164        info_type_bit_masks: []
165        integrated_loudness: -5115
166        digital_peak: -1446
167      }
168    }
169  }
170}
171
172audio_frame_metadata: [
173  {
174    wav_filename: "Mechanism_5s.wav"
175    samples_to_trim_at_end: 640
176    samples_to_trim_at_start: 0
177    audio_element_id: 300
178    channel_metadatas: [
179      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
180      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
181    ]
182  },
183  {
184    wav_filename: "dialog_clip_stereo.wav"
185    samples_to_trim_at_end: 640
186    samples_to_trim_at_start: 0
187    audio_element_id: 301
188    channel_metadatas: [
189      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
190      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
191    ]
192  }
193]
194
195parameter_block_metadata {
196  parameter_id: 400
197  start_timestamp: 0
198  duration: 240640
199  num_subblocks: 1
200  constant_subblock_duration: 240640
201  subblocks: [
202    {
203      mix_gain_parameter_data {
204        animation_type: ANIMATE_LINEAR
205        param_data {
206          linear {
207            start_point_value: 0
208            end_point_value: 768
209          }
210        }
211      }
212    }
213  ]
214}
215
216temporal_delimiter_metadata {
217  enable_temporal_delimiters: false
218}
219