Debonair
Debonair

Reputation: 35

media conversion library

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

Answers (6)

Art Clarke
Art Clarke

Reputation: 2505

Or if you want something to use directly from Java, try Xuggler, a Java-based interface to FFmpeg.

Upvotes: 0

bta
bta

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

khelll
khelll

Reputation: 24020

Use FFmpeg gem in Ruby, it's really cool and easy to use.

Upvotes: 1

Antony Hatchkins
Antony Hatchkins

Reputation: 34024

ffdshow is a great lib for that.

libavcodec to be more precise.

Upvotes: 1

TheHippo
TheHippo

Reputation: 63179

Take a look at FFmpeg. You could use as a command line tool.

Upvotes: -1

amir beygi
amir beygi

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

Related Questions