I noticed that the example is taken from YouTube, where auto-generated
text transcripts of the videos are automatically available in many cases.
- To access this feature, click the three dots menu (
...) below the video
and select "Transcript" from the menu
- You may be asked to select a language or you may be able select a language
from the drop-down element. Make your choice and you’ll see a full transcript
along with timestamps.
- You may disable the timestamps by clicking the three-points hamburger
icon and selecting "Toggle timestamps"
- Click and drag to highlight all the text (it will scroll automatically)
and press
Ctrl+C
to copy it.
You can paste this text anywhere to create your transcript in a text file.
For more information with screenshots see the article
How to Transcribe YouTube Videos Automatically.
For other cases where the text is inaccessible, you could use an OCR product.
I have used with much success the open-source application
greenshot.
This product is very accurate and is a alternative to accessing the text-box.
Using greenshot on your second image gave me this:
"computer power supplies output 12 volts If you apply 12 volts to a CPU
it‘ll look something like this". Pretty good and very accurate.