blob: fb6486c03bcf76b90fb2090db0ab217261ebfd4d (
plain)
- #!/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)
- NetTimeProvider6 = GstNet.NetTimeProvider.new(Clock, '::', port)
|