diff options
Diffstat (limited to 'voctocore/lib/clock.py')
-rw-r--r-- | voctocore/lib/clock.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/voctocore/lib/clock.py b/voctocore/lib/clock.py new file mode 100644 index 0000000..ed8152e --- /dev/null +++ b/voctocore/lib/clock.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 +import logging +from gi.repository import Gst, GstNet + +__all__ = ['Clock', 'NetTimeProvider'] +port = 9998 + +log = logging.getLogger('Clock') + +log.debug("Obtaining System-Clock") +Clock = Gst.SystemClock.obtain() +log.info("Using System-Clock for all Pipelines: %s", Clock) + +log.info("Starting NetTimeProvider on Port %u", port) +NetTimeProvider = GstNet.NetTimeProvider.new(Clock, None, port) |