Subtitles for a video
Pull the audio track out with ffmpeg, ask Duyu for srt, and attach the subtitles to the video.
1 · From audio to subtitles
Duyu takes files up to 100 MB and 2 hours. Instead of sending the video, extract the audio as mono 16 kHz Opus: even two hours stay under 30 MB.
Put the names that appear in the video in prompt, and Duyu spells them your way. Cues follow sentence boundaries and wrap to at most 2 lines of 42 characters.
2 · Attaching to the video
Use mov_text for a subtitle track viewers can switch on and off. For social media, burn the subtitles into the picture.
shell
On the web
For the browser's own video player, ask for response_format=vtt and link the file with a <track>.
HTML