How can I extract plain text from a srt file (subtitle) by eliminating the time codes?
How can I remove time codes of a ".srt" file to provide it for print? I want Order of terms in the extracted file to be the same as the original file.
|
Try this:
Code:
$ dos2unix subtitles.srt |
Worked perfectly! Thanks!
I will be using that trick a fair amount. I needed to get the transcript of a rant on Lewis Black's podcast. I sent him the proofed text after and it was MUCH easier with that crap gone.
|
Also examine the following line:
Code:
sed -r 's/\r$//;/^[0-9]+$/{N;/\n[0-9]/d;}' subtitles.srt |
All times are GMT -5. The time now is 04:29 AM. |