View capture_x11_ffmpeg.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Record the screen via x11grab and embed a timecode. | |
# | |
# Author: Werner Robitza | |
# | |
# License: MIT | |
# | |
# Version: 1.2.0 | |
# |
View black_split.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Splits video to separate scenes files when full black frames are found in the video | |
# | |
# Author: Werner Robitza | |
# | |
# Forked from: https://gist.github.com/davidwebca/e26186b8f4c6795b19c043fffb6f9861 | |
# Inspired by https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e | |
# Who got inspired by https://stackoverflow.com/a/38205105 |
View crx_download.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Download a Chrome extension from the webstore. | |
# Extract it to a specified path. | |
# | |
# Author: Werner Robitza | |
set -e | |
CHROME_VERSION="101.0.4951.57" |
View csv_to_ndjson.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# csv_to_ndjson.py | |
# | |
# Author: Werner Robitza | |
# | |
# Convert CSV files to .ndjson. | |
# This assumes the same keys being used in every line of the input file. | |
# It works on a line-by-line basis, so it should be fast and memory-efficient. |
View fft.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Code for calculating FFT and radial profile of an image | |
# | |
# Implements a method similar to: | |
# Katsavounidis, I., Aaron, A., & Ronca, D. (2015, October). Native resolution detection | |
# of video sequences. In SMPTE 2015 annual technical conference and exhibition (pp. 1-20). | |
# SMPTE. | |
# | |
# Author: Werner Robitza |
View gist:7ca145663f5898b2a9018106cc0b0d6a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Work in progress! Does not handle escapes within filter arguments. | |
FilterGraph = | |
head: FilterChain | |
tail:(";" @FilterChain)* | |
{ return [head, ...tail]; } | |
FilterChain = | |
head: Filter | |
tail:("," @Filter)* |
View word-to-json-string.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Convert a Word document to a Markdown-formatted JSON-parsable string | |
pandoc "$1" -t gfm-raw_html --wrap=preserve -o - | python -c 'import json; import sys; print(json.dumps(sys.stdin.read()))' |
View ffmpeg-progress.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Run an ffmpeg command with a progress iterator | |
# Author: Werner Robitza | |
# Based on: https://gist.github.com/Hellowlol/5f8545e999259b4371c91ac223409209 | |
# For a library version, see https://pypi.org/project/ffmpeg-progress-yield/ | |
# License: MIT | |
import subprocess | |
import re |
View diagnostics.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RStudio Diagnostics Report | |
========================== | |
WARNING: This report may contain sensitive security information and / or | |
personally identifiable information. Please audit the below and redact any | |
sensitive information before submitting your diagnostics report. | |
Generated: Wed Jul 15 08:58:21 2020 |
View pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "test" | |
version = "0.1.0" | |
description = "" | |
authors = ["Werner Robitza <werner.robitza@gmail.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.8" | |
ffmpeg_bitrate_stats = { git = "ssh://git@github.com:slhck/ffmpeg-bitrate-stats.git" } |
NewerOlder