Exemple #1
0
gi.require_version("Gst", "1.0")
gi.require_version("Gtk", "3.0")
import pygame
import math
from gi.repository import Gst, GObject, Gtk, GLib
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLU import *
from PIL import Image

#from OpenGL import arrays
#from OpenGL import GLX

STOPREAD = False

appLock = GLib.Mutex()
appCond = GLib.Cond()
GST_initflag = False
texture0 = 0
init_GL_flag = False
angle_list = [0, 0, 0]
timer0 = 0
timer1 = 0
timer = 0

FPS_frame = 0

DEST = '127.0.0.1'

RTP_RECV_PORT0 = 5000
RTCP_RECV_PORT0 = 5001
Exemple #2
0
import gi
gi.require_version('Gst', '1.0')

from gi.repository import GObject, Gst, Gtk, Gdk, GLib
from gi.repository import GstVideo, GstApp

GObject.threads_init()
Gst.init(None)

FileBin = {
    'recsrc': None,
    'filebin': None,
    'filesink': None,
    'rec_mutex': GLib.Mutex(),
    'timer_id': 0
}

SnapshotBin = {
    'snapshotbin': None,
    'snapshotsrc': None,
    'smtpsink': None,
    'filesink': None,
    'enc': None
}

MotionBin = {'motionbin': None, 'motionsink': None}

MainPipeline = {
    'pipeline': None,
    'src': None,
    'tee': None,