Click here to Skip to main content
14,240,836 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100