views:

556

answers:

8

I need to allow web site users to upload videos to my web site in various common formats. From these I need to convert them to Flash video, and also limit their lengths and size. I need to do this automatically as part of the web site processing.

Is there some simple tool that will allow me to do this? If not, can you point me in a direction that might help me out.

Thanks.

+1  A: 

ffmpeg or mencoder is usually used for this kind of thing.

As you are using asp.net you should really be interfacing with the DLL. There is also a c# wrapper available for ffmpeg.

Matt
+7  A: 

With ffmpeg you can run the following command to convert input.avi to output.flv for flash:

ffmpeg -y -i input.avi -acodec mp3 -f flv output.flv
aleemb
Whilst this approach will certainly work, I would recommend interfacing directly with the DLL.
Matt
@Matt: Is there any documentation for that?
Zafer
A: 

I use ffmpeg and it works perfectly well doing this with my videos.

A: 

Wondershare Video Converter Platinum is the best video converter software that can convert all common video files to various formats to meet different format requirements and for playback on most popular players including iPod, iPhone, Apple TV, Zune, PSP, Pocket PC, Creative Zen, PS3, Xbox 360, Archos and more.

It is also the best HD video converter and AVCHD video converter which can convert HD video and AVCHD video to avi, convert m2ts to avi, convert mts to avi, convert ts to mp4 etc.. with excellent quality..

A: 

Doremisoft Video to Flash converter for mac, a professional flash FLV and SWF maker, can convert almost all video formats to Flash, FLV, SWF on mac. The supported video formats include MOV(QuickTime), M4V, 3GP, MP4, AVI, WMV, RM, RMVB, MKV, VOB, MPG, MPEG-1, MPEG-2, MPEG-4, FLV, HD video, AVCHD, MTS, M2TS, TS, T2S, TP, TRP, DV, etc. The special feature lies in that it can automatically embed the videos in a HTML webpage with flash player. http://www.flashconverterformac.com/video-to-flash-converter-mac/

panamadany
A: 

I have used several different programs for this and they work very well.

The first one that I would recommend you try is Handbreak at handbrake.fr.

You can also use VisualHub to do the same thing but it is not as quick and easy. However, it offers more functionality to do other tasks.

Another option is a shareware called iSkysoft video converter.

I have also heard that VLC player can do this for you.

Good luck!

Jod
A: 

I've had this issue recently too, and I didn't want to go down the route of implementing a video conversion backend on the server.

In the end, what seemed like a reasonable compromise would be to make use of a video conversion service supplied by one of the online services - something like bits on the run's API, although it is a paid service, seemed like it would straight forward enough to implement as a web service.

However, if this additional cost is not acceptable, then in a PHP world, I would try to use something like ffmpeg-php. I guess there must be an equivalent in the asp.net world too, but bear in mind that video conversion can potentially take a really long time, and kicking off this process in a web scripting language is not ideal, if you are waiting for the request to finish, or are facing execution timeouts.

danp
A: 

I think you need a server side software like Adobe Flash Media Server. It can convert video automatically to flv on your server.

bluemind