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 ]
hi i want to advice very good tool its VisiFly this prog works with all common formats,very helpful,has demo without timelimit!i think its great=))you can find more info and downlode it herehere GLuck
ffmpeg and flvtool2 can be started from Java using ProcessBuilder, wihout manual intervention. See Pauline's post above. [ July 21, 2008: Message edited by: Carey Evans ]