• 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 7.1.4 IAMF stream using `default_demixing_info_parameter_data`, "
17    "where the loudness is measured in Stereo, 7.1.2, and 7.1.4."
18  file_name_prefix: "test_000070"
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: [
28    "3.6/demixing_info",
29    "3.6/default_demixing_info_parameter_data",
30    "3.6/default_w",
31    "3.6/num_parameters",
32    "3.6.2/loudspeaker_layout == 7.1.4",
33    "3.7/loudness_layout == Stereo",
34    "3.7/loudness_layout == 7.1.2",
35    "3.7/loudness_layout == 7.1.4",
36    "3.7.6/Layout Syntax and Semantics",
37    "7/IAMF Processing",
38    "7.3.2.1/Rendering a Channel-Based Audio Element to Loudspeakers",
39    "7.5.1/Loudness Normalization",
40    "7.5.2/Limiter"
41  ]
42  base_test: "test_000209"
43}
44
45encoder_control_metadata {
46  add_build_information_tag: false
47}
48
49ia_sequence_header_metadata {
50  primary_profile: PROFILE_VERSION_SIMPLE
51  additional_profile: PROFILE_VERSION_SIMPLE
52}
53
54codec_config_metadata {
55  codec_config_id: 200
56  codec_config {
57    codec_id: CODEC_ID_LPCM
58    num_samples_per_frame: 1024
59    audio_roll_distance: 0
60    decoder_config_lpcm {
61      sample_format_flags: LPCM_LITTLE_ENDIAN
62      sample_size: 16
63      sample_rate: 48000
64    }
65  }
66}
67
68audio_element_metadata {
69  audio_element_id: 300
70  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
71  reserved: 0
72  codec_config_id: 200
73  num_substreams: 7
74  audio_substream_ids: [0, 1, 2, 3, 4, 5, 6]
75  num_parameters: 1
76  audio_element_params {
77    param_definition_type: PARAM_DEFINITION_TYPE_DEMIXING
78    demixing_param: {
79      param_definition {
80        parameter_id: 999  # Non-existent; default will be used
81        parameter_rate: 48000
82        param_definition_mode: 0
83        reserved: 0
84        duration: 1024
85        num_subblocks: 1
86        constant_subblock_duration: 1024
87      }
88      default_demixing_info_parameter_data: {
89        dmixp_mode: DMIXP_MODE_1
90      }
91      default_w: 0
92    }
93  }
94  scalable_channel_layout_config {
95    num_layers: 1
96    reserved: 0
97    channel_audio_layer_configs: [
98      {
99        loudspeaker_layout: LOUDSPEAKER_LAYOUT_7_1_4_CH
100        output_gain_is_present_flag: 0
101        recon_gain_is_present_flag: 0
102        reserved_a: 0
103        substream_count: 7
104        coupled_substream_count: 5
105      }
106    ]
107  }
108}
109
110mix_presentation_metadata {
111  mix_presentation_id: 42
112  count_label: 1
113  annotations_language: ["en-us"]
114  localized_presentation_annotations: ["test_mix_pres"]
115  num_sub_mixes: 1
116  sub_mixes {
117    num_audio_elements: 1
118    audio_elements {
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: 998  # Non-existent; default will be used
127          parameter_rate: 48000
128          param_definition_mode: 1
129          reserved: 0
130        }
131        default_mix_gain: 0
132      }
133    }
134    output_mix_gain {
135      param_definition {
136        parameter_id: 997  # Non-existent; default will be used
137        parameter_rate: 48000
138        param_definition_mode: 1
139        reserved: 0
140      }
141      default_mix_gain: 0
142    }
143    num_layouts: 3
144    layouts {
145      loudness_layout {
146        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
147        ss_layout {
148          sound_system: SOUND_SYSTEM_A_0_2_0
149          reserved: 0
150        }
151      }
152      loudness {
153        info_type_bit_masks: []
154        integrated_loudness: -4013
155        digital_peak: 0
156      }
157    }
158    layouts {
159      loudness_layout {
160        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
161        ss_layout {
162          sound_system: SOUND_SYSTEM_10_2_7_0
163          reserved: 0
164        }
165      }
166      loudness {
167        info_type_bit_masks: []
168        integrated_loudness: -4301
169        digital_peak: -998
170      }
171    }
172    layouts {
173      loudness_layout {
174        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
175        ss_layout {
176          sound_system: SOUND_SYSTEM_J_4_7_0
177          reserved: 0
178        }
179      }
180      loudness {
181        info_type_bit_masks: []
182        integrated_loudness: -4112
183        digital_peak: -998
184      }
185    }
186  }
187}
188
189audio_frame_metadata {
190  wav_filename: "Mechanism_5s.wav"
191  samples_to_trim_at_end: 640
192  samples_to_trim_at_start: 0
193  audio_element_id: 300
194  channel_metadatas: [
195    { channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
196    { channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
197    { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
198    { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
199    { channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
200    { channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
201    { channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
202    { channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 },
203    { channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
204    { channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
205    { channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
206    { channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 }
207  ]
208}
209
210temporal_delimiter_metadata {
211  enable_temporal_delimiters: false
212}
213