Skip to content

Instantly share code, notes, and snippets.

💭
architecting

Dillon Erb dte

Block or report user

Report or block dte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View html5-video-streamer.js
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
*/
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'video.mp4';
View livestream
// Live video stream management for HTML5 video. Uses FFMPEG to connect to H.264 camera stream,
// Camera stream is remuxed to a MP4 stream for HTML5 video compatibility and segments are recorded for later playback
var liveStream = function (req, resp) { // handle each client request by instantiating a new FFMPEG instance
// For live streaming, create a fragmented MP4 file with empty moov (no seeking possible).
var reqUrl = url.parse(req.url, true)
var cameraName = typeof reqUrl.pathname === "string" ? reqUrl.pathname.substring(1) : undefined;
if (cameraName) {
try {
cameraName = decodeURIComponent(cameraName);
View command.txt
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
@dte
dte / WebGLOpenCloth-r67.js
Created Jul 8, 2014
Updated WebGLOpenCloth.js (https://code.google.com/p/opencloth/) to newest version of Three.js (r.67)
View WebGLOpenCloth-r67.js
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r67/three.min.js"></script>
<script src="js/Stats.js"></script>
<title>OpenCloth WebGL Demo by Movania Muhammad Mobeen</title>
</head>
<body style="background-color:#eee">
<div align=right><p><b>OpenCloth WebGL Demo</b><br>
Integrator: Explicit Euler <br>
@dte
dte / Triangle2.pde
Created May 2, 2011
Faceless Void [Processing] ... updated to kinda work...from code here: http://www.creativeapplications.net/processing/faceless-void-processing/
View Triangle2.pde
class Triangle2
{
PVector p1,p2,p3;
color c1,c2,c3;
Triangle2() {
}
Triangle2(PVector _p1, PVector _p2, PVector _p3, color _c1, color _c2, color _c3)
{
You can’t perform that action at this time.