943,882 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4858
  • Java RSS
Oct 10th, 2008
0

Convert Video into FLV format

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
alrevolver is offline Offline
1 posts
since Oct 2008
Oct 12th, 2008
0

Re: Convert Video into FLV format

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.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Oct 29th, 2008
0

Re: Convert Video into FLV format

I want a library to use it in my java code. so I allow the user to upload his video in any format and I'll store it somewhere in flv format
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rana84 is offline Offline
1 posts
since Oct 2008
Oct 29th, 2008
0

Re: Convert Video into FLV format

I will assume Alrevolver and rana84 are the same person. I will just ask did you understand what s.o.s. just have told? :-| Read his post again and again and try to make sense. Your answer is already given.
Reputation Points: 46
Solved Threads: 11
Junior Poster
orko is offline Offline
164 posts
since Apr 2006
Aug 12th, 2009
0

Re: Convert Video into FLV format

Java Audio Video Encoder (Jave). Java wrapper for FFMpeg.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
test is offline Offline
11 posts
since Dec 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: problem in appearing line on panel
Next Thread in Java Forum Timeline: Problems with GUI.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC