• 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 stereo IAMF stream encoding ~22 seconds of audio using "
17    "Opus."
18  file_name_prefix: "test_000037"
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: ["6/ISOBMFF IAMF Encapsulation"]
28  base_test: "test_000020"
29  output_wav_file_bit_depth_override: 16
30}
31
32encoder_control_metadata {
33  add_build_information_tag: false
34}
35
36ia_sequence_header_metadata {
37  primary_profile: PROFILE_VERSION_SIMPLE
38  additional_profile: PROFILE_VERSION_SIMPLE
39}
40
41codec_config_metadata {
42  codec_config_id: 200
43  codec_config {
44    codec_id: CODEC_ID_OPUS
45    num_samples_per_frame: 960
46    audio_roll_distance: -4
47    decoder_config_opus {
48      version: 1
49      pre_skip: 312
50      input_sample_rate: 48000
51      opus_encoder_metadata {
52        target_bitrate_per_channel: 48000
53        application: APPLICATION_AUDIO
54        use_float_api: false
55      }
56    }
57  }
58}
59
60audio_element_metadata {
61  audio_element_id: 300
62  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
63  reserved: 0
64  codec_config_id: 200
65  num_substreams: 1
66  audio_substream_ids: [0]
67  num_parameters: 1
68  audio_element_params {
69    param_definition_type: PARAM_DEFINITION_TYPE_DEMIXING
70    demixing_param: {
71      param_definition {
72        parameter_id: 998  # Non-existent; default will be used
73        parameter_rate: 48000
74        param_definition_mode: 0
75        reserved: 0
76        duration: 960
77        num_subblocks: 1
78        constant_subblock_duration: 960
79      }
80      default_demixing_info_parameter_data: {
81        dmixp_mode: DMIXP_MODE_2
82      }
83      default_w: 0
84    }
85  }
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
102mix_presentation_metadata {
103  mix_presentation_id: 42
104  count_label: 1
105  annotations_language: ["en-us"]
106  localized_presentation_annotations: ["test_mix_pres"]
107  num_sub_mixes: 1
108  sub_mixes {
109    num_audio_elements: 1
110    audio_elements {
111      audio_element_id: 300
112      localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
113      rendering_config {
114        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
115      }
116      element_mix_gain {
117        param_definition {
118          parameter_id: 100
119          parameter_rate: 48000
120          param_definition_mode: 1
121          reserved: 0
122        }
123        default_mix_gain: 0
124      }
125    }
126    output_mix_gain {
127      param_definition {
128        parameter_id: 100
129        parameter_rate: 48000
130        param_definition_mode: 1
131        reserved: 0
132      }
133      default_mix_gain: 0
134    }
135    num_layouts: 1
136    layouts {
137      loudness_layout {
138        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
139        ss_layout {
140          sound_system: SOUND_SYSTEM_A_0_2_0
141          reserved: 0
142        }
143      }
144      loudness {
145        info_type_bit_masks: []
146        integrated_loudness: -8339
147        digital_peak: -4037
148      }
149    }
150  }
151}
152
153audio_frame_metadata {
154  # Not using every channel in the input wav file.
155  wav_filename: "audiolab-acoustic-guitar_2OA_470_ALLRAD_concat.wav"
156  samples_to_trim_at_end: 264
157  samples_to_trim_at_start: 312
158  audio_element_id: 300
159  channel_metadatas: [
160    { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
161    { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
162  ]
163}
164
165parameter_block_metadata {
166  parameter_id: 100
167  start_timestamp: 0
168  duration: 1093440
169  num_subblocks: 1
170  constant_subblock_duration: 1093440
171  subblocks: [
172    {
173      mix_gain_parameter_data {
174        animation_type: ANIMATE_STEP
175        param_data {
176          step {
177            start_point_value: 0
178          }
179        }
180      }
181    }
182  ]
183}
184
185temporal_delimiter_metadata {
186  enable_temporal_delimiters: false
187}
188