• 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 encoded using Opus, with an incorrect Opus "
17    "version."
18  file_name_prefix: "test_000025"
19  is_valid: false
20  is_valid_to_decode: false
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2023-05-05 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.9/Audio Frame OBU Syntax and Semantics",
29    "3.11.1/version"
30  ]
31  base_test: "test_000020"
32  output_wav_file_bit_depth_override: 16
33}
34
35encoder_control_metadata {
36  add_build_information_tag: false
37}
38
39ia_sequence_header_metadata {
40  primary_profile: PROFILE_VERSION_SIMPLE
41  additional_profile: PROFILE_VERSION_SIMPLE
42}
43
44codec_config_metadata {
45  codec_config_id: 200
46  codec_config {
47    codec_id: CODEC_ID_OPUS
48    num_samples_per_frame: 960
49    audio_roll_distance: -4
50    decoder_config_opus {
51      version: 16
52      pre_skip: 312
53      input_sample_rate: 48000
54      opus_encoder_metadata {
55        target_bitrate_per_channel: 48000
56        application: APPLICATION_AUDIO
57        use_float_api: false
58      }
59    }
60  }
61}
62
63audio_element_metadata {
64  audio_element_id: 300
65  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
66  reserved: 0
67  codec_config_id: 200
68  num_substreams: 1
69  audio_substream_ids: [0]
70  num_parameters: 0
71  scalable_channel_layout_config {
72    num_layers: 1
73    reserved: 0
74    channel_audio_layer_configs: [
75      {
76        loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
77        output_gain_is_present_flag: 0
78        recon_gain_is_present_flag: 0
79        reserved_a: 0
80        substream_count: 1
81        coupled_substream_count: 1
82      }
83    ]
84  }
85}
86
87mix_presentation_metadata {
88  mix_presentation_id: 42
89  count_label: 1
90  annotations_language: ["en-us"]
91  localized_presentation_annotations: ["test_mix_pres"]
92  num_sub_mixes: 1
93  sub_mixes {
94    num_audio_elements: 1
95    audio_elements {
96      audio_element_id: 300
97      localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
98      rendering_config {
99        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
100      }
101      element_mix_gain {
102        param_definition {
103          parameter_id: 100
104          parameter_rate: 48000
105          param_definition_mode: 1
106          reserved: 0
107        }
108        default_mix_gain: 0
109      }
110    }
111    output_mix_gain {
112      param_definition {
113        parameter_id: 100
114        parameter_rate: 48000
115        param_definition_mode: 1
116        reserved: 0
117      }
118      default_mix_gain: 0
119    }
120    num_layouts: 1
121    layouts {
122      loudness_layout {
123        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
124        ss_layout {
125          sound_system: SOUND_SYSTEM_A_0_2_0
126          reserved: 0
127        }
128      }
129      loudness {
130        info_type_bit_masks: []
131        integrated_loudness: -3138
132        digital_peak: -2639
133      }
134    }
135  }
136}
137
138audio_frame_metadata {
139  wav_filename: "sawtooth_10000_stereo_48khz.wav"
140  samples_to_trim_at_end: 648
141  samples_to_trim_at_start: 312
142  audio_element_id: 300
143  channel_metadatas: [
144    { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
145    { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
146  ]
147}
148
149parameter_block_metadata {
150  parameter_id: 100
151  start_timestamp: 0
152  duration: 24960
153  num_subblocks: 1
154  constant_subblock_duration: 24960
155  subblocks: [
156    {
157      mix_gain_parameter_data {
158        animation_type: ANIMATE_STEP
159        param_data {
160          step {
161            start_point_value: 0
162          }
163        }
164      }
165    }
166  ]
167}
168
169temporal_delimiter_metadata {
170  enable_temporal_delimiters: false
171}
172