I was in line at 1L when I heard a pilot from that aircraft report the failure and his intentions to deviate from the assigned departure. A pilot from another aircraft on the ground reported seeing flames trailing the engine. The statement by the passenger that it happened 40 minutes into the flight must have included all the time from pushback to takeoff, as there were lengthy delays getting airborne at San Francisco last night.