Skip to content

Instantly share code, notes, and snippets.

@robgaunt
robgaunt / flicker.ino
Last active July 4, 2017 05:33
Chandelier flicker code
#include <array>
#include <cmath>
#include <vector>
// Brightness correction table. Run below script and paste result.
/*
echo "
min_brightness = 100
max_brightness = 8192
gamma = 4.0
@robgaunt
robgaunt / gist:bd8674153d3e583ce9a2
Last active January 7, 2025 12:13
ffmpeg a/v sync test video
# Rate in frames per second.
RATE=30
# Duration in seconds.
DURATION=300
# Video size options: https://www.ffmpeg.org/ffmpeg-utils.html#Video-size
SIZE=hd1080
OUTFILE=avsync_${SIZE}_${RATE}fps_${DURATION}s.webm
~/bin/ffmpeg -f lavfi -i "sine=frequency=1:beep_factor=800:duration=${DURATION}" \
-f lavfi -i "testsrc=duration=${DURATION}:size=${SIZE}:rate=${RATE}" \