Reputation: 35
I am building a mobile website were users can upload/download videos, and I need a library that can convert the media files from mpeg, 3gp, mov depending on what the user wants to download.
Do you happen to know a a library that can do this?
Upvotes: 0
Views: 371
Reputation: 2505
Or if you want something to use directly from Java, try Xuggler, a Java-based interface to FFmpeg.
Upvotes: 0
Reputation: 45087
In the past, I ran VLC from the command-line and used it to do my conversions (it's free, supports nearly all audio and video formats, and works on many different platforms). If you have VLC installed on the server, you can access it this way using any language that has a system()
command or equivalent.
Upvotes: -1
Reputation: 34024
ffdshow is a great lib for that.
libavcodec to be more precise.
Upvotes: 1
Reputation: 1254
You should not only search for Library to do this, if you are using linux you can find an application that do this for you with CLI support,then using that application cli you can change your format;
$result=shell_exec('application_name [parameters] input-file output-file')
for example you can use ffmpeg
$result=shell_exec('ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg')
Upvotes: 2