Пример #1
0
 private void btnSaveSettings_Click(object sender, EventArgs e)
 {
     Form1.advancedSettings.AudioBitrate         = cAudioBitrate.Text;
     Form1.advancedSettings.AudioEncoder         = AdvancedSettings.AudioEncoderComboStringToEncoder(cAudioCodec.Text);
     Form1.advancedSettings.AudioEncodingEnabled = chkEncodeAudio.Checked;
     this.Close();
 }
Пример #2
0
        public void Merge(List <string> fileList, string outputFile, string extention, ref AdvancedSettings advancedSettings)
        {
            WriteFileList(fileList);
            string arguments = "";

            if (advancedSettings.AudioEncodingEnabled == true)
            {
                arguments = String.Format("-f concat -i \"{0}\" -c:v copy -c:a {1} -b:a {2} \"{3}\"", listPath, advancedSettings.AudioEncoder, advancedSettings.AudioBitrate, outputFile + extention);
            }
            else
            {
                arguments = String.Format("-f concat -i \"{0}\" -c copy \"{1}\"", listPath, outputFile + extention);
            }

            encoder.Encode(arguments);
        }