Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the length of my subtitles #651

Open
Root-FTW opened this issue Dec 30, 2023 · 2 comments
Open

Limit the length of my subtitles #651

Root-FTW opened this issue Dec 30, 2023 · 2 comments

Comments

@Root-FTW
Copy link

How can I make my subtitles 1 line long and no more than 5 words?

This is the command I use on my windows with Nvidia GTX 1080 graphics card and the result is multiple lines of subtitles and many words resulting in a super long and long paragraph to read.

whisperx video.mp4 --model large-v3 --highlight_words False --align_model WAV2VEC2_ASR_LARGE_LV60K_960H --compute_type int8 --max_line_width 42 --max_line_count 2 --output_format srt

@jim60105
Copy link
Contributor

Maybe --chunk_size is what you need.

parser.add_argument("--chunk_size", type=int, default=30, help="Chunk size for merging VAD segments. Default is 30, reduce this if the chunk is too long.")

@stri8ed
Copy link

stri8ed commented Mar 3, 2024

Maybe --chunk_size is what you need.

parser.add_argument("--chunk_size", type=int, default=30, help="Chunk size for merging VAD segments. Default is 30, reduce this if the chunk is too long.")

Wouldn't this cause worse transcription results, since the context is lost with smaller chunks of audio? Seems like it would make more sense to split it after transcription.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants