Try taking notes on the youtube videos you watch. Before clicking on a new video, pause and write down the main points, interesting quotes, questions that you have, any inspirations for IRL projects.
Writing down will help you to remember.
Take a moment and think before you watch another video.
Watching a video is not that much different than watching a lecture.