This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
We have a java web application where users will be submitting videos. I'm trying to write a java program that is able to convert any movie file into compressed SWF video and FLV streaming video formats. The code should convert almost all popular file extensions such as AVI, MPEG, WMV, ASF and 3GP.
I've never worked with filestreaming etc before, so I would appreciate any insight you can provide on how I can go about doing this.
Working with video is nontrivial. The Java Multimedia Framework supports a fraction of the functionality you require. My advice is search for a product that can do what you require and buy it. Adobe Flash CS3 Professional is $700. It includes Flash Video Encoder which may do what you require, and it's much cheaper than the time it would cost you to get up to speed on encoding video and writing your own encoder for each format/codec you want to support.
Maybe you can take advantage of what others have already done. HeyWatch is an online encoding service with a REST API. Just an idea, I haven't used it.
I've also been told that ffmpeg (encoding) and flvtool2 (metadata) work well together. Again, I've no first hand experience with them, but maybe they're something to get you started. [ December 30, 2007: Message edited by: Pauline McNamara ]