Femtosecond optical packet generation by a direct space-to-time pulse shaper.