Skip to content

Instantly share code, notes, and snippets.

ffmpeg command: /homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -loglevel level+debug -hide_banner -f mp4 -i pipe:0 -map 0:v -vcodec h264_v4l2m2m -pix_fmt yuv420p -profile:v 77 -level:v 4.0 -preset veryfast -b:v 2000k -bufsize 4000k -maxrate 2000k -force_key_frames expr:gte(t, n_forced * 4) -fflags +genpts -reset_timestamps 1 -movflags frag_keyframe+empty_moov+default_base_moof -map 0:a -acodec copy -f mp4 pipe:1
[debug] Splitting the commandline.
[debug] Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'level+debug'.
[debug] Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
[debug] Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
[debug] Reading option '-i' ... matched as input url with argument 'pipe:0'.
[debug] Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:v'.
[debug] Reading
@jiehanzheng
jiehanzheng / README.md
Created September 27, 2018 18:02 — forked from plugnburn/README.md
JJY.js: Web Audio API based JJY transmitter

JJY.js: JJY time signal emulation/transmission library

Usage

  1. Make sure that the watch/clock is configured to receive JJY 40 KHz signal (for most Casio Waveceptor/G-Shock watches, the easiest way is to enter the engineer menu by pressing Mode+Light+Receive and select J 40 reception mode, for all other watches you need to set the home city to Tokyo)
  2. Make sure your device clock is in sync before running the emulator.
  3. From the page, run:
from __future__ import print_function
import csv
import re
from collections import defaultdict
addresses = []
with open('google.csv', 'rb') as csv_file:
contacts_reader = csv.reader(csv_file)
for row in contacts_reader: