Skip to content

Instantly share code, notes, and snippets.

View misaelnieto's full-sized avatar
🏠
Working from home

Noe Nieto misaelnieto

🏠
Working from home
View GitHub Profile
@misaelnieto
misaelnieto / server.py
Created May 4, 2011 00:17
Gunicorn with gstreamer to make a MJPEG IP Camera
#Python imports
#GStreamer imports
import pygst
pygst.require("0.10")
import gst
class MjpegCamera(object):
pipeline = gst.parse_launch("videotestsrc ! jpegenc ! multipartmux boundary=spionisto ! appsink name=endpoint")
def __init__(self):