string source = @"C:\Adstringo\AdstringoIn\source\Wildlife.mp4"; string destination = @"C:\Adstringo\wildlife.mp4"; string logo=@"D:\logo02.png"; Process ffmpeg; ffmpeg = new Process(); ffmpeg.StartInfo.Arguments = " -i \"" + source + "\" -strict experimental -s " + "720:480" + " -ac 2 -ar 44100 -b " + "256" + "k \"" + destination + "\""; // arguments ! //ffmpeg.StartInfo.Arguments = " -i \"" + source + "\" -i \"" + logo + "\" -filter_complex overlay=(main_w/2)-(overlay_w/2):(main_h/2)-(overlay_h)/2 \"" + destination + "\""; string path = Path.Combine(Environment.CurrentDirectory, @"adstringo\adstringo.exe"); ffmpeg.StartInfo.FileName = path; ffmpeg.StartInfo.CreateNoWindow = true; ffmpeg.StartInfo.UseShellExecute = false; ffmpeg.StartInfo.CreateNoWindow = true; ffmpeg.StartInfo.RedirectStandardOutput = false; ffmpeg.Start(); Double a = Duration(textBox2.Text); int time = Convert.ToInt32(a * 500); //Thread.Sleep(time); lbl_error.Visible = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)