This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}" \ |