Skip to content

Instantly share code, notes, and snippets.

View cmvanb's full-sized avatar

Casper cmvanb

  • Netherlands
View GitHub Profile
@cmvanb
cmvanb / catt-subtitles
Last active December 20, 2022 17:15
Automatically extract subtitles using `ffmpeg` to work with Cast All The Things. Original author: https://github.com/EtienneM
#!/bin/bash
# set -x
print_usage() {
echo "$0 [--map=0:3] video_file" >&2
echo "" >&2
echo "With video_file the path to a file like mkv which embeds the subtitles" >&2
echo "--map: use the specified embedded subtitle." >&2
echo "" >&2