A Simple Java Application to Remove Timestamps from Subtitle Files
This application removes timestamps from a file containing subtitles. It takes the timestamped text as input and returns a formatted string without timestamps.
Original Subtitle File:
"00:02:07,156 Stop! This is the police! 27
00:02:10,236 --> 00:02:11,496 Don't move! 28
00:02:13,066 --> 00:02:15,266 Stop immediately! Stop!"
Output Subtitle File:
"Stop! This is the police!
Don't move!
Stop immediately! Stop!"
- The application reads the input file line by line.
- The script scrapes timestamps from the input file and removes them.
- It then formats the remaining text into a single string.
This project is licensed under the MIT License. See LICENSE for more information.