Copyright for creating a video that is a chapter-by-chapter Analysis of a Technical Book?
Disclaimer 1: I am not a lawyer, I know sh*t about law, it is not a legal advice and you should consult with a professional.

Disclaimer 2: ethics and law are two different question, this answer tries to give ideas about the law part (and you should not fully rely on it, as stated in D1)

If you using substantial amount of the book (its code, its ideas), especially blatantly copy its structure making it obvious what you copied, then you are way beyond fair use and you are in a gray or even red copyright area. Depending on publishers they generally put some short examples in their copyright session what constitute fair use, you can check those. What you describe here goes far beyond this. Also the whole purpose is to spread it to wide audience on youtube, so publisher can claim that they suffer significant loss of revenue, because the whole thing with all the details and secret sauce is on YouTube. 

What you can do about it?
You can try to get a permission from the publisher (most probably the author himself cannot give this). It may help if you have a reasonable discussion with the author / publisher about your idea and tune down the "I will discuss every little details of your book and copy out all the codes" part. For example it helps if you have your own intellectual effort in this whole stuff, e.g. analysing problems not presented in the book and show how the books method can be used, and not just reading/summarizing the book on video.