--- a/src/pyams_media/interfaces/__init__.py Tue Sep 08 16:22:46 2015 +0200
+++ b/src/pyams_media/interfaces/__init__.py Tue Sep 08 16:30:58 2015 +0200
@@ -197,6 +197,14 @@
value_type=Choice(vocabulary="PyAMS media audio converters"),
required=False)
+ audio_sampling = Int(title=_("Audio frequency"),
+ description=_("A common value is 22050. Leave empty to keep original value."),
+ required=False)
+
+ audio_bitrate = Int(title=_("Audio bitrate"),
+ description=_("In kilo-bytes per second. Leave empty to keep original value."),
+ required=False)
+
def check_media_conversion(self, media):
"""Check if conversion is needed for given media"""
--- a/src/pyams_media/utility.py Tue Sep 08 16:22:46 2015 +0200
+++ b/src/pyams_media/utility.py Tue Sep 08 16:30:58 2015 +0200
@@ -44,6 +44,8 @@
video_quantisation = FieldProperty(IMediaConversionUtility['video_quantisation'])
audio_formats = FieldProperty(IMediaConversionUtility['audio_formats'])
+ audio_sampling = FieldProperty(IMediaConversionUtility['audio_sampling'])
+ audio_bitrate = FieldProperty(IMediaConversionUtility['audio_bitrate'])
def check_media_conversion(self, media):
"""Check if conversion is needed for given media"""