Skip to content

Instantly share code, notes, and snippets.

Cameron Browning camb416

View GitHub Profile
@camb416
camb416 / ffmpeg_x265_segfault
Created Apr 16, 2018
segfault when converting to H.265
View ffmpeg_x265_segfault
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 Jan 19, 2017
Sends a trigger to a network connected Brightsign player
View trigger-video.php
<?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 Aug 1, 2016
Distance and easing decay
View sketch_160801a.pde
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++) {
View firstColorPattern_variation.pde
color[] colors = { #395273,
#395273,
#F2EDA0,
#D9A171,
#395273,
#395273,
#40211E,
#395273,
#40211E,
View firstColorPattern.pde
color[] colors = {#395273,
#405B73,
#F2EDA0,
#D9A171,
#40211E,
#40211E};
@camb416
camb416 / interactiveBezier.pde
Last active Jun 19, 2016
Interactive Draggable Bezier Path in Processing
View interactiveBezier.pde
Bezier b;
ArrayList<DraggablePoint> pts;
boolean isDragging;
int dragID;
float slope;
float t;
void setup(){
@camb416
camb416 / circles3.pde
Created Feb 28, 2016
Eased motion on tiled stage
View circles3.pde
import processing.core.PApplet;
import processing.core.PGraphics;
/**
* Created by cbrowning on 2/28/16.
*/
PGraphics tile;
int tileWidth;
int tileHeight;
View circles2.pde
import processing.core.PApplet;
import processing.core.PGraphics;
/**
* Created by cbrowning on 2/17/16.
*/
//public class ProcessingExample extends PApplet{
PGraphics tile;
int tileWidth;
View circles.pde
import processing.core.PApplet;
import processing.core.PGraphics;
/**
* Created by cbrowning on 2/17/16.
*/
public class ProcessingExample extends PApplet{
PGraphics tile;
int tileWidth;
@camb416
camb416 / renamer.sh
Created Feb 19, 2016
rename all of the JPG images in this folder to sequence numbers.
View renamer.sh
#!/bin/bash
# rename all of the JPG images in this folder to sequence numbers.
a=1
for i in *.jpg; do
new=$(printf "%05d.jpg" "$a") #04 pad to length of 5 digits
mv -- "$i" "$new"
let a=a+1
done
You can’t perform that action at this time.