The prices of GOOG and AAPL already reflect their brilliance in whatever they are doing, true, but best thing about them is they will innovate more. Apple is not just iPod, it's everything they have done since the 80s and will probably do in the near future. And that in a way explains why sometimes seemingly "good" products like those you mentioned fail: because a given company can't keep up and innovate
constantly.
Of course there are companies that fall under "constantly innovating" category and yet some of the things they come up with fail. It's hard to tell, or if it was easy, there wouldn't be good or bad investors, but only good ones. That's the whole point of investment: you place your bets using your knowledge and intuition. It's a game in the end.