コード例 #1
0
        private void convertProcess()
        {
            char   comm     = '"';
            string filename = Path.GetFileNameWithoutExtension(mp3txt.Text);

            convertBtn.Enabled = false;
            stopBtn.Enabled    = true;
            Conversion convert = new Conversion();

            convert.AddParameter(@"-r 1 -loop 1 -i " + comm + imgtxt.Text + comm + " -i " + comm + mp3txt.Text + comm + " -acodec copy -r 1 -shortest -vf scale=1280:-1 " + comm + outputtxt.Text + "\\" + filename + "_(video).flv" + comm);
            convert.OnProgress += Convert_OnProgress;
            convert.Start();
        }