| | |
Convert Video into FLV format
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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: problem in appearing line on panel
- Next Thread: Problems with GUI.
| Thread Tools | Search this Thread |
account android api applet application array arrays automation bidirectional binary birt bluetooth chat class classes client code columns component data database designadrawingapplicationusingjavajslider draw eclipse editor error errors event exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance input integer intellij j2me java javaprojects jlabel jme jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source plazmic print problem program programming project property recursion ria scanner screen search server set size sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree windows






