Skip to content

Instantly share code, notes, and snippets.

View Sybrand's full-sized avatar

Sybrand Strauss Sybrand

  • Cape Town, South Africa
View GitHub Profile
@Sybrand
Sybrand / timelapse.md
Last active January 3, 2019 16:18 — forked from alexellis/timelapse.md
ffmpeg time-lapse

Convert sequence of GoPro Hero 5 Black JPEG images to MKV / MP4 video

MKV is an open standard, so I prefer that to MP4, it does also seem to play back 4k 60 fps less choppy.

ffmpeg -r 60 -pattern_type glob -i '*.JPG' -vf scale=3840:2160 -sws_flags lanczos -pix_fmt yuv420p -vcodec libx264 -crf 18 -preset slow timelapse_lanczos_crf18_slow.mkv

  • -r 60 - output frame rate.
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory.
  • -vf scale=3840:2160 - 4k UHD. GoPro captures in 4000x3000, but I want to squeeze it into 4k.
  • -sws_flags lanczos - I want to scale Gaussian or lanczos, I think it’s better than bicubic.
@Sybrand
Sybrand / Dockerfile
Created May 7, 2020 18:55 — forked from stephenhillier/Dockerfile
PostGIS Patroni Dockerfile
FROM registry.hub.docker.com/library/postgres:10
# Patroni install from https://github.com/zalando/patroni
# OpenShift config from https://github.com/BCDevOps/platform-services
# PostGIS install adapted from https://github.com/appropriate/docker-postgis
ARG PGHOME=/home/postgres
ENV POSTGIS_MAJOR 2.5
ENV POSTGIS_VERSION 2.5.4+dfsg-1.pgdg90+1