Skip to content

Instantly share code, notes, and snippets.

View daviderickson's full-sized avatar

David Erickson daviderickson

  • Stanford University
  • Stanford, CA
View GitHub Profile
ffmpeg -f v4l2 -video_size 1920x1080 -framerate 30 -i /dev/video0 \
-filter_complex \
"[0:v]setpts=PTS-STARTPTS[bg]; \
[bg]overlay=shortest=1" \
-c:v libx264 output.mkv
@daviderickson
daviderickson / writes.dtrace
Last active March 5, 2022 19:34
Dtrace script to print all written-to files in FreeNAS, and their average write rate every 10 seconds.
#!/usr/sbin/dtrace -s
#pragma D option quiet
#pragma D option defaultargs
#pragma D option switchrate=10hz
#pragma D option dynvarsize=4m
#pragma D option cleanrate=30hz
dtrace:::BEGIN
{