Esempio n. 1
0
        private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            if (cropEnd == string.Empty)
            {
                FfmpegHelper.Crop(backgroundWorker, this.Input, this.Output, cropStart);
            }
            else
            {
                FfmpegHelper.Crop(backgroundWorker, this.Input, this.Output, cropStart, cropEnd);
            }

            cropStart = cropEnd = string.Empty;
        }
Esempio n. 2
0
        private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            FfmpegHelper.Convert(backgroundWorker, this.Input, this.Output);

            if (!string.IsNullOrEmpty(converterStart))
            {
                if (string.IsNullOrEmpty(converterEnd))
                {
                    FfmpegHelper.Crop(backgroundWorker, this.Output, this.Output, converterStart);
                }
                else
                {
                    FfmpegHelper.Crop(backgroundWorker, this.Output, this.Output, converterStart, converterEnd);
                }
            }

            this.converterStart = this.converterEnd = string.Empty;
        }