Exemple #1
0
        public static void Mp4boxMux(string vedio, string audio, string outfile, int audiodelay = 0)
        {
            string Arguments = string.Format("-add \"{1}\" -add \"{2}\" {3} \"{0}\"",
                                             outfile, vedio, audio, audiodelay == 0 ? "" : ("-delay 2=" + audiodelay)
                                             );

            ProcessCmd.Run(Mp4boxExcute, Arguments);
        }
Exemple #2
0
 public static void Extract(string filename, string ID)
 {
     ProcessCmd.Run(Mp4boxExcute, string.Format("{0 } -raw {1}", filename, ID));
 }
Exemple #3
0
    public static void ConvertMusic(string input, string output, string q, string tracker)
    {
        string bat = string.Format("{0} {3}: {1} -q {2}", input, q, output, tracker);

        ProcessCmd.Run(Eac3toExecute, bat);
    }
        public static void MkvMux(string vedio, string outfile)
        {
            string Arguments = $"--output {outfile.Maohao()}  ( { vedio.Maohao()} )";

            ProcessCmd.Run(MkvMergeExcute, Arguments);
        }
 //混流
 public static void Mux(string vedio, string audio, string output)
 {
     ProcessCmd.Run(FFmpegExecute, string.Format(" -i {0} -vcodec copy -i {1} -acodec copy {3}", vedio.Maohao(), audio.Maohao(), output.Maohao()));
 }
 //分离音频文件
 public static void DemuxAudio(string vedio, string output)
 {
     ProcessCmd.Run(FFmpegExecute, string.Format(" -i {0} -acodec copy -vn {1} ", vedio.Maohao(), output.Maohao()));
 }