Thread with 5 posts

jump to expanded post

making hardsubbed anime clips with ffmpeg is a huge pain i don't recommend it. it doesn't support seeking properly so it wastes cycles rendering 20 minutes to /dev/null, and the fonts are plain because i didn't extract the files from the mkv. i shouldn't even have to do that.

Open thread at this post

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
Open thread at this post

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)

Open thread at this post