Skip to content

Instantly share code, notes, and snippets.

View mistal-distal's full-sized avatar

James mistal-distal

View GitHub Profile

The insanity of FFMPEG

ffmpeg -rtbufsize 500M -f v4l2 -video_size 1152x900 -i /dev/video0 \
  -vf "drawtext='fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=%{localtime}: x=10: y=10: fontcolor=white: box=1: boxcolor=black@1: fontsize=24'" \
  -c:v libx264 -preset veryslow -crf 28 \
  -pix_fmt yuv420p -an -r 15 -y \
  -f tee -map 0:v "[f=segment:segment_atclocktime=1:segment_time=3600:strftime=1]/videos/raw_video/video_%Y%m%d-%H%M%S.mp4|[f=mpegts]udp://127.0.0.1:1234/"
@mistal-distal
mistal-distal / mac_restart_vnc_over_ssh.md
Last active April 29, 2024 02:52
Mac OSX - Restart VNC Server over SSH