aboutsummaryrefslogtreecommitdiff
path: root/voctocore/lib/clock.py
blob: fb6486c03bcf76b90fb2090db0ab217261ebfd4d (plain)
  1. #!/usr/bin/python3
  2. import logging
  3. from gi.repository import Gst, GstNet
  4. __all__ = ['Clock', 'NetTimeProvider']
  5. port = 9998
  6. log = logging.getLogger('Clock')
  7. log.debug("Obtaining System-Clock")
  8. Clock = Gst.SystemClock.obtain()
  9. log.info("Using System-Clock for all Pipelines: %s", Clock)
  10. log.info("Starting NetTimeProvider on Port %u", port)
  11. NetTimeProvider6 = GstNet.NetTimeProvider.new(Clock, '::', port)