pyams_media.interfaces
package ⊞¶
-
interface
pyams_media.interfaces.
IAudioType
[source]¶ Audio content-type interface
-
audio_type
¶ Audio content type
-
-
interface
pyams_media.interfaces.
IMediaAudioConverter
[source]¶ Extends:
pyams_media.interfaces.IMediaConverter
Media audio converter
-
interface
pyams_media.interfaces.
IMediaConversion
[source]¶ Marker interface for already converted media files
-
interface
pyams_media.interfaces.
IMediaConversionUtility
[source]¶ Media conversion client interface
-
zodb_name
¶ ZODB connection name
Name of ZODB connection defining converter connection
Implementation: zope.schema.Choice
Read Only: False Required: False Default Value: ‘’
-
video_formats
¶ Video formats conversions
Published video files will be automatically converted to this format
Implementation: zope.schema.List
Read Only: False Required: False Default Value: None Allowed Type: list
Value Type
Implementation: zope.schema.Choice
Read Only: False Required: True Default Value: None
-
video_frame_size
¶ Video frames size
Leave empty to keep original frame size…
Implementation: zope.schema.List
Read Only: False Required: True Default Value: None Allowed Type: list
Value Type
Implementation: zope.schema.Choice
Read Only: False Required: True Default Value: None
-
video_bitrate
¶ Video bitrate
In kilo-bytes per second. Leave empty to keep original value
Implementation: zope.schema.Int
Read Only: False Required: False Default Value: None Allowed Type: int
-
video_quantisation
¶ Video quantisation scale
Lower value indicates higher quality
Implementation: zope.schema.Int
Read Only: False Required: False Default Value: 1 Allowed Type: int
-
video_audio_sampling
¶ Video audio frequency
A common value is 22050. Leave empty to keep original value.
Implementation: zope.schema.Int
Read Only: False Required: False Default Value: None Allowed Type: int
-
video_audio_bitrate
¶ Video audio bitrate
In kilo-bytes per second. Leave empty to keep original value.
Implementation: zope.schema.Int
Read Only: False Required: False Default Value: None Allowed Type: int
-
audio_formats
¶ Audio formats conversions
Published audio files will be automatically converted to this format
Implementation: zope.schema.List
Read Only: False Required: False Default Value: None Allowed Type: list
Value Type
Implementation: zope.schema.Choice
Read Only: False Required: True Default Value: None
-
audio_sampling
¶ Audio frequency
A common value is 22050. Leave empty to keep original value.
Implementation: zope.schema.Int
Read Only: False Required: False Default Value: None Allowed Type: int
-
audio_bitrate
¶ Audio bitrate
In kilo-bytes per second. Leave empty to keep original value.
Implementation: zope.schema.Int
Read Only: False Required: False Default Value: None Allowed Type: int
-
get_socket
(self)¶ Get 0MQ socket matching utility settings
-
check_media_conversion
(self, media)¶ Check if conversion is needed for given media
-
convert
(self, media, format)¶ Convert given media to requested format
-
-
interface
pyams_media.interfaces.
IMediaConversions
[source]¶ Media conversions interface
-
add_conversion
(self, conversion, format, extension=None, width=None)¶ Add given conversion to media
-
get_conversions
(self, with_source=False, order=None)¶ Get current list of media conversions
-
get_conversion_width
(self, name)¶ Get conversion width for given frame size
-
has_conversion
(self, formats)¶ Check if one of given formats is available in conversions
-
-
interface
pyams_media.interfaces.
IMediaConverter
[source]¶ Media converter interface
-
label
¶ Media converter label
-
format
¶ Media converter target format
-
convert
(self, media)¶ Convert media to format handled by given converter
-
-
interface
pyams_media.interfaces.
IMediaInfo
[source]¶ Media file info interface
-
infos
¶ Complete media info dictionary
-
-
interface
pyams_media.interfaces.
IMediaVideoConverter
[source]¶ Extends:
pyams_media.interfaces.IMediaConverter
Media video converter