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