Example #1
0
        private void CreateJob(string fileName)
        {
            EncodeInfo inJob = new EncodeInfo {
                InputFile = fileName, Input = Processing.DetectInputType(fileName)
            };

            if ((string.IsNullOrEmpty(inJob.InputFile)) || (inJob.Input == InputType.InputUndefined))
            {
                return;
            }

            StreamSelect streamSelection = new StreamSelect {
                JobInfo = inJob, Owner = this
            };
            bool?retValue = streamSelection.ShowDialog();

            if (retValue != true)
            {
                return;
            }

            Processing.CheckSubtitles(inJob);
            Processing.CheckStreamLimit(inJob);
            SetOutput(inJob);
            SetInOutTemp(inJob);
            JobCollection.Add(inJob);
        }