If you have gathered some information from a YouTube video, and if there is no better source for it; then the YouTube video is what you should cite.
Now whether a YouTube video is a reliable source or not depends on a lot of details.
If, for example, the YouTube video is a recording of a reputable academic giving a scientific talk, then you can treat it with the same level of trust as you would treat it had you attended the talk in person (which should include "remain sceptical until you see the actual publication").
If, for example, you are discussing a piece of art and you have come across a YouTube video by the artist discussing their process of creation; or even just a relevant critic commenting on the art, this could be a great primary source.
If, for example, the YouTube video is about a mathematical result, and includes a sufficiently detailed explanation of the proof to follow and verify the proof, it is a reasonable source to assert that the result is true.
If the YouTube video is of a random person (or worse a known crank, liar, etc.) spouting off random stuff, you're better off ignoring the "information".