- Go to your desired YouTube video via a Web browser.
- Check to make sure the YouTube video has captions/subtitles added with the “CC” button.
- Go to “Settings” and click on “Subtitles/CC” to see which subtitle languages are available.
- On the menu below the video, click the three dots next to “Save” for more options, then select “Open Transcript”.
- An interactive transcript will appear next to the video on the right side of the window.
- Click the dropdown menu at the bottom of the transcript to select the language of your subtitles.
- Click the three dots at the top of the transcript to turn the timestamps in the transcript on or off.
- Once you’ve selected your desired language and the timestamps fit your preferences, highlight the transcript, copy it, and paste it to a word processor or notepad app of your choice.
- Put this
sed
commands/([a-zA-Z,`])\n([a-zA-Z`])/\1 \2/
in a file namedsed.cmds
: - Run
sed -e ':a' -e 'N' -e '$!ba' -E -f sed.cmds Input.txt > Output.txt
- Et voilà!