Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi,
I want to convert a any video file format to convert into avi video file using C# code. Is there any way to convert the video file like this, Please help me. Thank you..
Posted
Updated 22-Mar-17 6:15am
Comments
Steve44 15-Mar-13 3:11am    
Take a look at the AForge.NET (http://www.codeproject.com/Articles/16859/AForge-NET-open-source-framework) framework, this should contain everything for the video converter.

1 solution

the simple answer is no. you need specific "converter" for each format (and it must be properly installed and licenced and so on). this is no easy task. however, the easy way is to execute a commandline tool like vlc (which is capable of doing so) e.g.:
"C:\Program Files (x86)\VideoLAN\VLC\vlc" -I dummy -vvv %1 --sout=#transcode{vcodec="h264",vb="512",fps="23.97",scale="1",acodec="mpga",ab="128","channels=2",samplerate="44100"}:standard{access="file",mux="dummy",dst="%_commanm%.mp4"} vlc://quit

use
System.Diagnostics.Process.Start()

to do so. regards.
 
Share this answer
 
Comments
ssyuvaraja 15-Mar-13 6:34am    
Thank you. Where i have to specify the input an output file names.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900