Skip to content

Instantly share code, notes, and snippets.

@fortizc
fortizc / print_tst.py
Last active April 27, 2023 19:25
A very simple gst plugin in python
#!/usr/local/bin/python3
# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
# This is a modified version of https://github.com/GStreamer/gst-python/blob/master/examples/plugins/python/identity.py
import gi
gi.require_version("Gst", "1.0")
gi.require_version('GstBase', '1.0')
from gi.repository import Gst, GObject, GstBase
/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.