Skip to content

Instantly share code, notes, and snippets.

View Te4g's full-sized avatar

Gaetan Rouseyrol Te4g

  • Lyon
View GitHub Profile
@Te4g
Te4g / instruction.md
Last active December 25, 2022 15:09 — forked from qutek/instruction.md
[Install ZeroMQ MAC] Install PHP ZeroMQ MAC #mac #php

Install with brew

  • brew install zmq

Make php-zmq

  • git clone [email protected]:zeromq/php-zmq.git or git clone https://github.com/zeromq/php-zmq.git
  • cd php-zmq
  • phpize && ./configure
  • make && make install

Add extension to php.ini:

@Te4g
Te4g / macFFmpeg.md
Created September 2, 2021 09:17 — forked from docPhil99/macFFmpeg.md
Mac webcam FFmpeg

#Capture and stream a webcam To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.

ffmpeg -f avfoundation -list_devices true -i "" 

This will list the aviable video and audio devices.

The below will capture at 30fps and the set video size to a file. ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi