Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# NOTE: This script is shared in a GitHub gist at
# https://gist.github.com/wonderbird/c5391943d965cea865983fd224afbe88
#
# Convert a rendered screen recording to 1920x1080 HD format, then
# extract the audio track to a separate MP3 file and finally,
# transcribe the audio to get a text file and subtitles.
#
# The input file is ususally the output of DaVinci Resolve.
@wonderbird
wonderbird / downscale_reduce.sh
Last active September 7, 2023 09:07
Rescale and compress PNG images
#!/bin/sh
#
# Rescale and compress PNG images.
#
# Source: https://gist.github.com/wonderbird/b210877179e95ef1145b9d9216167336
#
# For every image in all subfolders of SOURCE:
#
# - Rescale image to a width and height of at most 1024 px.
# - Reduce colors to 256 with an optimized palette.