• 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_5dot1dot2.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_L_5 },
29    { channel_id: 1 channel_label: CHANNEL_LABEL_R_5 },
30    { channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
31    { channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
32    { channel_id: 4 channel_label: CHANNEL_LABEL_LS_5 },
33    { channel_id: 5 channel_label: CHANNEL_LABEL_RS_5 },
34    { channel_id: 6 channel_label: CHANNEL_LABEL_LTF_2 },
35    { channel_id: 7 channel_label: CHANNEL_LABEL_RTF_2 }
36  ]
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_LPCM
48    num_samples_per_frame: 1024
49    decoder_config_lpcm {
50      sample_format_flags: LPCM_LITTLE_ENDIAN
51      sample_size: 24
52      sample_rate: 48000
53    }
54  }
55}
56
57audio_element_metadata {
58  audio_element_id: 300
59  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
60  reserved: 0
61  codec_config_id: 200
62  num_substreams: 5
63  audio_substream_ids: [0, 1, 2, 3, 4]
64  num_parameters: 0
65  scalable_channel_layout_config {
66    num_layers: 1
67    reserved: 0
68    channel_audio_layer_configs: [
69      {
70        loudspeaker_layout: LOUDSPEAKER_LAYOUT_5_1_2_CH
71        output_gain_is_present_flag: 0
72        recon_gain_is_present_flag: 0
73        reserved_a: 0
74        substream_count: 5
75        coupled_substream_count: 3
76      }
77    ]
78  }
79}
80
81mix_presentation_metadata {
82  mix_presentation_id: 42
83  count_label: 1
84  annotations_language: ["en-us"]
85  localized_presentation_annotations: ["Default Mix Presentation"]
86  num_sub_mixes: 1
87  sub_mixes {
88    num_audio_elements: 1
89    audio_elements {
90      audio_element_id: 300
91      localized_element_annotations: ["5.1.2"]
92      rendering_config {
93        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
94      }
95      element_mix_gain {
96        param_definition {
97          parameter_id: 999  # Non-existent; default will be used
98          parameter_rate: 48000
99          param_definition_mode: 1
100          reserved: 0
101        }
102        default_mix_gain: 0
103      }
104    }
105    output_mix_gain {
106      param_definition {
107        parameter_id: 998  # Non-existent; default will be used
108        parameter_rate: 48000
109        param_definition_mode: 1
110        reserved: 0
111      }
112      default_mix_gain: 0
113    }
114    num_layouts: 2
115    layouts {
116      loudness_layout {
117        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
118        ss_layout {
119          sound_system: SOUND_SYSTEM_A_0_2_0
120          reserved: 0
121        }
122      }
123      loudness {
124        info_type_bit_masks: []
125      }
126    }
127    layouts {
128      loudness_layout {
129        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
130        ss_layout {
131          sound_system: SOUND_SYSTEM_C_2_5_0
132          reserved: 0
133        }
134      }
135      loudness {
136        info_type_bit_masks: []
137      }
138    }
139  }
140}
141
142temporal_delimiter_metadata {
143  enable_temporal_delimiters: false
144}
145