Skip to content

Instantly share code, notes, and snippets.

View velovix's full-sized avatar
🐢

Tyler Compton velovix

🐢
  • Oakland, CA
View GitHub Profile
@velovix
velovix / pyproject.toml
Created October 18, 2021 05:41
An example of a pyproject.toml using implicit extras
[tool.poetry]
name = "my_project"
version = "0.1.0"
description = "A project!"
authors = ["Tyler Compton <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.26.0"
@velovix
velovix / Dockerfile
Last active June 15, 2021 03:28
Reproduces a segment seeking bug and memory leak in nvcodec
FROM nvidia/cuda:11.2.1-devel-ubuntu18.04 AS gstreamer
# Adds NVCODEC libraries to the environment for use in building NVDEC support
ENV NVIDIA_DRIVER_CAPABILITIES=all
ARG FFMPEG_VERSION=n4.3.1
WORKDIR /ffmpeg
# Get FFmpeg dependencies
RUN apt-get update && \
@velovix
velovix / sunhacks_2020_gstreamer_talk.md
Last active February 24, 2025 09:48
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

@velovix
velovix / cornlines.zsh-theme
Last active July 23, 2016 00:48
A very simple zsh theme that shows your username, working directory, and git information.
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [[ $UID -eq 0 ]]; then
local user_host='%{$fg[red]%}%n@%m%{$reset_color%}'
else
local user_host='%{$fg[yellow]%}%n@%m%{$reset_color%}'
fi
local current_dir='%{$fg[green]%} %~%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'