convert video files to flv format in c#
How do I get video file from user and convert开发者_如何学运维 it into flv format?
A solution to have multimedia support that converts virtually ANYTHING you throw at it is to use FFmpeg and MEncoder, you'll have quite a good input/output support:
- Input Image Sequence: jpg, pgm, png, ppm (with sequentially numbered-ONLY filenames) having the same filename numbered-ONLY format. Example: 0001.jpg --up to--> 0999.jpg note that this format will NOT work name_0001.jpg --up to--> name_0999.jpg (take out name_)
- Input Video format: 3gp, 3g2, amv, asf, avi, dat, dvr-ms, fli, flc, flv, m2ts, mpg, mkv, mov m4v, mp4, nsv, ogm, qt, rm(vb), str, swf, ts, trp, ty, ty+, tmf, viv, vob, wmv ..
- Input Audio format: aac, ac3, amr, flac, mmf, m4a, mp2, mp3, mpc, ogg, ra, wav, wma ..
- Input AviSynth Script Files: avs. To write a script and specify advanced encoding commands using AviSynth scripts!
(taken from SUPER's website)
NOTE: it has MUCH more support than "just" that. those are just some of the capabilities!! :D
Here is some example code and a C#/.NET library that will convert audio to video, and vice versa using an FFMpeg wrapper. It's explained here:
http://ivolo.mit.edu/post/Convert-Audio-Video-to-Any-Format-using-C.aspx
精彩评论