Skip to content

Instantly share code, notes, and snippets.

View robertcedwards's full-sized avatar
🖼️
Framing

Robert C Edwards robertcedwards

🖼️
Framing
View GitHub Profile
@robertcedwards
robertcedwards / gist:c08442f7e409c5c3a999dfa855aef3a2
Created October 11, 2017 01:06
VLC verbose mode for IDing webcam
Running "vlc -vvv qtcapture://" will initiate a capture window with the default camera while also outputting verbose logs. If you scroll through the logs you will at one point see a list of the available qtcapture video devices. My output looked like this:
[0000000100610128] qtcapture demux debug: qtcapture 0/2 FaceTime HD Camera (Built-in) 0xfa20000016ac850b
[0000000100610128] qtcapture demux debug: qtcapture 1/2 iSight 0xa28100413a366-video
Since I wanted to use the (old) iSight camera (after some trial and error) I added the device ID from above to the qtcapture command (I also changed the destination port to 3000). So it now looks like this:
vlc qtcapture://0xa28100413a366-video --sout '#transcode{vcodec=MJPG,vb=800,scale=1,fps=5,acodec=none,width=640,height=480}:std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:3000/webcam.mjpg}'
I haven't tested it yet, but as far as I can tell timelapse should work by doing the following:
1. Install ffmpeg wi
@robertcedwards
robertcedwards / gist:51734d060ad72bc6ac09b5083bf66513
Created October 11, 2017 01:05
Stream MacOS webcam via VLC for OCTOprint, etc.
vlc qtcapture:// --sout '#transcode{vcodec=MJPG,vb=800,scale=1,fps=5,acodec=none,width=640,height=480}:std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:1234/webcam.mjpg}'

Ingredients Main Ingredients:

Organic mini cucumbers, enough to fill a jar of your choice For the Brine Solution:

Raw apple cider vinegar 2 tablespoons of Dr. Mercola’s Himalayan Salt Dr. Mercola’s Kinetic Culture Starter packet for vegetables Dried or Fresh Spices Blend:

@robertcedwards
robertcedwards / gist:4ec6c1a676ab79541f84abdfbff2f3d4
Created July 2, 2017 15:24
A4988 Stepper Motor Driver how to
http://howtomechatronics.com/tutorials/arduino/how-to-control-stepper-motor-with-a4988-driver-and-arduino/
@robertcedwards
robertcedwards / quickstart.sh
Created June 12, 2017 14:43
Simple HTTP Server - Python Quickstart
python -m SimpleHTTPServer <port>
@robertcedwards
robertcedwards / TinyTS_v11.ino
Created March 8, 2017 02:22
The Tiny-TS Touch Synthesizer
// (*) All in the spirit of open-source and open-hardware
// Janost 2016 Sweden
// The Tiny-TS Touch Synthesizer
// https://janostman.wordpress.com/the-tiny-ts-diy-touch-synthesizer/
// Copyright 2016 DSP Synthesizers Sweden.
//
// Author: Jan Ostman
//
// This program is free software: you can redistribute it and/or modify
@robertcedwards
robertcedwards / mighty.ino
Created February 24, 2017 13:57
Multiple Effects back from GUI for Mighty Midi Machine
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s2; //xy=56.142845153808594,137
AudioEffectFade fade1; //xy=249,28
AudioEffectDelay delay1; //xy=248,324
@robertcedwards
robertcedwards / int_to_const-char.ino
Created February 8, 2017 17:35
Arduino convert int to 5 character const char
current_SampleRate = current_SampleRate / 2; // half the sample rate each time
char c[5];
String str;
str = String(current_SampleRate);
str.toCharArray(c, 5);
u8x8.draw2x2String(0, 5, c);
u8x8.drawString(8, 5, "Hz");
@robertcedwards
robertcedwards / gist:8c42ad99b167192c272fd8a22cdae636
Created February 8, 2017 17:34
Teensy Audio Board - Pins Used
FMI:
The audio board uses the following pins.
6 - MEMCS
7 - MOSI
9 - BCLK
10 - SDCS
11 - MCLK
12 - MISO
13 - RX
14 - SCLK
@robertcedwards
robertcedwards / Arduino-midi-code.ino
Created October 27, 2016 18:47
Arduino midi library example with FastLED library
#include <FastLED.h>
#define NUM_LEDS 10
#define LED 13 //Debug LED
#define DATA_PIN 5 // Green
#define CLOCK_PIN 6 // Blue
CRGB leds[NUM_LEDS];
int ledPin = 13;