it's Kanbaru again 🌟

(replying to it's Kanbaru again 🌟)

but for my own future reference:

ffmpeg -i foo.mkv foo.ass
ffmpeg -i foo.mkv -vf ass=foo.ass -pix_fmt yuv420p foo.mp4
ffmpeg -t 2:00 -i clip.mp4 -vcodec copy -acodec copy -sn -map_chapters -1 -map_metadata -1 clip_clean.mp4

it's Kanbaru again 🌟

(replying to it's Kanbaru again 🌟)

got this wonderful reply over on twitter with the magic incantation, quoting here so i won't lose it:

ooh I know this, you can do it in one step, have it read the fonts from the mkv, and seek relatively quickly

ffmpeg -ss -to -copyts -i in.mkv -ss -to -vf "subtitles='in.mkv'" -pix_fmt yuv420p out.mp4

(the nested quotes are loadbearing)

(https://twitter.com/_aps0/status/1853080362982727703)