from timeside.core import *
-class IMediaItemAnalyzer(Interface):
+class IAnalyzer(Interface):
"""Media item analyzer driver interface"""
def get_id():
def get_unit():
"""Return the unit of the data such as "dB", "seconds", etc...
"""
-
+
def render(media_item, options=None):
"""Return the result data of the process"""
-
+
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class ChannelAnalyser(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "nb_channels"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class MeanDCShiftAnalyser(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "dc"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
import datetime
class DurationAnalyzer(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "duration"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class EncodingAnalyser(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "encoding"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class FormatAnalyser(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "format"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class MaxLevelAnalyzer(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "max_level"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class MeanLevelAnalyser(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "mean_level"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class ResolutionAnalyser(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "resolution"
# Author: Guillaume Pellerin <yomguy@parisson.com>
from timeside.analyze.core import *
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import numpy
class SampleRateAnalyzer(AudioProcessor):
"""Media item analyzer driver interface"""
- implements(IMediaItemAnalyzer)
+ implements(IAnalyzer)
def get_id(self):
return "samplerate"
from timeside.core import *
from tempfile import NamedTemporaryFile
-from timeside.analyze.api import IMediaItemAnalyzer
+from timeside.analyze.api import IAnalyzer
import os
import random
import subprocess