y5gfunc.encode.audio.utils¶
utils
¶
Functions:
| Name | Description |
|---|---|
check_audio_stream_lossless |
Checks if an audio stream from ffprobe represents a lossless format. |
Attributes:
| Name | Type | Description |
|---|---|---|
LOSSLESS_CODEC_NAMES |
|
LOSSLESS_CODEC_NAMES
module-attribute
¶
LOSSLESS_CODEC_NAMES = {'truehd', 'flac', 'alac', 'mlp', 'pcm_s16le', 'pcm_s24le', 'pcm_s32le', 'pcm_f32le', 'pcm_f64le', 'pcm_s16be', 'pcm_s24be', 'pcm_s32be', 'pcm_f32be', 'pcm_f64be', 'pcm_alaw', 'pcm_mulaw', 'pcm_u8', 'pcm_bluray'}
check_audio_stream_lossless
¶
Checks if an audio stream from ffprobe represents a lossless format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
dict
|
A dictionary representing an audio stream from ffprobe JSON. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the stream is identified as lossless, False otherwise. |