diff options
author | MaZderMind <git@mazdermind.de> | 2015-11-17 08:34:40 +0100 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-11-17 08:34:40 +0100 |
commit | 88afa4789cc65c0251a4a201828a49730b825473 (patch) | |
tree | 6643c9d2b1e85e7d4fd20bb5a6cc1745bed3a585 /voctocore/experiments/avsync.py | |
parent | 2fb65a153127288c5c7be22339bd2c7a4018190e (diff) |
remove experiments folder
Diffstat (limited to 'voctocore/experiments/avsync.py')
-rwxr-xr-x | voctocore/experiments/avsync.py | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/voctocore/experiments/avsync.py b/voctocore/experiments/avsync.py deleted file mode 100755 index 91ac76d..0000000 --- a/voctocore/experiments/avsync.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/python3 -import gi, time -import socket - -# import GStreamer and GTK-Helper classes -gi.require_version('Gst', '1.0') -from gi.repository import GLib, Gst, GObject - -# init GObject before importing local classes -GObject.threads_init() -Gst.init(None) - -class Example: - def __init__(self): - self.mainloop = GObject.MainLoop() - - self.src = Gst.parse_launch(""" - tcpserversrc port=10000 ! - matroskademux name=demux - - demux. ! - audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000,channel-mask=(bitmask)0x3 ! - queue ! - tee name=atee - - atee. ! queue ! interaudiosink channel=audio_cam1_mixer - atee. ! queue ! interaudiosink channel=audio_cam1_mirror - - demux. ! - video/x-raw,format=I420,width=800,height=450,framerate=25/1 ! - queue ! - tee name=vtee - - vtee. ! queue ! intervideosink channel=video_cam1_mixer - vtee. ! queue ! intervideosink channel=video_cam1_mirror - """) - - self.sink = Gst.parse_launch(""" - interaudiosrc channel=audio_cam1_mirror ! - audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000,channel-mask=(bitmask)0x3 ! - queue ! - mux. - - intervideosrc channel=video_cam1_mirror ! - video/x-raw,format=I420,width=800,height=450,framerate=25/1 ! - queue ! - mux. - - matroskamux - name=mux - streamable=true - writing-app=Voctomix-AVRawOutput ! - - tcpserversink port=11000 - """) - - def run(self): - self.src.set_state(Gst.State.PLAYING) - self.sink.set_state(Gst.State.PLAYING) - self.mainloop.run() - - -example = Example() -example.run() |