public EncodeParameters GetEncodeParameters(InputFile file) { return(new EncodeParameters( inputPath: file.GetFilePath(), outputFolder: savePathLabel.Text, outputName: autoNamingBox.Checked? $"{file.GetFileName()}_V{selectedVCodec}_A{selectedACodec}_{selectedPreset}" : $"{prefixBox.Texts}{file.GetFileName()}{postfixBox.Texts}", videoCodec: selectedVCodec, audioCodec: selectedACodec, preset: selectedPreset, extention: selectedExtension, bitrateBox.Checked ? bitRate : file.GetFileBitrate() / 1024f, width: customWidthBox.Checked ? ((int)customWidthNumeric.Value) : file.GetFileWidth(), height: customHeightBox.Checked ? ((int)customHeightNumeric.Value) : file.GetFileHeight(), horizontalFlip: horFlipBox.Checked, verticalFlip: verFlipBox.Checked, saveAspect: saveAspectButton.Checked )); }