Skip to content

Instantly share code, notes, and snippets.

View Ecno92's full-sized avatar

Therry van Neerven Ecno92

View GitHub Profile
@Ecno92
Ecno92 / gifify
Created January 25, 2017 12:09
gifify-docker-wrapper
#!/bin/bash
# A wrapper to run Gifify within docker.
# Based on: https://github.com/docker/compose/releases/download/1.10.0/run.sh
# and: https://github.com/maxogden/gifify-docker
#
# Install (Ubuntu)
# ================
# 1. Save file as /usr/local/bin/gifify
# 2. Make the file executable (chmod +x gifify)
#
@Ecno92
Ecno92 / share-screen-as-webcam
Created April 24, 2017 07:37
share-screen-as-webcam
#!/bin/bash
# Save this file in /usr/bin/local and make it executable.
# Once executed a webcam screen visualizing your desktop is available
# at /dev/video/video1
sudo modprobe v4l2loopback
ffmpeg -f x11grab -r 15 -s `xrandr --current | grep '*' | uniq | awk '{print $1}'` -i :1 -qscale 0 -vcodec rawvideo -threads 0 -vf scale=1280:720 -f v4l2 /dev/video1