I wanted to transcode a video with simple Windows Forms program.
I'm creating process with arguments.
My code:
string vlc = @"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe";
string dest=@"C:\Users\pc\Desktop\test.mp4";
ProcessStartInfo p = new ProcessStartInfo
{
FileName = vlc,
Arguments = @"% vlc C:/video.mpg :sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=file{no-overwrite},mux=mp4,dst="+dest+"}"
};
Process x = Process.Start(p);
x.WaitForExit();
The problem is that it not working. The program launches VLC and there's nothing happening or getting errors from VLC