Skip to content

Instantly share code, notes, and snippets.

View camb416's full-sized avatar

Cameron Browning camb416

View GitHub Profile
@camb416
camb416 / add-label-to-video.ipynb
Created December 19, 2023 15:06
Add a label to a video in Colab with ffmpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@camb416
camb416 / keeb.ahk
Last active January 23, 2024 19:15
; Cameron's Autohotkey defaults
; place this file in your `shell:startup` folder
; requires autohotkey. Installed in provisioning. See https://gist.github.com/camb416/8109a6547b346658bfc2b39be588099a
; Keep that Caps off
SetCapsLockState, AlwaysOff
; Mac Muscle Memory for Spotlight search
; Maps Cmd-Space to just Win (Start Menu)
LWin & Space::
@camb416
camb416 / provision_ct_workstation.bat
Last active January 23, 2024 19:14
Provision a Creative Technology Windows Workstation
:: Provision a Creative Technology Windows Workstation
:: 2024 Cameron Browning
:: Head of Creative Tech, BUCK
:: https://gist.github.com/camb416/8109a6547b346658bfc2b39be588099a
::
:: Before you run:
:: Install chocolatey. Instructions here: https://chocolatey.org/install
:: Don't forget to run in Administrator mode
:: Every time you need to install something essential, add to this file.
@camb416
camb416 / ffmpeg_x265_segfault
Created April 16, 2018 19:22
segfault when converting to H.265
cam@DESKTOP-AJKAVAA:/mnt/c/Users/cam/Downloads$ ffmpeg -i bbb_sunflower_2160p_60fps_normal.mp4 -c:a copy -c:v libx265 out.mp4
ffmpeg version 2.8.14-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-l
@camb416
camb416 / trigger-video.php
Created January 19, 2017 04:55
Sends a trigger to a network connected Brightsign player
<?php
echo exec('whoami');
exec('echo -n "two" >/dev/udp/192.168.1.192/5001');
echo "purplebox working.";
@camb416
camb416 / sketch_160801a.pde
Last active August 1, 2016 22:14
Distance and easing decay
ArrayList<Ball> balls;
boolean doScale;
void setup() {
doScale = false;
size(1280, 720);
balls = new ArrayList<Ball>();
for (int i=0; i<width/20; i++) {
for (int j=0; j<height/20; j++) {
color[] colors = { #395273,
#395273,
#F2EDA0,
#D9A171,
#395273,
#395273,
#40211E,
#395273,
#40211E,
color[] colors = {#395273,
#405B73,
#F2EDA0,
#D9A171,
#40211E,
#40211E};
@camb416
camb416 / interactiveBezier.pde
Last active June 19, 2016 15:57
Interactive Draggable Bezier Path in Processing
Bezier b;
ArrayList<DraggablePoint> pts;
boolean isDragging;
int dragID;
float slope;
float t;
void setup(){
@camb416
camb416 / circles3.pde
Created February 28, 2016 21:00
Eased motion on tiled stage
import processing.core.PApplet;
import processing.core.PGraphics;
/**
* Created by cbrowning on 2/28/16.
*/
PGraphics tile;
int tileWidth;
int tileHeight;