AppendShiftSubs 36 hours 23m 4.1GB wav file limit. Combine multiple srt in synch into one srt. #929
mrfragger
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some audiobooks are more than 36 hours. So to keep using whisper.cpp you need to split up audiobooks into multiple segments of 36 hours or less (technically 36 hours 23m). 16Khz, 16-bit, mono (1 channel), 256kbit at 4GB = 2184 mins or 36 hours 23m.
4000 MiB / 4194 MB wav file limit
3.906 GiB / 4.194 GB wav file limit
Example to combine 4 srt subs into one
after running those scripts it outputs msubs(123)+4.srt" which you rename to match your original audio / video.
convert to vtt
pysubs2 audiobook.srt -t vtt
Also put two more scripts to
combine2subs
andcombine3subs
to combine multiple languages into one srt / vtt.Includes PDF how to set breakpoints in LosslessCut to get sub-seg1.opus, sub-seg2.opus, sub-seg3.opus, sub-seg4.opus
Tested on Linux / Mac...should work on Windows.
requirements
LosslessCut
shiftappendsubs2023May15.zip 424 KB
If someone knows how to program to decode opus or mp3 in main.cpp as discussed here then we won't need to split up audiobooks anymore.
Beta Was this translation helpful? Give feedback.
All reactions