Export Mpeg file from OpenGL

Is it possible to create (export)an Mpeg or Avi file with OpenGL ;
Regards,