module pixeltable.functions.audio
Pixeltable UDFs forAudioType.
udf get_metadata()
audio(Audio): The audio to get metadata for.
Json: Adictsuch as the following:
audio_col column of the table tbl:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
AudioType.
get_metadata(audio: Audio) -> Json
audio (Audio): The audio to get metadata for.Json: A dict such as the following:
{
'size': 2568827,
'streams': [
{
'type': 'audio',
'frames': 0,
'duration': 2646000,
'metadata': {},
'time_base': 2.2675736961451248e-05,
'codec_context': {
'name': 'flac',
'profile': None,
'channels': 1,
'codec_tag': '\x00\x00\x00\x00',
},
'duration_seconds': 60.0,
}
],
'bit_rate': 342510,
'metadata': {'encoder': 'Lavf61.1.100'},
'bit_exact': False,
}
audio_col column of the table tbl:
tbl.select(tbl.audio_col.get_metadata()).collect()
Was this page helpful?