aboutsummaryrefslogtreecommitdiff
path: root/voctocore/lib/avrawoutput.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/lib/avrawoutput.py')
-rw-r--r--voctocore/lib/avrawoutput.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/voctocore/lib/avrawoutput.py b/voctocore/lib/avrawoutput.py
index 62a03d2..4603c30 100644
--- a/voctocore/lib/avrawoutput.py
+++ b/voctocore/lib/avrawoutput.py
@@ -3,6 +3,7 @@ from gi.repository import Gst
from lib.config import Config
from lib.tcpmulticonnection import TCPMultiConnection
+from lib.clock import Clock
class AVRawOutput(TCPMultiConnection):
def __init__(self, channel, port):
@@ -12,13 +13,13 @@ class AVRawOutput(TCPMultiConnection):
self.channel = channel
pipeline = """
- interaudiosrc channel=audio_{channel} !
- {acaps} !
+ intervideosrc channel=video_{channel} !
+ {vcaps} !
queue !
mux.
- intervideosrc channel=video_{channel} !
- {vcaps} !
+ interaudiosrc channel=audio_{channel} !
+ {acaps} !
queue !
mux.
@@ -28,6 +29,7 @@ class AVRawOutput(TCPMultiConnection):
writing-app=Voctomix-AVRawOutput !
multifdsink
+ blocksize=1048576
buffers-max=500
sync-method=next-keyframe
name=fd
@@ -38,6 +40,7 @@ class AVRawOutput(TCPMultiConnection):
)
self.log.debug('Creating Output-Pipeline:\n%s', pipeline)
self.outputPipeline = Gst.parse_launch(pipeline)
+ self.outputPipeline.use_clock(Clock)
self.log.debug('Binding Error & End-of-Stream-Signal on Output-Pipeline')
self.outputPipeline.bus.add_signal_watch()