• 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 frame-aligned stereo IAMF stream encoded with "
17    "FLAC."
18  file_name_prefix: "test_000072"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2023-07-10 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.5/Codec Config OBU Syntax and Semantics",
29    "3.11.3/FLAC Specific"
30  ]
31  base_test: "test_000005"
32}
33
34encoder_control_metadata {
35  add_build_information_tag: false
36}
37
38ia_sequence_header_metadata {
39  primary_profile: PROFILE_VERSION_SIMPLE
40  additional_profile: PROFILE_VERSION_SIMPLE
41}
42
43codec_config_metadata {
44  codec_config_id: 200
45  codec_config {
46    codec_id: CODEC_ID_FLAC
47    num_samples_per_frame: 64
48    audio_roll_distance: 0
49    decoder_config_flac: {
50      metadata_blocks: {
51        header: {
52          last_metadata_block_flag: true
53          block_type: FLAC_BLOCK_TYPE_STREAMINFO
54          metadata_data_block_length: 34
55        }
56        stream_info {
57          minimum_block_size: 64
58          maximum_block_size: 64
59          sample_rate: 48000
60          bits_per_sample: 15  # Flac interprets this as 16 bits.
61          total_samples_in_stream: 24000
62        }
63      }
64      flac_encoder_metadata {
65        compression_level: 0
66      }
67    }
68  }
69}
70
71audio_element_metadata {
72  audio_element_id: 300
73  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
74  reserved: 0
75  codec_config_id: 200
76  num_substreams: 1
77  audio_substream_ids: [0]
78  num_parameters: 0
79  scalable_channel_layout_config {
80    num_layers: 1
81    reserved: 0
82    channel_audio_layer_configs: [
83      {
84        loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
85        output_gain_is_present_flag: 0
86        recon_gain_is_present_flag: 0
87        reserved_a: 0
88        substream_count: 1
89        coupled_substream_count: 1
90      }
91    ]
92  }
93}
94
95mix_presentation_metadata {
96  mix_presentation_id: 42
97  count_label: 1
98  annotations_language: ["en-us"]
99  localized_presentation_annotations: ["test_mix_pres"]
100  num_sub_mixes: 1
101  sub_mixes {
102    num_audio_elements: 1
103    audio_elements {
104      audio_element_id: 300
105      localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
106      rendering_config {
107        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
108      }
109      element_mix_gain {
110        param_definition {
111          parameter_id: 100
112          parameter_rate: 48000
113          param_definition_mode: 1
114          reserved: 0
115        }
116        default_mix_gain: 0
117      }
118    }
119    output_mix_gain {
120      param_definition {
121        parameter_id: 100
122        parameter_rate: 48000
123        param_definition_mode: 1
124        reserved: 0
125      }
126      default_mix_gain: 0
127    }
128    num_layouts: 1
129    layouts {
130      loudness_layout {
131        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
132        ss_layout {
133          sound_system: SOUND_SYSTEM_A_0_2_0
134          reserved: 0
135        }
136      }
137      loudness {
138        info_type_bit_masks: []
139        integrated_loudness: -5393
140        digital_peak: -5394
141      }
142    }
143  }
144}
145
146audio_frame_metadata {
147  wav_filename: "sine_1000_48khz.wav"
148  samples_to_trim_at_end: 0
149  samples_to_trim_at_start: 0
150  audio_element_id: 300
151  channel_metadatas: [
152    { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
153    { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
154  ]
155}
156
157parameter_block_metadata {
158  parameter_id: 100
159  start_timestamp: 0
160  duration: 24000
161  num_subblocks: 1
162  constant_subblock_duration: 24000
163  subblocks: [
164    {
165      mix_gain_parameter_data {
166        animation_type: ANIMATE_STEP
167        param_data {
168          step {
169            start_point_value: 0
170          }
171        }
172      }
173    }
174  ]
175}
176
177temporal_delimiter_metadata {
178  enable_temporal_delimiters: false
179}
180