| | |
Convert Video into FLV format
![]() |
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi,
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.
Thanks
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.
Thanks
Pure Java solutions / libraries for converting videos to different formats might be a bit hard to get by. There are a lot of open source / free converters out there [like ffmpeg] which you can use in conjunction with your application to achieve the desired task since re-writing the entire thing in Java would be a significant act.
One of the ways to do it:
• Use your web application as a front end for allowing users to upload their videos.
• When storing the videos, either store them directly to your File system or use a Database; depends on how your project is engineered.
• Run a background process which would pick up the file from a specified directory, convert it and put it in another directory [or table if using Database].
• The background process would run a command line version of the file conversion utility for converting files.
Another way would be to create a thin wrapper around the open source libraries out there which are written in C or C++ and make native calls using JNI.
But on a final note, this is by no means a simple project and having an architect on your team who *knows* things really helps.
One of the ways to do it:
• Use your web application as a front end for allowing users to upload their videos.
• When storing the videos, either store them directly to your File system or use a Database; depends on how your project is engineered.
• Run a background process which would pick up the file from a specified directory, convert it and put it in another directory [or table if using Database].
• The background process would run a command line version of the file conversion utility for converting files.
Another way would be to create a thin wrapper around the open source libraries out there which are written in C or C++ and make native calls using JNI.
But on a final note, this is by no means a simple project and having an architect on your team who *knows* things really helps.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- video to flash conversion (PHP)
- Soft for webmasters! (Windows Software)
- How to Download FLV offline and enjoy FLV on portable devices (Graphics and Multimedia)
- More Codec Problems!! (Windows NT / 2000 / XP)
- flash help (Graphics and Multimedia)
- videoclip get thumbnail using php (PHP)
- Understanding whats best when hosting mp3s and video (Graphics and Multimedia)
Other Threads in the Java Forum
- Previous Thread: null pointer exception problem
- Next Thread: Problems with GUI.
| Thread Tools | Search this Thread |
actuate add android api applet application applications array arrays automation balls bank binary bluetooth business chat class clear client code codesnippet collections component database defaultmethod development dice digit dragging ebook eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health hql html hyper ide idea image infinite int integer invokingapacheantprogrammatically j2me java javame javaprojects jni jpanel julia linux list main map method methods mobile myregfun mysql netbeans nonstatic openjavafx parameter pearl php problem program project recursion repositories scanner scrollbar server set sms sort sorting spamblocker sql sqlserver state storm string sun superclass swing swt thread threads tree windows






