If you're doing it manually and you use a Mac, I recommend Miro Video Converter. If you're automating this process to run server-side (e.g. for user uploads), then you're a programmer and you know to ask on Stack Overflow instead of on this forum. ;-)
|