def __init__(self, vsource, asource, previewsink):
     SBinManager.__init__(self)
     profile = OggRecordingProfile()
     self.encoder = encoder = OggEncoder(filename="/tmp/test", profile=profile)
     self.add_many(vsource, asource, previewsink, encoder)
     print(self.pipeline_desc)
     PipelineManager.__init__(self, self.pipeline_desc)
Ejemplo n.º 2
0
 def __init__(self, vsource, asource, previewsink):
     SBinManager.__init__(self)
     profile = OggRecordingProfile()
     self.encoder = encoder = OggEncoder(filename="/tmp/test",
                                         profile=profile)
     self.add_many(vsource, asource, previewsink, encoder)
     print(self.pipeline_desc)
     PipelineManager.__init__(self, self.pipeline_desc)
Ejemplo n.º 3
0
 def __init__(self, filename):
     SBinManager.__init__(self)
     easyevent.User.__init__(self)
     self.progress = ProgressInfo()
     self.check_for_compat = False
     self.filename = filename
     self.size = 0
     self.is_running = False
     self.register_event("encoding_started", "encoding_stopped")
Ejemplo n.º 4
0
 def __init__(self, filename):
     SBinManager.__init__(self)
     easyevent.User.__init__(self)
     self.progress = ProgressInfo()
     self.check_for_compat = False
     self.filename = filename
     self.size = 0
     self.is_running = False
     self.register_event("encoding_started", "encoding_stopped")
Ejemplo n.º 5
0
from gstmanager1.sbins.sources.videotest import VideoTestSource
from gstmanager1.sbinmanager import SBinManager

logging.basicConfig(
    level=getattr(logging, "DEBUG"),
    format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
    stream=sys.stderr)

v = VideoTestSource()

s = XImageSink()

s2 = AudioTestSource()

s3 = AlsaSink()

e = OggEncoder("/tmp/test.ogg")

man = SBinManager()

man.add_many(v, s, s2, s3, e)

if __name__ == '__main__':

    pipelinel = PipelineManager(man.pipeline_desc)
    pipelinel.run()
    GObject.timeout_add(2000, pipelinel.send_eos)
    GObject.timeout_add(3500, man.get_pipeline)
    main_loop = GObject.MainLoop()
    main_loop.run()
Ejemplo n.º 6
0
from gstmanager1.sbinmanager import SBinManager

logging.basicConfig(
    level=getattr(logging, "DEBUG"),
    format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
    stream=sys.stderr
)

v = VideoTestSource()

s = XImageSink()

s2 = AudioTestSource()

s3 = AlsaSink()

e = OggEncoder("/tmp/test.ogg")

man = SBinManager()

man.add_many(v, s, s2, s3, e)

if __name__ == '__main__':

    pipelinel = PipelineManager(man.pipeline_desc)
    pipelinel.run()
    GObject.timeout_add(2000, pipelinel.send_eos)
    GObject.timeout_add(3500, man.get_pipeline)
    main_loop = GObject.MainLoop()
    main_loop.run()