This clip is "Nowhere Man" from the Yellow
Submarine animated film, released in 1968. The speaking
parts of the animated Beatles are actually voiced by
other actors.
John Lennon said that his son Sean first realized his
father had been a Beatle because of the film Yellow
Submarine. Sean saw the movie at a friend's house,
and when he got home he asked why his father was a cartoon.