• 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 second-order ambisonics + stereo base profile IAMF "
17    "stream."
18  file_name_prefix: "test_000301"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2023-04-19 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.3/ambisonics_mono_config",
30    "3.7.4/default_mix_gain",
31    "4.2/Base Profile",
32    "8.5.1/Loudness Information"
33  ]
34  base_test: "test_000102"
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: 64
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_SCENE_BASED
64    reserved: 0
65    codec_config_id: 200
66    num_substreams: 9
67    audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8]
68    num_parameters: 0
69    ambisonics_config {
70      ambisonics_mode: AMBISONICS_MODE_MONO
71      ambisonics_mono_config {
72        output_channel_count: 9
73        substream_count: 9
74        channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8]
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: [9]
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: 997  # Non-existent; default will be used
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: -3689
166        digital_peak: -753
167      }
168    }
169  }
170}
171
172audio_frame_metadata: [
173  {
174    wav_filename: "Transport_TOA_5s.wav"
175    samples_to_trim_at_end: 0
176    samples_to_trim_at_start: 0
177    audio_element_id: 300
178    channel_metadatas: [
179      { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 },
180      { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 },
181      { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 },
182      { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 },
183      { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 },
184      { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 },
185      { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 },
186      { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 },
187      { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 }
188    ]
189  },
190  {
191    wav_filename: "dialog_clip_stereo.wav"
192    samples_to_trim_at_end: 0
193    samples_to_trim_at_start: 0
194    audio_element_id: 301
195    channel_metadatas: [
196      { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
197      { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
198    ]
199  }
200]
201
202temporal_delimiter_metadata {
203  enable_temporal_delimiters: false
204}
205