Skip to content

Instantly share code, notes, and snippets.

View Circuitsoft's full-sized avatar

Alex Austin Circuitsoft

View GitHub Profile
@Circuitsoft
Circuitsoft / test_ts.py
Created August 13, 2018 17:08
Timestamping test with GStreamer
#!/usr/bin/env python3
import sys, os
os.environ['GST_PLUGIN_PATH'] = '../build'
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst, GObject
import json, pprint, pdb, urllib.request, dateutil.parser
@Circuitsoft
Circuitsoft / vidview.py
Last active December 20, 2015 00:29
Trying to view a video one frame at a time. It works now that I make sure a reference to the buffer string always exists, via containing it in the deque.
#!/usr/bin/env python
import sys, os
import pygst
pygst.require("0.10")
import gst
import collections
import glib
import inspect
@Circuitsoft
Circuitsoft / Makefile
Created November 1, 2012 22:44
ld incremental help
all: out-r.o out-c.o
out-r.o: out-1.o out-2.o
ld -r -o $@ $^
@Circuitsoft
Circuitsoft / Output
Created August 4, 2011 22:02
Capture single image V4L2
Driver Caps:
Driver: "omap3"
Card: "omap3/mt9v032//"
Bus: ""
Version: 0.0
Capabilities: 04000001
Camera Cropping:
Bounds: 752x480+0+0
Default: 752x480+0+0
Aspect: 1/1
import os, time
import subprocess
class repo:
def __init__(self, repodir="."):
self.repodir=repodir
def __callgit(self, cmd, *args):
command = ['git', cmd]
for a in args: