- "2.7"
# command to install dependencies
install:
- - "pip install -r requirements.txt --use-mirrors"
+# - "pip install -r requirements.txt --use-mirrors"
+ - "python setup.py install"
+
# command to run tests
script:
- - "python setup.py install"
- #- "python setup.py install"
+ - "python tests/testcomponent.py"
import timeside.encoder
import timeside.grapher
import timeside.analyzer
+import timeside.tools
from timeside.core import *
-from timeside.gstutils import *
__version__ = '0.4.2'
from timeside.core import Processor, implements, interfacedoc
from timeside.api import IDecoder
-from timeside.gstutils import *
+from timeside.tools import *
import Queue
from timeside.core import Processor, implements, interfacedoc
from timeside.api import IEncoder
-from timeside.gstutils import *
+from timeside.tools import *
class GstEncoder(Processor):
from timeside.core import Processor, implements, interfacedoc
from timeside.encoder.core import GstEncoder
from timeside.api import IEncoder
-from timeside.gstutils import *
+from timeside.tools import *
class FlacEncoder(GstEncoder):
from timeside.core import Processor, implements, interfacedoc
from timeside.encoder.core import GstEncoder
from timeside.api import IEncoder
-from timeside.gstutils import *
+from timeside.tools import *
class AacEncoder(GstEncoder):
from timeside.core import Processor, implements, interfacedoc
from timeside.encoder.core import GstEncoder
from timeside.api import IEncoder
-from timeside.gstutils import *
+from timeside.tools import *
import mutagen
from timeside.core import Processor, implements, interfacedoc
from timeside.encoder.core import GstEncoder
from timeside.api import IEncoder
-from timeside.gstutils import *
+from timeside.tools import *
class VorbisEncoder(GstEncoder):
""" gstreamer-based vorbis encoder """
from timeside.core import Processor, implements, interfacedoc
from timeside.encoder.core import GstEncoder
from timeside.api import IEncoder
-from timeside.gstutils import *
+from timeside.tools import *
class WavEncoder(GstEncoder):
+++ /dev/null
-from numpy import array, getbuffer, frombuffer
-
-import pygst
-pygst.require('0.10')
-import gst
-import gobject
-
-gobject.threads_init()
-
-def numpy_array_to_gst_buffer(frames):
- """ gstreamer buffer to numpy array conversion """
- buf = gst.Buffer(getbuffer(frames.astype("float32")))
- return buf
-
-def gst_buffer_to_numpy_array(buf, chan):
- """ gstreamer buffer to numpy array conversion """
- samples = frombuffer(buf.data, dtype='float32')
- samples.resize([len(samples)/chan, chan])
- return samples
--- /dev/null
+from numpy import array, getbuffer, frombuffer
+
+import pygst
+pygst.require('0.10')
+import gst
+import gobject
+
+gobject.threads_init()
+
+def numpy_array_to_gst_buffer(frames):
+ """ gstreamer buffer to numpy array conversion """
+ buf = gst.Buffer(getbuffer(frames.astype("float32")))
+ return buf
+
+def gst_buffer_to_numpy_array(buf, chan):
+ """ gstreamer buffer to numpy array conversion """
+ samples = frombuffer(buf.data, dtype='float32')
+ samples.resize([len(samples)/chan, chan])
+ return samples