Skip to content

Instantly share code, notes, and snippets.

@sam-37
sam-37 / sunhacks_2020_gstreamer_talk.md
Created March 25, 2021 08:08 — forked from velovix/sunhacks_2020_gstreamer_talk.md
The text version of my GStreamer talk at sunhacks 2020

Introduction

Hi everyone! Today I'm going to be giving you a crash course in video processing using Python. Coming out of this talk, you'll be able to take video from pretty much any source, decode it, apply visual effects, and display it on-screen. To do this, we're going to be using a library named GStreamer, an incredibly powerful and versatile framework. This is the same tool that the pros use, but don't feel intimidated! GStreamer actually makes it very easy to do impressive things with video and you'll be well on your way to making something great in just the time it takes to watch this talk.

If you fall behind at any point during the live presentation, don't worry! I have a text version of this talk available with the same content and more. There should be a link in the description.

Installing Dependencies

Let's start by installing everything we'll need to start using GStreamer in Python. This is probably the hardest part, so if you managed to do it before this talk, it's all smooth sailing fro

@sam-37
sam-37 / video.py
Created December 3, 2021 14:09 — forked from fernandoremor/video.py
python v4l2 webcam capture test
#!/usr/bin/env python3
from v4l2 import *
import fcntl
import mmap
import select
import time
vd = open('/dev/video0', 'rb+', buffering=0)
@sam-37
sam-37 / cheat sheet.md
Last active September 19, 2022 06:50 — forked from ChengLuFred/cheat sheet.md
[Markdown Cheat Sheet] #Markdown
  1. Markdown markdown

  2. R markdown rmarkdown

@sam-37
sam-37 / beelink_gtr7_pro_amdgpu_ubuntu_driver_install.md
Last active June 28, 2024 03:25
amdgpu install on beelink gtr ser7 [AMD® Ryzen 9 7940hs w/ radeon 780m graphics] for Ubuntu
@sam-37
sam-37 / docker-swarm-ports.md
Created February 16, 2024 08:24 — forked from BretFisher/docker-swarm-ports.md
Docker Swarm Port Requirements, both Swarm Mode 1.12+ and Swarm Classic, plus AWS Security Group Style Tables

Docker Swarm Mode Ports

Starting with 1.12 in July 2016, Docker Swarm Mode is a built-in solution with built-in key/value store. Easier to get started, and fewer ports to configure.

Inbound Traffic for Swarm Management

  • TCP port 2377 for cluster management & raft sync communications
  • TCP and UDP port 7946 for "control plane" gossip discovery communication between all nodes
  • UDP port 4789 for "data plane" VXLAN overlay network traffic
  • IP Protocol 50 (ESP) if you plan on using overlay network with the encryption option

AWS Security Group Example