whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Support multiple lines in subtitles

Open rben01 opened this issue 2 years ago • 3 comments

OpenAI Whisper has a --max_line_count argument that allows setting the number of lines to use in subtitles (I usually set it to two). This lets one fit more text on screen at a time while restricting subtitles to a reasonable width. It would be great if whisper.cpp also supported an option to set the number of lines per subtitle.

rben01 avatar Jan 10 '24 19:01 rben01

-ml 120 -sow keeps max length at 120 characters and depending on font size usually keeps max lines to two.

mrfragger avatar Jan 14 '24 04:01 mrfragger

Thanks. I'd prefer to force two lines of up to N characters each, rather than rely on the video player to wrap the line. Most players seem to make the first line as long as possible before wrapping, but I'd prefer the lines to be of roughly equal length.

rben01 avatar Jan 14 '24 16:01 rben01

+1 to this feature request

Marzal avatar May 17 '24 18:05 Marzal