Skip to content

Instantly share code, notes, and snippets.

@scyto
scyto / proxmox-tb-net.md
Last active August 24, 2026 02:04
Thunderbolt Networking Setup
@ricekab
ricekab / ffmpeg_example.txt
Last active May 4, 2025 02:55
ffmpeg overlay + drawtext simple examples
1. Add overlay over entire video. No extra text
ffmpeg -i examplecut.mp4 -i overlay.png -filter_complex "[0:v][1:v] overlay" -c:a copy output.mp4
2. Add overlay over for 10 seconds in the middle (5s - 15s in this example)
ffmpeg -i examplecut.mp4 -i overlay.png -filter_complex "[0:v][1:v] overlay=enable='between(t,5,15)'" -c:a copy output2.mp4
2b. Add overlay starting from X time until the end (X=5 in this example)
@glasslion
glasslion / vtt2text.py
Last active July 10, 2026 06:13
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.