• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024, 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: "Template. Fill in `file_name_prefix` and `wav_filename` to encode a file."
16  file_name_prefix: "TEMPLATE"
17  is_valid: true
18}
19
20audio_frame_metadata {
21  wav_filename: "TEMPLATE_TOA.wav"
22  samples_to_trim_at_end_includes_padding: false
23  samples_to_trim_at_start_includes_codec_delay: false
24  samples_to_trim_at_end: 0
25  samples_to_trim_at_start: 0
26  audio_element_id: 300
27  channel_metadatas: [
28    { channel_id: 0 channel_label: CHANNEL_LABEL_A_0 },
29    { channel_id: 1 channel_label: CHANNEL_LABEL_A_1 },
30    { channel_id: 2 channel_label: CHANNEL_LABEL_A_2 },
31    { channel_id: 3 channel_label: CHANNEL_LABEL_A_3 },
32    { channel_id: 4 channel_label: CHANNEL_LABEL_A_4 },
33    { channel_id: 5 channel_label: CHANNEL_LABEL_A_5 },
34    { channel_id: 6 channel_label: CHANNEL_LABEL_A_6 },
35    { channel_id: 7 channel_label: CHANNEL_LABEL_A_7 },
36    { channel_id: 8 channel_label: CHANNEL_LABEL_A_8 },
37    { channel_id: 9 channel_label: CHANNEL_LABEL_A_9 },
38    { channel_id: 10 channel_label: CHANNEL_LABEL_A_10 },
39    { channel_id: 11 channel_label: CHANNEL_LABEL_A_11 },
40    { channel_id: 12 channel_label: CHANNEL_LABEL_A_12 },
41    { channel_id: 13 channel_label: CHANNEL_LABEL_A_13 },
42    { channel_id: 14 channel_label: CHANNEL_LABEL_A_14 },
43    { channel_id: 15 channel_label: CHANNEL_LABEL_A_15 }
44  ]
45}
46
47ia_sequence_header_metadata {
48  primary_profile: PROFILE_VERSION_SIMPLE
49  additional_profile: PROFILE_VERSION_SIMPLE
50}
51
52codec_config_metadata {
53  codec_config_id: 200
54  codec_config {
55    codec_id: CODEC_ID_LPCM
56    num_samples_per_frame: 1024
57    decoder_config_lpcm {
58      sample_format_flags: LPCM_LITTLE_ENDIAN
59      sample_size: 24
60      sample_rate: 48000
61    }
62  }
63}
64
65audio_element_metadata {
66  audio_element_id: 300
67  audio_element_type: AUDIO_ELEMENT_SCENE_BASED
68  reserved: 0
69  codec_config_id: 200
70  num_substreams: 16
71  audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
72  num_parameters: 0
73  ambisonics_config {
74    ambisonics_mode: AMBISONICS_MODE_MONO
75    ambisonics_mono_config {
76      output_channel_count: 16
77      substream_count: 16
78      channel_mapping: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
79    }
80  }
81}
82
83mix_presentation_metadata {
84  mix_presentation_id: 42
85  count_label: 1
86  annotations_language: ["en-us"]
87  localized_presentation_annotations: ["Default Mix Presentation"]
88  num_sub_mixes: 1
89  sub_mixes {
90    num_audio_elements: 1
91    audio_elements {
92      audio_element_id: 300
93      localized_element_annotations: ["Third-order Ambisonics"]
94      rendering_config {
95        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
96      }
97      element_mix_gain {
98        param_definition {
99          parameter_id: 999  # Non-existent; default will be used
100          parameter_rate: 48000
101          param_definition_mode: 1
102          reserved: 0
103        }
104        default_mix_gain: 0
105      }
106    }
107    output_mix_gain {
108      param_definition {
109        parameter_id: 998  # Non-existent; default will be used
110        parameter_rate: 48000
111        param_definition_mode: 1
112        reserved: 0
113      }
114      default_mix_gain: 0
115    }
116    num_layouts: 3
117    layouts {
118      loudness_layout {
119        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
120        ss_layout {
121          sound_system: SOUND_SYSTEM_A_0_2_0
122          reserved: 0
123        }
124      }
125      loudness {
126        info_type_bit_masks: []
127      }
128    }
129    layouts {
130      loudness_layout {
131        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
132        ss_layout {
133          sound_system: SOUND_SYSTEM_B_0_5_0
134          reserved: 0
135        }
136      }
137      loudness {
138        info_type_bit_masks: []
139      }
140    }
141    layouts {
142      loudness_layout {
143        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
144        ss_layout {
145          sound_system: SOUND_SYSTEM_J_4_7_0
146          reserved: 0
147        }
148      }
149      loudness {
150        info_type_bit_masks: []
151      }
152    }
153  }
154}
155
156temporal_delimiter_metadata {
157  enable_temporal_delimiters: false
158}
159