From 7a8458299d57b0e3db5bba476fe2256a904aadbf Mon Sep 17 00:00:00 2001
From: Simon Aarons <40786398+simontime@users.noreply.github.com>
Date: Sat, 29 Jun 2024 16:03:37 +1000
Subject: [PATCH] Add interlacing field order selection
---
Brovicon/Brovicon.csproj.user | 9 +
Brovicon/Main.Designer.cs | 1210 ++++++++++++++++-----------------
Brovicon/Main.cs | 20 +
Brovicon/Main.resx | 62 +-
Brovicon/Scripting.cs | 41 +-
Brovicon/Standards.cs | 8 +
6 files changed, 698 insertions(+), 652 deletions(-)
create mode 100644 Brovicon/Brovicon.csproj.user
diff --git a/Brovicon/Brovicon.csproj.user b/Brovicon/Brovicon.csproj.user
new file mode 100644
index 0000000..c4f260c
--- /dev/null
+++ b/Brovicon/Brovicon.csproj.user
@@ -0,0 +1,9 @@
+
+
+
+
+
+ Form
+
+
+
\ No newline at end of file
diff --git a/Brovicon/Main.Designer.cs b/Brovicon/Main.Designer.cs
index 8d9d4f9..78baed5 100644
--- a/Brovicon/Main.Designer.cs
+++ b/Brovicon/Main.Designer.cs
@@ -28,821 +28,753 @@ protected override void Dispose(bool disposing)
///
private void InitializeComponent()
{
- this.boxOutputResolution = new System.Windows.Forms.ComboBox();
- this.boxOutputFrameRate = new System.Windows.Forms.ComboBox();
- this.chkNoiseReduction = new System.Windows.Forms.CheckBox();
- this.dlgInputFile = new System.Windows.Forms.OpenFileDialog();
- this.txtOutputFilename = new System.Windows.Forms.TextBox();
- this.btnOpen = new System.Windows.Forms.Button();
- this.statusStrip = new System.Windows.Forms.StatusStrip();
- this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel();
- this.progressBar = new System.Windows.Forms.ToolStripProgressBar();
- this.lblPercentage = new System.Windows.Forms.ToolStripStatusLabel();
- this.lblInput = new System.Windows.Forms.Label();
- this.lblOutput = new System.Windows.Forms.Label();
- this.btnSave = new System.Windows.Forms.Button();
- this.txtInputFilename = new System.Windows.Forms.TextBox();
- this.grpProcessing = new System.Windows.Forms.GroupBox();
- this.grpProcessingAudio = new System.Windows.Forms.GroupBox();
- this.chkNormaliseAudio = new System.Windows.Forms.CheckBox();
- this.chkMixStereo = new System.Windows.Forms.CheckBox();
- this.grpProcessingVideo = new System.Windows.Forms.GroupBox();
- this.lblForce = new System.Windows.Forms.Label();
- this.chkForceProgressive = new System.Windows.Forms.CheckBox();
- this.chkForceInterlaced = new System.Windows.Forms.CheckBox();
- this.grpFileInformation = new System.Windows.Forms.GroupBox();
- this.grpVideoInformationOutput = new System.Windows.Forms.GroupBox();
- this.lblInfoOutputAudioBitRate = new System.Windows.Forms.Label();
- this.lblInfoOutputVideoCodec = new System.Windows.Forms.Label();
- this.lblInfoOutputAudioSampling = new System.Windows.Forms.Label();
- this.lblInfoOutputVideoBitRate = new System.Windows.Forms.Label();
- this.lblInfoOutputAudioCodec = new System.Windows.Forms.Label();
- this.lblInfoOutputVideoDimensions = new System.Windows.Forms.Label();
- this.grpVideoInformationInput = new System.Windows.Forms.GroupBox();
- this.lblInfoInputAudioBitRate = new System.Windows.Forms.Label();
- this.lblInfoInputAudioSampling = new System.Windows.Forms.Label();
- this.lblInfoInputAudioCodec = new System.Windows.Forms.Label();
- this.lblInfoInputVideoDimensions = new System.Windows.Forms.Label();
- this.lblInfoInputVideoBitRate = new System.Windows.Forms.Label();
- this.lblInfoInputVideoCodec = new System.Windows.Forms.Label();
- this.dlgOutputFile = new System.Windows.Forms.SaveFileDialog();
- this.grpOutput = new System.Windows.Forms.GroupBox();
- this.grpOutputEncoding = new System.Windows.Forms.GroupBox();
- this.lblOutputAudioBitRate = new System.Windows.Forms.Label();
- this.boxOutputAudioBitRate = new System.Windows.Forms.ComboBox();
- this.lblOutputVideoBitRate = new System.Windows.Forms.Label();
- this.boxOutputVideoBitRate = new System.Windows.Forms.ComboBox();
- this.boxOutputAudioCodec = new System.Windows.Forms.ComboBox();
- this.lblOutputVideoCodec = new System.Windows.Forms.Label();
- this.lblOutputAudioCodec = new System.Windows.Forms.Label();
- this.boxOutputVideoCodec = new System.Windows.Forms.ComboBox();
- this.grpOutputPresentation = new System.Windows.Forms.GroupBox();
- this.lblOutputFrameRate = new System.Windows.Forms.Label();
- this.lblOutputResolution = new System.Windows.Forms.Label();
- this.boxResizeMode = new System.Windows.Forms.ComboBox();
- this.boxStretch = new System.Windows.Forms.ComboBox();
- this.boxCrop = new System.Windows.Forms.ComboBox();
- this.lblStretch = new System.Windows.Forms.Label();
- this.lblCrop = new System.Windows.Forms.Label();
- this.grpResize = new System.Windows.Forms.GroupBox();
- this.btnConvert = new System.Windows.Forms.Button();
- this.statusStrip.SuspendLayout();
- this.grpProcessing.SuspendLayout();
- this.grpProcessingAudio.SuspendLayout();
- this.grpProcessingVideo.SuspendLayout();
- this.grpFileInformation.SuspendLayout();
- this.grpVideoInformationOutput.SuspendLayout();
- this.grpVideoInformationInput.SuspendLayout();
- this.grpOutput.SuspendLayout();
- this.grpOutputEncoding.SuspendLayout();
- this.grpOutputPresentation.SuspendLayout();
- this.grpResize.SuspendLayout();
- this.SuspendLayout();
+ boxOutputResolution = new ComboBox();
+ boxOutputFrameRate = new ComboBox();
+ chkNoiseReduction = new CheckBox();
+ dlgInputFile = new OpenFileDialog();
+ txtOutputFilename = new TextBox();
+ btnOpen = new Button();
+ statusStrip = new StatusStrip();
+ lblStatus = new ToolStripStatusLabel();
+ progressBar = new ToolStripProgressBar();
+ lblPercentage = new ToolStripStatusLabel();
+ lblInput = new Label();
+ lblOutput = new Label();
+ btnSave = new Button();
+ txtInputFilename = new TextBox();
+ grpProcessing = new GroupBox();
+ grpProcessingAudio = new GroupBox();
+ chkNormaliseAudio = new CheckBox();
+ chkMixStereo = new CheckBox();
+ grpProcessingVideo = new GroupBox();
+ lblFieldOrder = new Label();
+ boxFieldOrder = new ComboBox();
+ lblForce = new Label();
+ chkForceProgressive = new CheckBox();
+ chkForceInterlaced = new CheckBox();
+ grpFileInformation = new GroupBox();
+ grpVideoInformationOutput = new GroupBox();
+ lblInfoOutputAudioBitRate = new Label();
+ lblInfoOutputVideoCodec = new Label();
+ lblInfoOutputAudioSampling = new Label();
+ lblInfoOutputVideoBitRate = new Label();
+ lblInfoOutputAudioCodec = new Label();
+ lblInfoOutputVideoDimensions = new Label();
+ grpVideoInformationInput = new GroupBox();
+ lblInfoInputAudioBitRate = new Label();
+ lblInfoInputAudioSampling = new Label();
+ lblInfoInputAudioCodec = new Label();
+ lblInfoInputVideoDimensions = new Label();
+ lblInfoInputVideoBitRate = new Label();
+ lblInfoInputVideoCodec = new Label();
+ dlgOutputFile = new SaveFileDialog();
+ grpOutput = new GroupBox();
+ grpOutputEncoding = new GroupBox();
+ lblOutputAudioBitRate = new Label();
+ boxOutputAudioBitRate = new ComboBox();
+ lblOutputVideoBitRate = new Label();
+ boxOutputVideoBitRate = new ComboBox();
+ boxOutputAudioCodec = new ComboBox();
+ lblOutputVideoCodec = new Label();
+ lblOutputAudioCodec = new Label();
+ boxOutputVideoCodec = new ComboBox();
+ grpOutputPresentation = new GroupBox();
+ lblOutputFrameRate = new Label();
+ lblOutputResolution = new Label();
+ boxResizeMode = new ComboBox();
+ boxStretch = new ComboBox();
+ boxCrop = new ComboBox();
+ lblStretch = new Label();
+ lblCrop = new Label();
+ grpResize = new GroupBox();
+ btnConvert = new Button();
+ statusStrip.SuspendLayout();
+ grpProcessing.SuspendLayout();
+ grpProcessingAudio.SuspendLayout();
+ grpProcessingVideo.SuspendLayout();
+ grpFileInformation.SuspendLayout();
+ grpVideoInformationOutput.SuspendLayout();
+ grpVideoInformationInput.SuspendLayout();
+ grpOutput.SuspendLayout();
+ grpOutputEncoding.SuspendLayout();
+ grpOutputPresentation.SuspendLayout();
+ grpResize.SuspendLayout();
+ SuspendLayout();
//
// boxOutputResolution
//
- this.boxOutputResolution.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxOutputResolution.FormattingEnabled = true;
- this.boxOutputResolution.Items.AddRange(new object[] {
- "720x480",
- "720x576",
- "1280x720",
- "1440x1080",
- "1920x1080",
- "2880x2160",
- "3840x2160"});
- this.boxOutputResolution.Location = new System.Drawing.Point(74, 20);
- this.boxOutputResolution.Margin = new System.Windows.Forms.Padding(2);
- this.boxOutputResolution.Name = "boxOutputResolution";
- this.boxOutputResolution.Size = new System.Drawing.Size(109, 23);
- this.boxOutputResolution.TabIndex = 0;
- this.boxOutputResolution.SelectedIndexChanged += new System.EventHandler(this.boxOutputResolution_SelectedIndexChanged);
+ boxOutputResolution.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxOutputResolution.FormattingEnabled = true;
+ boxOutputResolution.Items.AddRange(new object[] { "720x480", "720x576", "1280x720", "1440x1080", "1920x1080", "2880x2160", "3840x2160" });
+ boxOutputResolution.Location = new Point(74, 20);
+ boxOutputResolution.Margin = new Padding(2);
+ boxOutputResolution.Name = "boxOutputResolution";
+ boxOutputResolution.Size = new Size(109, 23);
+ boxOutputResolution.TabIndex = 0;
+ boxOutputResolution.SelectedIndexChanged += boxOutputResolution_SelectedIndexChanged;
//
// boxOutputFrameRate
//
- this.boxOutputFrameRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxOutputFrameRate.Enabled = false;
- this.boxOutputFrameRate.FormattingEnabled = true;
- this.boxOutputFrameRate.Items.AddRange(new object[] {
- "23.976p",
- "24p",
- "25p",
- "29.97p",
- "30p",
- "50p",
- "59.94p",
- "60p",
- "50i",
- "59.94i",
- "60i"});
- this.boxOutputFrameRate.Location = new System.Drawing.Point(259, 20);
- this.boxOutputFrameRate.Margin = new System.Windows.Forms.Padding(2);
- this.boxOutputFrameRate.Name = "boxOutputFrameRate";
- this.boxOutputFrameRate.Size = new System.Drawing.Size(76, 23);
- this.boxOutputFrameRate.TabIndex = 1;
- this.boxOutputFrameRate.SelectedIndexChanged += new System.EventHandler(this.boxOutputFrameRate_SelectedIndexChanged);
+ boxOutputFrameRate.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxOutputFrameRate.Enabled = false;
+ boxOutputFrameRate.FormattingEnabled = true;
+ boxOutputFrameRate.Items.AddRange(new object[] { "23.976p", "24p", "25p", "29.97p", "30p", "50p", "59.94p", "60p", "50i", "59.94i", "60i" });
+ boxOutputFrameRate.Location = new Point(259, 20);
+ boxOutputFrameRate.Margin = new Padding(2);
+ boxOutputFrameRate.Name = "boxOutputFrameRate";
+ boxOutputFrameRate.Size = new Size(76, 23);
+ boxOutputFrameRate.TabIndex = 1;
+ boxOutputFrameRate.SelectedIndexChanged += boxOutputFrameRate_SelectedIndexChanged;
//
// chkNoiseReduction
//
- this.chkNoiseReduction.AutoSize = true;
- this.chkNoiseReduction.Location = new System.Drawing.Point(9, 19);
- this.chkNoiseReduction.Margin = new System.Windows.Forms.Padding(2);
- this.chkNoiseReduction.Name = "chkNoiseReduction";
- this.chkNoiseReduction.Size = new System.Drawing.Size(110, 19);
- this.chkNoiseReduction.TabIndex = 2;
- this.chkNoiseReduction.Text = "Noise reduction";
- this.chkNoiseReduction.UseVisualStyleBackColor = true;
+ chkNoiseReduction.AutoSize = true;
+ chkNoiseReduction.Location = new Point(9, 19);
+ chkNoiseReduction.Margin = new Padding(2);
+ chkNoiseReduction.Name = "chkNoiseReduction";
+ chkNoiseReduction.Size = new Size(110, 19);
+ chkNoiseReduction.TabIndex = 2;
+ chkNoiseReduction.Text = "Noise reduction";
+ chkNoiseReduction.UseVisualStyleBackColor = true;
//
// dlgInputFile
//
- this.dlgInputFile.Filter = "All files|*.*";
+ dlgInputFile.Filter = "All files|*.*";
//
// txtOutputFilename
//
- this.txtOutputFilename.Location = new System.Drawing.Point(60, 33);
- this.txtOutputFilename.Margin = new System.Windows.Forms.Padding(2);
- this.txtOutputFilename.Name = "txtOutputFilename";
- this.txtOutputFilename.Size = new System.Drawing.Size(270, 23);
- this.txtOutputFilename.TabIndex = 5;
+ txtOutputFilename.Location = new Point(60, 33);
+ txtOutputFilename.Margin = new Padding(2);
+ txtOutputFilename.Name = "txtOutputFilename";
+ txtOutputFilename.Size = new Size(270, 23);
+ txtOutputFilename.TabIndex = 5;
//
// btnOpen
//
- this.btnOpen.Location = new System.Drawing.Point(334, 5);
- this.btnOpen.Margin = new System.Windows.Forms.Padding(2);
- this.btnOpen.Name = "btnOpen";
- this.btnOpen.Size = new System.Drawing.Size(25, 25);
- this.btnOpen.TabIndex = 6;
- this.btnOpen.Text = "...";
- this.btnOpen.UseVisualStyleBackColor = true;
- this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
+ btnOpen.Location = new Point(334, 5);
+ btnOpen.Margin = new Padding(2);
+ btnOpen.Name = "btnOpen";
+ btnOpen.Size = new Size(25, 25);
+ btnOpen.TabIndex = 6;
+ btnOpen.Text = "...";
+ btnOpen.UseVisualStyleBackColor = true;
+ btnOpen.Click += btnOpen_Click;
//
// statusStrip
//
- this.statusStrip.ImageScalingSize = new System.Drawing.Size(28, 28);
- this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.lblStatus,
- this.progressBar,
- this.lblPercentage});
- this.statusStrip.Location = new System.Drawing.Point(0, 597);
- this.statusStrip.Name = "statusStrip";
- this.statusStrip.Padding = new System.Windows.Forms.Padding(1, 0, 8, 0);
- this.statusStrip.Size = new System.Drawing.Size(369, 22);
- this.statusStrip.SizingGrip = false;
- this.statusStrip.TabIndex = 7;
+ statusStrip.ImageScalingSize = new Size(28, 28);
+ statusStrip.Items.AddRange(new ToolStripItem[] { lblStatus, progressBar, lblPercentage });
+ statusStrip.Location = new Point(0, 619);
+ statusStrip.Name = "statusStrip";
+ statusStrip.Padding = new Padding(1, 0, 8, 0);
+ statusStrip.Size = new Size(369, 22);
+ statusStrip.SizingGrip = false;
+ statusStrip.TabIndex = 7;
//
// lblStatus
//
- this.lblStatus.Name = "lblStatus";
- this.lblStatus.Size = new System.Drawing.Size(26, 17);
- this.lblStatus.Text = "Idle";
+ lblStatus.Name = "lblStatus";
+ lblStatus.Size = new Size(26, 17);
+ lblStatus.Text = "Idle";
//
// progressBar
//
- this.progressBar.Name = "progressBar";
- this.progressBar.Size = new System.Drawing.Size(250, 16);
- this.progressBar.Step = 1;
+ progressBar.Name = "progressBar";
+ progressBar.Size = new Size(250, 16);
+ progressBar.Step = 1;
//
// lblPercentage
//
- this.lblPercentage.Name = "lblPercentage";
- this.lblPercentage.Size = new System.Drawing.Size(12, 17);
- this.lblPercentage.Text = "-";
+ lblPercentage.Name = "lblPercentage";
+ lblPercentage.Size = new Size(12, 17);
+ lblPercentage.Text = "-";
//
// lblInput
//
- this.lblInput.AutoSize = true;
- this.lblInput.Location = new System.Drawing.Point(8, 10);
- this.lblInput.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
- this.lblInput.Name = "lblInput";
- this.lblInput.Size = new System.Drawing.Size(38, 15);
- this.lblInput.TabIndex = 8;
- this.lblInput.Text = "Input:";
+ lblInput.AutoSize = true;
+ lblInput.Location = new Point(8, 10);
+ lblInput.Margin = new Padding(2, 0, 2, 0);
+ lblInput.Name = "lblInput";
+ lblInput.Size = new Size(38, 15);
+ lblInput.TabIndex = 8;
+ lblInput.Text = "Input:";
//
// lblOutput
//
- this.lblOutput.AutoSize = true;
- this.lblOutput.Location = new System.Drawing.Point(8, 37);
- this.lblOutput.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
- this.lblOutput.Name = "lblOutput";
- this.lblOutput.Size = new System.Drawing.Size(48, 15);
- this.lblOutput.TabIndex = 11;
- this.lblOutput.Text = "Output:";
+ lblOutput.AutoSize = true;
+ lblOutput.Location = new Point(8, 37);
+ lblOutput.Margin = new Padding(2, 0, 2, 0);
+ lblOutput.Name = "lblOutput";
+ lblOutput.Size = new Size(48, 15);
+ lblOutput.TabIndex = 11;
+ lblOutput.Text = "Output:";
//
// btnSave
//
- this.btnSave.Location = new System.Drawing.Point(334, 32);
- this.btnSave.Margin = new System.Windows.Forms.Padding(2);
- this.btnSave.Name = "btnSave";
- this.btnSave.Size = new System.Drawing.Size(25, 25);
- this.btnSave.TabIndex = 10;
- this.btnSave.Text = "...";
- this.btnSave.UseVisualStyleBackColor = true;
- this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
+ btnSave.Location = new Point(334, 32);
+ btnSave.Margin = new Padding(2);
+ btnSave.Name = "btnSave";
+ btnSave.Size = new Size(25, 25);
+ btnSave.TabIndex = 10;
+ btnSave.Text = "...";
+ btnSave.UseVisualStyleBackColor = true;
+ btnSave.Click += btnSave_Click;
//
// txtInputFilename
//
- this.txtInputFilename.Location = new System.Drawing.Point(60, 6);
- this.txtInputFilename.Margin = new System.Windows.Forms.Padding(2);
- this.txtInputFilename.Name = "txtInputFilename";
- this.txtInputFilename.Size = new System.Drawing.Size(270, 23);
- this.txtInputFilename.TabIndex = 9;
+ txtInputFilename.Location = new Point(60, 6);
+ txtInputFilename.Margin = new Padding(2);
+ txtInputFilename.Name = "txtInputFilename";
+ txtInputFilename.Size = new Size(270, 23);
+ txtInputFilename.TabIndex = 9;
//
// grpProcessing
//
- this.grpProcessing.Controls.Add(this.grpProcessingAudio);
- this.grpProcessing.Controls.Add(this.grpProcessingVideo);
- this.grpProcessing.Location = new System.Drawing.Point(11, 207);
- this.grpProcessing.Margin = new System.Windows.Forms.Padding(2);
- this.grpProcessing.Name = "grpProcessing";
- this.grpProcessing.Padding = new System.Windows.Forms.Padding(2);
- this.grpProcessing.Size = new System.Drawing.Size(347, 120);
- this.grpProcessing.TabIndex = 12;
- this.grpProcessing.TabStop = false;
- this.grpProcessing.Text = "Processing";
+ grpProcessing.Controls.Add(grpProcessingAudio);
+ grpProcessing.Controls.Add(grpProcessingVideo);
+ grpProcessing.Location = new Point(11, 207);
+ grpProcessing.Margin = new Padding(2);
+ grpProcessing.Name = "grpProcessing";
+ grpProcessing.Padding = new Padding(2);
+ grpProcessing.Size = new Size(347, 142);
+ grpProcessing.TabIndex = 12;
+ grpProcessing.TabStop = false;
+ grpProcessing.Text = "Processing";
//
// grpProcessingAudio
//
- this.grpProcessingAudio.Controls.Add(this.chkNormaliseAudio);
- this.grpProcessingAudio.Controls.Add(this.chkMixStereo);
- this.grpProcessingAudio.Location = new System.Drawing.Point(4, 70);
- this.grpProcessingAudio.Name = "grpProcessingAudio";
- this.grpProcessingAudio.Size = new System.Drawing.Size(339, 45);
- this.grpProcessingAudio.TabIndex = 7;
- this.grpProcessingAudio.TabStop = false;
- this.grpProcessingAudio.Text = "Audio";
+ grpProcessingAudio.Controls.Add(chkNormaliseAudio);
+ grpProcessingAudio.Controls.Add(chkMixStereo);
+ grpProcessingAudio.Location = new Point(4, 96);
+ grpProcessingAudio.Name = "grpProcessingAudio";
+ grpProcessingAudio.Size = new Size(339, 45);
+ grpProcessingAudio.TabIndex = 7;
+ grpProcessingAudio.TabStop = false;
+ grpProcessingAudio.Text = "Audio";
//
// chkNormaliseAudio
//
- this.chkNormaliseAudio.AutoSize = true;
- this.chkNormaliseAudio.Location = new System.Drawing.Point(9, 19);
- this.chkNormaliseAudio.Margin = new System.Windows.Forms.Padding(2);
- this.chkNormaliseAudio.Name = "chkNormaliseAudio";
- this.chkNormaliseAudio.Size = new System.Drawing.Size(113, 19);
- this.chkNormaliseAudio.TabIndex = 5;
- this.chkNormaliseAudio.Text = "Normalise audio";
- this.chkNormaliseAudio.UseVisualStyleBackColor = true;
+ chkNormaliseAudio.AutoSize = true;
+ chkNormaliseAudio.Location = new Point(9, 19);
+ chkNormaliseAudio.Margin = new Padding(2);
+ chkNormaliseAudio.Name = "chkNormaliseAudio";
+ chkNormaliseAudio.Size = new Size(113, 19);
+ chkNormaliseAudio.TabIndex = 5;
+ chkNormaliseAudio.Text = "Normalise audio";
+ chkNormaliseAudio.UseVisualStyleBackColor = true;
//
// chkMixStereo
//
- this.chkMixStereo.AutoSize = true;
- this.chkMixStereo.Location = new System.Drawing.Point(126, 19);
- this.chkMixStereo.Margin = new System.Windows.Forms.Padding(2);
- this.chkMixStereo.Name = "chkMixStereo";
- this.chkMixStereo.Size = new System.Drawing.Size(95, 19);
- this.chkMixStereo.TabIndex = 11;
- this.chkMixStereo.Text = "Mix to stereo";
- this.chkMixStereo.UseVisualStyleBackColor = true;
+ chkMixStereo.AutoSize = true;
+ chkMixStereo.Location = new Point(126, 19);
+ chkMixStereo.Margin = new Padding(2);
+ chkMixStereo.Name = "chkMixStereo";
+ chkMixStereo.Size = new Size(95, 19);
+ chkMixStereo.TabIndex = 11;
+ chkMixStereo.Text = "Mix to stereo";
+ chkMixStereo.UseVisualStyleBackColor = true;
//
// grpProcessingVideo
//
- this.grpProcessingVideo.Controls.Add(this.lblForce);
- this.grpProcessingVideo.Controls.Add(this.chkNoiseReduction);
- this.grpProcessingVideo.Controls.Add(this.chkForceProgressive);
- this.grpProcessingVideo.Controls.Add(this.chkForceInterlaced);
- this.grpProcessingVideo.Location = new System.Drawing.Point(4, 19);
- this.grpProcessingVideo.Name = "grpProcessingVideo";
- this.grpProcessingVideo.Size = new System.Drawing.Size(339, 45);
- this.grpProcessingVideo.TabIndex = 6;
- this.grpProcessingVideo.TabStop = false;
- this.grpProcessingVideo.Text = "Video";
+ grpProcessingVideo.Controls.Add(lblFieldOrder);
+ grpProcessingVideo.Controls.Add(boxFieldOrder);
+ grpProcessingVideo.Controls.Add(lblForce);
+ grpProcessingVideo.Controls.Add(chkNoiseReduction);
+ grpProcessingVideo.Controls.Add(chkForceProgressive);
+ grpProcessingVideo.Controls.Add(chkForceInterlaced);
+ grpProcessingVideo.Location = new Point(4, 19);
+ grpProcessingVideo.Name = "grpProcessingVideo";
+ grpProcessingVideo.Size = new Size(339, 71);
+ grpProcessingVideo.TabIndex = 6;
+ grpProcessingVideo.TabStop = false;
+ grpProcessingVideo.Text = "Video";
+ //
+ // lblFieldOrder
+ //
+ lblFieldOrder.AutoSize = true;
+ lblFieldOrder.Enabled = false;
+ lblFieldOrder.Location = new Point(264, 19);
+ lblFieldOrder.Name = "lblFieldOrder";
+ lblFieldOrder.Size = new Size(66, 15);
+ lblFieldOrder.TabIndex = 21;
+ lblFieldOrder.Text = "Field order:";
+ //
+ // boxFieldOrder
+ //
+ boxFieldOrder.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxFieldOrder.Enabled = false;
+ boxFieldOrder.FormattingEnabled = true;
+ boxFieldOrder.Items.AddRange(new object[] { "Auto", "Upper", "Lower" });
+ boxFieldOrder.Location = new Point(266, 36);
+ boxFieldOrder.Margin = new Padding(2);
+ boxFieldOrder.Name = "boxFieldOrder";
+ boxFieldOrder.Size = new Size(69, 23);
+ boxFieldOrder.TabIndex = 20;
//
// lblForce
//
- this.lblForce.AutoSize = true;
- this.lblForce.Location = new System.Drawing.Point(124, 20);
- this.lblForce.Name = "lblForce";
- this.lblForce.Size = new System.Drawing.Size(39, 15);
- this.lblForce.TabIndex = 11;
- this.lblForce.Text = "Force:";
+ lblForce.AutoSize = true;
+ lblForce.Location = new Point(124, 20);
+ lblForce.Name = "lblForce";
+ lblForce.Size = new Size(39, 15);
+ lblForce.TabIndex = 11;
+ lblForce.Text = "Force:";
//
// chkForceProgressive
//
- this.chkForceProgressive.AutoSize = true;
- this.chkForceProgressive.Location = new System.Drawing.Point(250, 19);
- this.chkForceProgressive.Margin = new System.Windows.Forms.Padding(2);
- this.chkForceProgressive.Name = "chkForceProgressive";
- this.chkForceProgressive.Size = new System.Drawing.Size(86, 19);
- this.chkForceProgressive.TabIndex = 10;
- this.chkForceProgressive.Text = "Progressive";
- this.chkForceProgressive.UseVisualStyleBackColor = true;
- this.chkForceProgressive.CheckedChanged += new System.EventHandler(this.chkForceProgressive_CheckedChanged);
+ chkForceProgressive.AutoSize = true;
+ chkForceProgressive.Location = new Point(168, 41);
+ chkForceProgressive.Margin = new Padding(2);
+ chkForceProgressive.Name = "chkForceProgressive";
+ chkForceProgressive.Size = new Size(86, 19);
+ chkForceProgressive.TabIndex = 10;
+ chkForceProgressive.Text = "Progressive";
+ chkForceProgressive.UseVisualStyleBackColor = true;
+ chkForceProgressive.CheckedChanged += chkForceProgressive_CheckedChanged;
//
// chkForceInterlaced
//
- this.chkForceInterlaced.AutoSize = true;
- this.chkForceInterlaced.Location = new System.Drawing.Point(168, 19);
- this.chkForceInterlaced.Margin = new System.Windows.Forms.Padding(2);
- this.chkForceInterlaced.Name = "chkForceInterlaced";
- this.chkForceInterlaced.Size = new System.Drawing.Size(78, 19);
- this.chkForceInterlaced.TabIndex = 9;
- this.chkForceInterlaced.Text = "Interlaced";
- this.chkForceInterlaced.UseVisualStyleBackColor = true;
- this.chkForceInterlaced.CheckedChanged += new System.EventHandler(this.chkForceInterlaced_CheckedChanged);
+ chkForceInterlaced.AutoSize = true;
+ chkForceInterlaced.Location = new Point(168, 19);
+ chkForceInterlaced.Margin = new Padding(2);
+ chkForceInterlaced.Name = "chkForceInterlaced";
+ chkForceInterlaced.Size = new Size(78, 19);
+ chkForceInterlaced.TabIndex = 9;
+ chkForceInterlaced.Text = "Interlaced";
+ chkForceInterlaced.UseVisualStyleBackColor = true;
+ chkForceInterlaced.CheckedChanged += chkForceInterlaced_CheckedChanged;
//
// grpFileInformation
//
- this.grpFileInformation.Controls.Add(this.grpVideoInformationOutput);
- this.grpFileInformation.Controls.Add(this.grpVideoInformationInput);
- this.grpFileInformation.Location = new System.Drawing.Point(11, 61);
- this.grpFileInformation.Margin = new System.Windows.Forms.Padding(2);
- this.grpFileInformation.Name = "grpFileInformation";
- this.grpFileInformation.Padding = new System.Windows.Forms.Padding(2);
- this.grpFileInformation.Size = new System.Drawing.Size(347, 142);
- this.grpFileInformation.TabIndex = 13;
- this.grpFileInformation.TabStop = false;
- this.grpFileInformation.Text = "File information";
+ grpFileInformation.Controls.Add(grpVideoInformationOutput);
+ grpFileInformation.Controls.Add(grpVideoInformationInput);
+ grpFileInformation.Location = new Point(11, 61);
+ grpFileInformation.Margin = new Padding(2);
+ grpFileInformation.Name = "grpFileInformation";
+ grpFileInformation.Padding = new Padding(2);
+ grpFileInformation.Size = new Size(347, 142);
+ grpFileInformation.TabIndex = 13;
+ grpFileInformation.TabStop = false;
+ grpFileInformation.Text = "File information";
//
// grpVideoInformationOutput
//
- this.grpVideoInformationOutput.Controls.Add(this.lblInfoOutputAudioBitRate);
- this.grpVideoInformationOutput.Controls.Add(this.lblInfoOutputVideoCodec);
- this.grpVideoInformationOutput.Controls.Add(this.lblInfoOutputAudioSampling);
- this.grpVideoInformationOutput.Controls.Add(this.lblInfoOutputVideoBitRate);
- this.grpVideoInformationOutput.Controls.Add(this.lblInfoOutputAudioCodec);
- this.grpVideoInformationOutput.Controls.Add(this.lblInfoOutputVideoDimensions);
- this.grpVideoInformationOutput.Location = new System.Drawing.Point(175, 18);
- this.grpVideoInformationOutput.Margin = new System.Windows.Forms.Padding(2);
- this.grpVideoInformationOutput.Name = "grpVideoInformationOutput";
- this.grpVideoInformationOutput.Padding = new System.Windows.Forms.Padding(2);
- this.grpVideoInformationOutput.Size = new System.Drawing.Size(168, 120);
- this.grpVideoInformationOutput.TabIndex = 15;
- this.grpVideoInformationOutput.TabStop = false;
- this.grpVideoInformationOutput.Text = "Output";
+ grpVideoInformationOutput.Controls.Add(lblInfoOutputAudioBitRate);
+ grpVideoInformationOutput.Controls.Add(lblInfoOutputVideoCodec);
+ grpVideoInformationOutput.Controls.Add(lblInfoOutputAudioSampling);
+ grpVideoInformationOutput.Controls.Add(lblInfoOutputVideoBitRate);
+ grpVideoInformationOutput.Controls.Add(lblInfoOutputAudioCodec);
+ grpVideoInformationOutput.Controls.Add(lblInfoOutputVideoDimensions);
+ grpVideoInformationOutput.Location = new Point(175, 18);
+ grpVideoInformationOutput.Margin = new Padding(2);
+ grpVideoInformationOutput.Name = "grpVideoInformationOutput";
+ grpVideoInformationOutput.Padding = new Padding(2);
+ grpVideoInformationOutput.Size = new Size(168, 120);
+ grpVideoInformationOutput.TabIndex = 15;
+ grpVideoInformationOutput.TabStop = false;
+ grpVideoInformationOutput.Text = "Output";
//
// lblInfoOutputAudioBitRate
//
- this.lblInfoOutputAudioBitRate.AutoSize = true;
- this.lblInfoOutputAudioBitRate.Location = new System.Drawing.Point(6, 99);
- this.lblInfoOutputAudioBitRate.Name = "lblInfoOutputAudioBitRate";
- this.lblInfoOutputAudioBitRate.Size = new System.Drawing.Size(0, 15);
- this.lblInfoOutputAudioBitRate.TabIndex = 11;
+ lblInfoOutputAudioBitRate.AutoSize = true;
+ lblInfoOutputAudioBitRate.Location = new Point(6, 99);
+ lblInfoOutputAudioBitRate.Name = "lblInfoOutputAudioBitRate";
+ lblInfoOutputAudioBitRate.Size = new Size(0, 15);
+ lblInfoOutputAudioBitRate.TabIndex = 11;
//
// lblInfoOutputVideoCodec
//
- this.lblInfoOutputVideoCodec.AutoSize = true;
- this.lblInfoOutputVideoCodec.Location = new System.Drawing.Point(6, 18);
- this.lblInfoOutputVideoCodec.Name = "lblInfoOutputVideoCodec";
- this.lblInfoOutputVideoCodec.Size = new System.Drawing.Size(127, 15);
- this.lblInfoOutputVideoCodec.TabIndex = 6;
- this.lblInfoOutputVideoCodec.Text = "No output file selected";
+ lblInfoOutputVideoCodec.AutoSize = true;
+ lblInfoOutputVideoCodec.Location = new Point(6, 18);
+ lblInfoOutputVideoCodec.Name = "lblInfoOutputVideoCodec";
+ lblInfoOutputVideoCodec.Size = new Size(127, 15);
+ lblInfoOutputVideoCodec.TabIndex = 6;
+ lblInfoOutputVideoCodec.Text = "No output file selected";
//
// lblInfoOutputAudioSampling
//
- this.lblInfoOutputAudioSampling.AutoSize = true;
- this.lblInfoOutputAudioSampling.Location = new System.Drawing.Point(6, 84);
- this.lblInfoOutputAudioSampling.Name = "lblInfoOutputAudioSampling";
- this.lblInfoOutputAudioSampling.Size = new System.Drawing.Size(0, 15);
- this.lblInfoOutputAudioSampling.TabIndex = 10;
+ lblInfoOutputAudioSampling.AutoSize = true;
+ lblInfoOutputAudioSampling.Location = new Point(6, 84);
+ lblInfoOutputAudioSampling.Name = "lblInfoOutputAudioSampling";
+ lblInfoOutputAudioSampling.Size = new Size(0, 15);
+ lblInfoOutputAudioSampling.TabIndex = 10;
//
// lblInfoOutputVideoBitRate
//
- this.lblInfoOutputVideoBitRate.AutoSize = true;
- this.lblInfoOutputVideoBitRate.Location = new System.Drawing.Point(6, 48);
- this.lblInfoOutputVideoBitRate.Name = "lblInfoOutputVideoBitRate";
- this.lblInfoOutputVideoBitRate.Size = new System.Drawing.Size(0, 15);
- this.lblInfoOutputVideoBitRate.TabIndex = 7;
+ lblInfoOutputVideoBitRate.AutoSize = true;
+ lblInfoOutputVideoBitRate.Location = new Point(6, 48);
+ lblInfoOutputVideoBitRate.Name = "lblInfoOutputVideoBitRate";
+ lblInfoOutputVideoBitRate.Size = new Size(0, 15);
+ lblInfoOutputVideoBitRate.TabIndex = 7;
//
// lblInfoOutputAudioCodec
//
- this.lblInfoOutputAudioCodec.AutoSize = true;
- this.lblInfoOutputAudioCodec.Location = new System.Drawing.Point(6, 69);
- this.lblInfoOutputAudioCodec.Name = "lblInfoOutputAudioCodec";
- this.lblInfoOutputAudioCodec.Size = new System.Drawing.Size(0, 15);
- this.lblInfoOutputAudioCodec.TabIndex = 9;
+ lblInfoOutputAudioCodec.AutoSize = true;
+ lblInfoOutputAudioCodec.Location = new Point(6, 69);
+ lblInfoOutputAudioCodec.Name = "lblInfoOutputAudioCodec";
+ lblInfoOutputAudioCodec.Size = new Size(0, 15);
+ lblInfoOutputAudioCodec.TabIndex = 9;
//
// lblInfoOutputVideoDimensions
//
- this.lblInfoOutputVideoDimensions.AutoSize = true;
- this.lblInfoOutputVideoDimensions.Location = new System.Drawing.Point(6, 33);
- this.lblInfoOutputVideoDimensions.Name = "lblInfoOutputVideoDimensions";
- this.lblInfoOutputVideoDimensions.Size = new System.Drawing.Size(0, 15);
- this.lblInfoOutputVideoDimensions.TabIndex = 8;
+ lblInfoOutputVideoDimensions.AutoSize = true;
+ lblInfoOutputVideoDimensions.Location = new Point(6, 33);
+ lblInfoOutputVideoDimensions.Name = "lblInfoOutputVideoDimensions";
+ lblInfoOutputVideoDimensions.Size = new Size(0, 15);
+ lblInfoOutputVideoDimensions.TabIndex = 8;
//
// grpVideoInformationInput
//
- this.grpVideoInformationInput.Controls.Add(this.lblInfoInputAudioBitRate);
- this.grpVideoInformationInput.Controls.Add(this.lblInfoInputAudioSampling);
- this.grpVideoInformationInput.Controls.Add(this.lblInfoInputAudioCodec);
- this.grpVideoInformationInput.Controls.Add(this.lblInfoInputVideoDimensions);
- this.grpVideoInformationInput.Controls.Add(this.lblInfoInputVideoBitRate);
- this.grpVideoInformationInput.Controls.Add(this.lblInfoInputVideoCodec);
- this.grpVideoInformationInput.Location = new System.Drawing.Point(4, 18);
- this.grpVideoInformationInput.Margin = new System.Windows.Forms.Padding(2);
- this.grpVideoInformationInput.Name = "grpVideoInformationInput";
- this.grpVideoInformationInput.Padding = new System.Windows.Forms.Padding(2);
- this.grpVideoInformationInput.Size = new System.Drawing.Size(168, 120);
- this.grpVideoInformationInput.TabIndex = 14;
- this.grpVideoInformationInput.TabStop = false;
- this.grpVideoInformationInput.Text = "Input";
+ grpVideoInformationInput.Controls.Add(lblInfoInputAudioBitRate);
+ grpVideoInformationInput.Controls.Add(lblInfoInputAudioSampling);
+ grpVideoInformationInput.Controls.Add(lblInfoInputAudioCodec);
+ grpVideoInformationInput.Controls.Add(lblInfoInputVideoDimensions);
+ grpVideoInformationInput.Controls.Add(lblInfoInputVideoBitRate);
+ grpVideoInformationInput.Controls.Add(lblInfoInputVideoCodec);
+ grpVideoInformationInput.Location = new Point(4, 18);
+ grpVideoInformationInput.Margin = new Padding(2);
+ grpVideoInformationInput.Name = "grpVideoInformationInput";
+ grpVideoInformationInput.Padding = new Padding(2);
+ grpVideoInformationInput.Size = new Size(168, 120);
+ grpVideoInformationInput.TabIndex = 14;
+ grpVideoInformationInput.TabStop = false;
+ grpVideoInformationInput.Text = "Input";
//
// lblInfoInputAudioBitRate
//
- this.lblInfoInputAudioBitRate.AutoSize = true;
- this.lblInfoInputAudioBitRate.Location = new System.Drawing.Point(6, 99);
- this.lblInfoInputAudioBitRate.Name = "lblInfoInputAudioBitRate";
- this.lblInfoInputAudioBitRate.Size = new System.Drawing.Size(0, 15);
- this.lblInfoInputAudioBitRate.TabIndex = 5;
+ lblInfoInputAudioBitRate.AutoSize = true;
+ lblInfoInputAudioBitRate.Location = new Point(6, 99);
+ lblInfoInputAudioBitRate.Name = "lblInfoInputAudioBitRate";
+ lblInfoInputAudioBitRate.Size = new Size(0, 15);
+ lblInfoInputAudioBitRate.TabIndex = 5;
//
// lblInfoInputAudioSampling
//
- this.lblInfoInputAudioSampling.AutoSize = true;
- this.lblInfoInputAudioSampling.Location = new System.Drawing.Point(6, 84);
- this.lblInfoInputAudioSampling.Name = "lblInfoInputAudioSampling";
- this.lblInfoInputAudioSampling.Size = new System.Drawing.Size(0, 15);
- this.lblInfoInputAudioSampling.TabIndex = 4;
+ lblInfoInputAudioSampling.AutoSize = true;
+ lblInfoInputAudioSampling.Location = new Point(6, 84);
+ lblInfoInputAudioSampling.Name = "lblInfoInputAudioSampling";
+ lblInfoInputAudioSampling.Size = new Size(0, 15);
+ lblInfoInputAudioSampling.TabIndex = 4;
//
// lblInfoInputAudioCodec
//
- this.lblInfoInputAudioCodec.AutoSize = true;
- this.lblInfoInputAudioCodec.Location = new System.Drawing.Point(6, 69);
- this.lblInfoInputAudioCodec.Name = "lblInfoInputAudioCodec";
- this.lblInfoInputAudioCodec.Size = new System.Drawing.Size(0, 15);
- this.lblInfoInputAudioCodec.TabIndex = 3;
+ lblInfoInputAudioCodec.AutoSize = true;
+ lblInfoInputAudioCodec.Location = new Point(6, 69);
+ lblInfoInputAudioCodec.Name = "lblInfoInputAudioCodec";
+ lblInfoInputAudioCodec.Size = new Size(0, 15);
+ lblInfoInputAudioCodec.TabIndex = 3;
//
// lblInfoInputVideoDimensions
//
- this.lblInfoInputVideoDimensions.AutoSize = true;
- this.lblInfoInputVideoDimensions.Location = new System.Drawing.Point(6, 33);
- this.lblInfoInputVideoDimensions.Name = "lblInfoInputVideoDimensions";
- this.lblInfoInputVideoDimensions.Size = new System.Drawing.Size(0, 15);
- this.lblInfoInputVideoDimensions.TabIndex = 2;
+ lblInfoInputVideoDimensions.AutoSize = true;
+ lblInfoInputVideoDimensions.Location = new Point(6, 33);
+ lblInfoInputVideoDimensions.Name = "lblInfoInputVideoDimensions";
+ lblInfoInputVideoDimensions.Size = new Size(0, 15);
+ lblInfoInputVideoDimensions.TabIndex = 2;
//
// lblInfoInputVideoBitRate
//
- this.lblInfoInputVideoBitRate.AutoSize = true;
- this.lblInfoInputVideoBitRate.Location = new System.Drawing.Point(6, 48);
- this.lblInfoInputVideoBitRate.Name = "lblInfoInputVideoBitRate";
- this.lblInfoInputVideoBitRate.Size = new System.Drawing.Size(0, 15);
- this.lblInfoInputVideoBitRate.TabIndex = 1;
+ lblInfoInputVideoBitRate.AutoSize = true;
+ lblInfoInputVideoBitRate.Location = new Point(6, 48);
+ lblInfoInputVideoBitRate.Name = "lblInfoInputVideoBitRate";
+ lblInfoInputVideoBitRate.Size = new Size(0, 15);
+ lblInfoInputVideoBitRate.TabIndex = 1;
//
// lblInfoInputVideoCodec
//
- this.lblInfoInputVideoCodec.AutoSize = true;
- this.lblInfoInputVideoCodec.Location = new System.Drawing.Point(6, 18);
- this.lblInfoInputVideoCodec.Name = "lblInfoInputVideoCodec";
- this.lblInfoInputVideoCodec.Size = new System.Drawing.Size(119, 15);
- this.lblInfoInputVideoCodec.TabIndex = 0;
- this.lblInfoInputVideoCodec.Text = "No input file selected";
+ lblInfoInputVideoCodec.AutoSize = true;
+ lblInfoInputVideoCodec.Location = new Point(6, 18);
+ lblInfoInputVideoCodec.Name = "lblInfoInputVideoCodec";
+ lblInfoInputVideoCodec.Size = new Size(119, 15);
+ lblInfoInputVideoCodec.TabIndex = 0;
+ lblInfoInputVideoCodec.Text = "No input file selected";
//
// dlgOutputFile
//
- this.dlgOutputFile.Filter = "AVI|*.avi|MKV|*.mkv|MOV|*.mov|MP4|*.mp4|MXF|*.mxf";
+ dlgOutputFile.Filter = "AVI|*.avi|MKV|*.mkv|MOV|*.mov|MP4|*.mp4|MXF|*.mxf";
//
// grpOutput
//
- this.grpOutput.Controls.Add(this.grpOutputEncoding);
- this.grpOutput.Controls.Add(this.grpOutputPresentation);
- this.grpOutput.Location = new System.Drawing.Point(11, 387);
- this.grpOutput.Margin = new System.Windows.Forms.Padding(2);
- this.grpOutput.Name = "grpOutput";
- this.grpOutput.Padding = new System.Windows.Forms.Padding(2);
- this.grpOutput.Size = new System.Drawing.Size(347, 158);
- this.grpOutput.TabIndex = 14;
- this.grpOutput.TabStop = false;
- this.grpOutput.Text = "Output";
+ grpOutput.Controls.Add(grpOutputEncoding);
+ grpOutput.Controls.Add(grpOutputPresentation);
+ grpOutput.Location = new Point(11, 409);
+ grpOutput.Margin = new Padding(2);
+ grpOutput.Name = "grpOutput";
+ grpOutput.Padding = new Padding(2);
+ grpOutput.Size = new Size(347, 158);
+ grpOutput.TabIndex = 14;
+ grpOutput.TabStop = false;
+ grpOutput.Text = "Output";
//
// grpOutputEncoding
//
- this.grpOutputEncoding.Controls.Add(this.lblOutputAudioBitRate);
- this.grpOutputEncoding.Controls.Add(this.boxOutputAudioBitRate);
- this.grpOutputEncoding.Controls.Add(this.lblOutputVideoBitRate);
- this.grpOutputEncoding.Controls.Add(this.boxOutputVideoBitRate);
- this.grpOutputEncoding.Controls.Add(this.boxOutputAudioCodec);
- this.grpOutputEncoding.Controls.Add(this.lblOutputVideoCodec);
- this.grpOutputEncoding.Controls.Add(this.lblOutputAudioCodec);
- this.grpOutputEncoding.Controls.Add(this.boxOutputVideoCodec);
- this.grpOutputEncoding.Location = new System.Drawing.Point(4, 77);
- this.grpOutputEncoding.Margin = new System.Windows.Forms.Padding(2);
- this.grpOutputEncoding.Name = "grpOutputEncoding";
- this.grpOutputEncoding.Padding = new System.Windows.Forms.Padding(2);
- this.grpOutputEncoding.Size = new System.Drawing.Size(339, 77);
- this.grpOutputEncoding.TabIndex = 22;
- this.grpOutputEncoding.TabStop = false;
- this.grpOutputEncoding.Text = "Encoding";
+ grpOutputEncoding.Controls.Add(lblOutputAudioBitRate);
+ grpOutputEncoding.Controls.Add(boxOutputAudioBitRate);
+ grpOutputEncoding.Controls.Add(lblOutputVideoBitRate);
+ grpOutputEncoding.Controls.Add(boxOutputVideoBitRate);
+ grpOutputEncoding.Controls.Add(boxOutputAudioCodec);
+ grpOutputEncoding.Controls.Add(lblOutputVideoCodec);
+ grpOutputEncoding.Controls.Add(lblOutputAudioCodec);
+ grpOutputEncoding.Controls.Add(boxOutputVideoCodec);
+ grpOutputEncoding.Location = new Point(4, 77);
+ grpOutputEncoding.Margin = new Padding(2);
+ grpOutputEncoding.Name = "grpOutputEncoding";
+ grpOutputEncoding.Padding = new Padding(2);
+ grpOutputEncoding.Size = new Size(339, 77);
+ grpOutputEncoding.TabIndex = 22;
+ grpOutputEncoding.TabStop = false;
+ grpOutputEncoding.Text = "Encoding";
//
// lblOutputAudioBitRate
//
- this.lblOutputAudioBitRate.AutoSize = true;
- this.lblOutputAudioBitRate.Enabled = false;
- this.lblOutputAudioBitRate.Location = new System.Drawing.Point(173, 52);
- this.lblOutputAudioBitRate.Name = "lblOutputAudioBitRate";
- this.lblOutputAudioBitRate.Size = new System.Drawing.Size(82, 15);
- this.lblOutputAudioBitRate.TabIndex = 25;
- this.lblOutputAudioBitRate.Text = "Audio bit rate:";
+ lblOutputAudioBitRate.AutoSize = true;
+ lblOutputAudioBitRate.Enabled = false;
+ lblOutputAudioBitRate.Location = new Point(173, 52);
+ lblOutputAudioBitRate.Name = "lblOutputAudioBitRate";
+ lblOutputAudioBitRate.Size = new Size(82, 15);
+ lblOutputAudioBitRate.TabIndex = 25;
+ lblOutputAudioBitRate.Text = "Audio bit rate:";
//
// boxOutputAudioBitRate
//
- this.boxOutputAudioBitRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxOutputAudioBitRate.Enabled = false;
- this.boxOutputAudioBitRate.FormattingEnabled = true;
- this.boxOutputAudioBitRate.Items.AddRange(new object[] {
- "8 kbps",
- "16 kbps",
- "24 kbps",
- "32 kbps",
- "48 kbps",
- "64 kbps",
- "96 kbps",
- "128 kbps",
- "160 kbps",
- "192 kbps",
- "224 kbps",
- "256 kbps",
- "320 kbps",
- "384 kbps",
- "448 kbps",
- "512 kbps"});
- this.boxOutputAudioBitRate.Location = new System.Drawing.Point(259, 48);
- this.boxOutputAudioBitRate.Margin = new System.Windows.Forms.Padding(2);
- this.boxOutputAudioBitRate.Name = "boxOutputAudioBitRate";
- this.boxOutputAudioBitRate.Size = new System.Drawing.Size(76, 23);
- this.boxOutputAudioBitRate.TabIndex = 24;
- this.boxOutputAudioBitRate.SelectedIndexChanged += new System.EventHandler(this.boxOutputAudioBitRate_SelectedIndexChanged);
+ boxOutputAudioBitRate.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxOutputAudioBitRate.Enabled = false;
+ boxOutputAudioBitRate.FormattingEnabled = true;
+ boxOutputAudioBitRate.Items.AddRange(new object[] { "8 kbps", "16 kbps", "24 kbps", "32 kbps", "48 kbps", "64 kbps", "96 kbps", "128 kbps", "160 kbps", "192 kbps", "224 kbps", "256 kbps", "320 kbps", "384 kbps", "448 kbps", "512 kbps" });
+ boxOutputAudioBitRate.Location = new Point(259, 48);
+ boxOutputAudioBitRate.Margin = new Padding(2);
+ boxOutputAudioBitRate.Name = "boxOutputAudioBitRate";
+ boxOutputAudioBitRate.Size = new Size(76, 23);
+ boxOutputAudioBitRate.TabIndex = 24;
+ boxOutputAudioBitRate.SelectedIndexChanged += boxOutputAudioBitRate_SelectedIndexChanged;
//
// lblOutputVideoBitRate
//
- this.lblOutputVideoBitRate.AutoSize = true;
- this.lblOutputVideoBitRate.Enabled = false;
- this.lblOutputVideoBitRate.Location = new System.Drawing.Point(6, 52);
- this.lblOutputVideoBitRate.Name = "lblOutputVideoBitRate";
- this.lblOutputVideoBitRate.Size = new System.Drawing.Size(80, 15);
- this.lblOutputVideoBitRate.TabIndex = 22;
- this.lblOutputVideoBitRate.Text = "Video bit rate:";
+ lblOutputVideoBitRate.AutoSize = true;
+ lblOutputVideoBitRate.Enabled = false;
+ lblOutputVideoBitRate.Location = new Point(6, 52);
+ lblOutputVideoBitRate.Name = "lblOutputVideoBitRate";
+ lblOutputVideoBitRate.Size = new Size(80, 15);
+ lblOutputVideoBitRate.TabIndex = 22;
+ lblOutputVideoBitRate.Text = "Video bit rate:";
//
// boxOutputVideoBitRate
//
- this.boxOutputVideoBitRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxOutputVideoBitRate.Enabled = false;
- this.boxOutputVideoBitRate.FormattingEnabled = true;
- this.boxOutputVideoBitRate.Items.AddRange(new object[] {
- "0.5 Mbps",
- "1 Mbps",
- "1.5 Mbps",
- "2 Mbps",
- "2.5 Mbps",
- "3 Mbps",
- "4 Mbps",
- "5 Mbps",
- "6 Mbps",
- "7 Mbps",
- "8 Mbps",
- "9 Mbps",
- "10 Mbps",
- "12 Mbps",
- "15 Mbps",
- "20 Mbps",
- "25 Mbps",
- "30 Mbps",
- "40 Mbps",
- "50 Mbps",
- "100 Mbps",
- "150 Mbps",
- "200 Mbps"});
- this.boxOutputVideoBitRate.Location = new System.Drawing.Point(92, 48);
- this.boxOutputVideoBitRate.Margin = new System.Windows.Forms.Padding(2);
- this.boxOutputVideoBitRate.Name = "boxOutputVideoBitRate";
- this.boxOutputVideoBitRate.Size = new System.Drawing.Size(76, 23);
- this.boxOutputVideoBitRate.TabIndex = 23;
- this.boxOutputVideoBitRate.SelectedIndexChanged += new System.EventHandler(this.boxOutputVideoBitRate_SelectedIndexChanged);
+ boxOutputVideoBitRate.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxOutputVideoBitRate.Enabled = false;
+ boxOutputVideoBitRate.FormattingEnabled = true;
+ boxOutputVideoBitRate.Items.AddRange(new object[] { "0.5 Mbps", "1 Mbps", "1.5 Mbps", "2 Mbps", "2.5 Mbps", "3 Mbps", "4 Mbps", "5 Mbps", "6 Mbps", "7 Mbps", "8 Mbps", "9 Mbps", "10 Mbps", "12 Mbps", "15 Mbps", "20 Mbps", "25 Mbps", "30 Mbps", "40 Mbps", "50 Mbps", "100 Mbps", "150 Mbps", "200 Mbps" });
+ boxOutputVideoBitRate.Location = new Point(92, 48);
+ boxOutputVideoBitRate.Margin = new Padding(2);
+ boxOutputVideoBitRate.Name = "boxOutputVideoBitRate";
+ boxOutputVideoBitRate.Size = new Size(76, 23);
+ boxOutputVideoBitRate.TabIndex = 23;
+ boxOutputVideoBitRate.SelectedIndexChanged += boxOutputVideoBitRate_SelectedIndexChanged;
//
// boxOutputAudioCodec
//
- this.boxOutputAudioCodec.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxOutputAudioCodec.FormattingEnabled = true;
- this.boxOutputAudioCodec.Items.AddRange(new object[] {
- "AAC",
- "AC3",
- "MP2",
- "MP3",
- "PCM_S16BE",
- "PCM_S16LE",
- "PCM_S24BE",
- "PCM_S24LE"});
- this.boxOutputAudioCodec.Location = new System.Drawing.Point(259, 18);
- this.boxOutputAudioCodec.Margin = new System.Windows.Forms.Padding(2);
- this.boxOutputAudioCodec.Name = "boxOutputAudioCodec";
- this.boxOutputAudioCodec.Size = new System.Drawing.Size(76, 23);
- this.boxOutputAudioCodec.TabIndex = 19;
- this.boxOutputAudioCodec.SelectedIndexChanged += new System.EventHandler(this.boxOutputAudioCodec_SelectedIndexChanged);
+ boxOutputAudioCodec.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxOutputAudioCodec.FormattingEnabled = true;
+ boxOutputAudioCodec.Items.AddRange(new object[] { "AAC", "AC3", "MP2", "MP3", "PCM_S16BE", "PCM_S16LE", "PCM_S24BE", "PCM_S24LE" });
+ boxOutputAudioCodec.Location = new Point(259, 18);
+ boxOutputAudioCodec.Margin = new Padding(2);
+ boxOutputAudioCodec.Name = "boxOutputAudioCodec";
+ boxOutputAudioCodec.Size = new Size(76, 23);
+ boxOutputAudioCodec.TabIndex = 19;
+ boxOutputAudioCodec.SelectedIndexChanged += boxOutputAudioCodec_SelectedIndexChanged;
//
// lblOutputVideoCodec
//
- this.lblOutputVideoCodec.AutoSize = true;
- this.lblOutputVideoCodec.Location = new System.Drawing.Point(6, 22);
- this.lblOutputVideoCodec.Name = "lblOutputVideoCodec";
- this.lblOutputVideoCodec.Size = new System.Drawing.Size(75, 15);
- this.lblOutputVideoCodec.TabIndex = 16;
- this.lblOutputVideoCodec.Text = "Video codec:";
+ lblOutputVideoCodec.AutoSize = true;
+ lblOutputVideoCodec.Location = new Point(6, 22);
+ lblOutputVideoCodec.Name = "lblOutputVideoCodec";
+ lblOutputVideoCodec.Size = new Size(75, 15);
+ lblOutputVideoCodec.TabIndex = 16;
+ lblOutputVideoCodec.Text = "Video codec:";
//
// lblOutputAudioCodec
//
- this.lblOutputAudioCodec.AutoSize = true;
- this.lblOutputAudioCodec.Location = new System.Drawing.Point(173, 22);
- this.lblOutputAudioCodec.Name = "lblOutputAudioCodec";
- this.lblOutputAudioCodec.Size = new System.Drawing.Size(77, 15);
- this.lblOutputAudioCodec.TabIndex = 20;
- this.lblOutputAudioCodec.Text = "Audio codec:";
+ lblOutputAudioCodec.AutoSize = true;
+ lblOutputAudioCodec.Location = new Point(173, 22);
+ lblOutputAudioCodec.Name = "lblOutputAudioCodec";
+ lblOutputAudioCodec.Size = new Size(77, 15);
+ lblOutputAudioCodec.TabIndex = 20;
+ lblOutputAudioCodec.Text = "Audio codec:";
//
// boxOutputVideoCodec
//
- this.boxOutputVideoCodec.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxOutputVideoCodec.FormattingEnabled = true;
- this.boxOutputVideoCodec.Items.AddRange(new object[] {
- "DNxHD",
- "DV",
- "H264",
- "HEVC",
- "MPEG2VIDEO",
- "ProRes"});
- this.boxOutputVideoCodec.Location = new System.Drawing.Point(92, 18);
- this.boxOutputVideoCodec.Margin = new System.Windows.Forms.Padding(2);
- this.boxOutputVideoCodec.Name = "boxOutputVideoCodec";
- this.boxOutputVideoCodec.Size = new System.Drawing.Size(76, 23);
- this.boxOutputVideoCodec.TabIndex = 17;
- this.boxOutputVideoCodec.SelectedIndexChanged += new System.EventHandler(this.boxOutputVideoCodec_SelectedIndexChanged);
+ boxOutputVideoCodec.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxOutputVideoCodec.FormattingEnabled = true;
+ boxOutputVideoCodec.Items.AddRange(new object[] { "DNxHD", "DV", "H264", "HEVC", "MPEG2VIDEO", "ProRes" });
+ boxOutputVideoCodec.Location = new Point(92, 18);
+ boxOutputVideoCodec.Margin = new Padding(2);
+ boxOutputVideoCodec.Name = "boxOutputVideoCodec";
+ boxOutputVideoCodec.Size = new Size(76, 23);
+ boxOutputVideoCodec.TabIndex = 17;
+ boxOutputVideoCodec.SelectedIndexChanged += boxOutputVideoCodec_SelectedIndexChanged;
//
// grpOutputPresentation
//
- this.grpOutputPresentation.Controls.Add(this.lblOutputFrameRate);
- this.grpOutputPresentation.Controls.Add(this.boxOutputFrameRate);
- this.grpOutputPresentation.Controls.Add(this.boxOutputResolution);
- this.grpOutputPresentation.Controls.Add(this.lblOutputResolution);
- this.grpOutputPresentation.Location = new System.Drawing.Point(4, 20);
- this.grpOutputPresentation.Margin = new System.Windows.Forms.Padding(2);
- this.grpOutputPresentation.Name = "grpOutputPresentation";
- this.grpOutputPresentation.Padding = new System.Windows.Forms.Padding(2);
- this.grpOutputPresentation.Size = new System.Drawing.Size(339, 53);
- this.grpOutputPresentation.TabIndex = 15;
- this.grpOutputPresentation.TabStop = false;
- this.grpOutputPresentation.Text = "Presentation";
+ grpOutputPresentation.Controls.Add(lblOutputFrameRate);
+ grpOutputPresentation.Controls.Add(boxOutputFrameRate);
+ grpOutputPresentation.Controls.Add(boxOutputResolution);
+ grpOutputPresentation.Controls.Add(lblOutputResolution);
+ grpOutputPresentation.Location = new Point(4, 20);
+ grpOutputPresentation.Margin = new Padding(2);
+ grpOutputPresentation.Name = "grpOutputPresentation";
+ grpOutputPresentation.Padding = new Padding(2);
+ grpOutputPresentation.Size = new Size(339, 53);
+ grpOutputPresentation.TabIndex = 15;
+ grpOutputPresentation.TabStop = false;
+ grpOutputPresentation.Text = "Presentation";
//
// lblOutputFrameRate
//
- this.lblOutputFrameRate.AutoSize = true;
- this.lblOutputFrameRate.Enabled = false;
- this.lblOutputFrameRate.Location = new System.Drawing.Point(188, 24);
- this.lblOutputFrameRate.Name = "lblOutputFrameRate";
- this.lblOutputFrameRate.Size = new System.Drawing.Size(66, 15);
- this.lblOutputFrameRate.TabIndex = 21;
- this.lblOutputFrameRate.Text = "Frame rate:";
+ lblOutputFrameRate.AutoSize = true;
+ lblOutputFrameRate.Enabled = false;
+ lblOutputFrameRate.Location = new Point(188, 24);
+ lblOutputFrameRate.Name = "lblOutputFrameRate";
+ lblOutputFrameRate.Size = new Size(66, 15);
+ lblOutputFrameRate.TabIndex = 21;
+ lblOutputFrameRate.Text = "Frame rate:";
//
// lblOutputResolution
//
- this.lblOutputResolution.AutoSize = true;
- this.lblOutputResolution.Location = new System.Drawing.Point(6, 24);
- this.lblOutputResolution.Name = "lblOutputResolution";
- this.lblOutputResolution.Size = new System.Drawing.Size(66, 15);
- this.lblOutputResolution.TabIndex = 15;
- this.lblOutputResolution.Text = "Resolution:";
+ lblOutputResolution.AutoSize = true;
+ lblOutputResolution.Location = new Point(6, 24);
+ lblOutputResolution.Name = "lblOutputResolution";
+ lblOutputResolution.Size = new Size(66, 15);
+ lblOutputResolution.TabIndex = 15;
+ lblOutputResolution.Text = "Resolution:";
//
// boxResizeMode
//
- this.boxResizeMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxResizeMode.FormattingEnabled = true;
- this.boxResizeMode.Items.AddRange(new object[] {
- "No resizing",
- "Crop",
- "Stretch",
- "Crop then stretch",
- "Stretch then crop"});
- this.boxResizeMode.Location = new System.Drawing.Point(9, 20);
- this.boxResizeMode.Margin = new System.Windows.Forms.Padding(2);
- this.boxResizeMode.Name = "boxResizeMode";
- this.boxResizeMode.Size = new System.Drawing.Size(119, 23);
- this.boxResizeMode.TabIndex = 19;
- this.boxResizeMode.SelectedIndexChanged += new System.EventHandler(this.boxResizeMode_SelectedIndexChanged);
+ boxResizeMode.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxResizeMode.FormattingEnabled = true;
+ boxResizeMode.Items.AddRange(new object[] { "No resizing", "Crop", "Stretch", "Crop then stretch", "Stretch then crop" });
+ boxResizeMode.Location = new Point(9, 20);
+ boxResizeMode.Margin = new Padding(2);
+ boxResizeMode.Name = "boxResizeMode";
+ boxResizeMode.Size = new Size(119, 23);
+ boxResizeMode.TabIndex = 19;
+ boxResizeMode.SelectedIndexChanged += boxResizeMode_SelectedIndexChanged;
//
// boxStretch
//
- this.boxStretch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxStretch.Enabled = false;
- this.boxStretch.FormattingEnabled = true;
- this.boxStretch.Items.AddRange(new object[] {
- "4:3",
- "14:9",
- "16:10",
- "16:9",
- "1.85:1",
- "2.35:1",
- "2.39:1"});
- this.boxStretch.Location = new System.Drawing.Point(283, 20);
- this.boxStretch.Margin = new System.Windows.Forms.Padding(2);
- this.boxStretch.Name = "boxStretch";
- this.boxStretch.Size = new System.Drawing.Size(56, 23);
- this.boxStretch.TabIndex = 18;
+ boxStretch.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxStretch.Enabled = false;
+ boxStretch.FormattingEnabled = true;
+ boxStretch.Items.AddRange(new object[] { "4:3", "14:9", "16:10", "16:9", "1.85:1", "2.35:1", "2.39:1" });
+ boxStretch.Location = new Point(283, 20);
+ boxStretch.Margin = new Padding(2);
+ boxStretch.Name = "boxStretch";
+ boxStretch.Size = new Size(56, 23);
+ boxStretch.TabIndex = 18;
//
// boxCrop
//
- this.boxCrop.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.boxCrop.Enabled = false;
- this.boxCrop.FormattingEnabled = true;
- this.boxCrop.Items.AddRange(new object[] {
- "4:3",
- "14:9",
- "16:10",
- "16:9",
- "1.85:1",
- "2.35:1",
- "2.39:1"});
- this.boxCrop.Location = new System.Drawing.Point(171, 20);
- this.boxCrop.Margin = new System.Windows.Forms.Padding(2);
- this.boxCrop.Name = "boxCrop";
- this.boxCrop.Size = new System.Drawing.Size(56, 23);
- this.boxCrop.TabIndex = 17;
+ boxCrop.DropDownStyle = ComboBoxStyle.DropDownList;
+ boxCrop.Enabled = false;
+ boxCrop.FormattingEnabled = true;
+ boxCrop.Items.AddRange(new object[] { "4:3", "14:9", "16:10", "16:9", "1.85:1", "2.35:1", "2.39:1" });
+ boxCrop.Location = new Point(171, 20);
+ boxCrop.Margin = new Padding(2);
+ boxCrop.Name = "boxCrop";
+ boxCrop.Size = new Size(56, 23);
+ boxCrop.TabIndex = 17;
//
// lblStretch
//
- this.lblStretch.AutoSize = true;
- this.lblStretch.Enabled = false;
- this.lblStretch.Location = new System.Drawing.Point(232, 24);
- this.lblStretch.Name = "lblStretch";
- this.lblStretch.Size = new System.Drawing.Size(47, 15);
- this.lblStretch.TabIndex = 16;
- this.lblStretch.Text = "Stretch:";
+ lblStretch.AutoSize = true;
+ lblStretch.Enabled = false;
+ lblStretch.Location = new Point(232, 24);
+ lblStretch.Name = "lblStretch";
+ lblStretch.Size = new Size(47, 15);
+ lblStretch.TabIndex = 16;
+ lblStretch.Text = "Stretch:";
//
// lblCrop
//
- this.lblCrop.AutoSize = true;
- this.lblCrop.Enabled = false;
- this.lblCrop.Location = new System.Drawing.Point(132, 24);
- this.lblCrop.Name = "lblCrop";
- this.lblCrop.Size = new System.Drawing.Size(36, 15);
- this.lblCrop.TabIndex = 15;
- this.lblCrop.Text = "Crop:";
+ lblCrop.AutoSize = true;
+ lblCrop.Enabled = false;
+ lblCrop.Location = new Point(132, 24);
+ lblCrop.Name = "lblCrop";
+ lblCrop.Size = new Size(36, 15);
+ lblCrop.TabIndex = 15;
+ lblCrop.Text = "Crop:";
//
// grpResize
//
- this.grpResize.Controls.Add(this.boxStretch);
- this.grpResize.Controls.Add(this.boxResizeMode);
- this.grpResize.Controls.Add(this.lblCrop);
- this.grpResize.Controls.Add(this.lblStretch);
- this.grpResize.Controls.Add(this.boxCrop);
- this.grpResize.Location = new System.Drawing.Point(11, 331);
- this.grpResize.Margin = new System.Windows.Forms.Padding(2);
- this.grpResize.Name = "grpResize";
- this.grpResize.Padding = new System.Windows.Forms.Padding(2);
- this.grpResize.Size = new System.Drawing.Size(347, 52);
- this.grpResize.TabIndex = 22;
- this.grpResize.TabStop = false;
- this.grpResize.Text = "Resize";
+ grpResize.Controls.Add(boxStretch);
+ grpResize.Controls.Add(boxResizeMode);
+ grpResize.Controls.Add(lblCrop);
+ grpResize.Controls.Add(lblStretch);
+ grpResize.Controls.Add(boxCrop);
+ grpResize.Location = new Point(11, 353);
+ grpResize.Margin = new Padding(2);
+ grpResize.Name = "grpResize";
+ grpResize.Padding = new Padding(2);
+ grpResize.Size = new Size(347, 52);
+ grpResize.TabIndex = 22;
+ grpResize.TabStop = false;
+ grpResize.Text = "Resize";
//
// btnConvert
//
- this.btnConvert.Font = new System.Drawing.Font("Segoe UI", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
- this.btnConvert.Location = new System.Drawing.Point(10, 550);
- this.btnConvert.Name = "btnConvert";
- this.btnConvert.Size = new System.Drawing.Size(349, 41);
- this.btnConvert.TabIndex = 23;
- this.btnConvert.Text = "Convert";
- this.btnConvert.UseVisualStyleBackColor = true;
- this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click);
+ btnConvert.Font = new Font("Segoe UI", 16F, FontStyle.Bold, GraphicsUnit.Point);
+ btnConvert.Location = new Point(10, 572);
+ btnConvert.Name = "btnConvert";
+ btnConvert.Size = new Size(349, 41);
+ btnConvert.TabIndex = 23;
+ btnConvert.Text = "Convert";
+ btnConvert.UseVisualStyleBackColor = true;
+ btnConvert.Click += btnConvert_Click;
//
// Main
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(369, 619);
- this.Controls.Add(this.btnConvert);
- this.Controls.Add(this.grpResize);
- this.Controls.Add(this.grpOutput);
- this.Controls.Add(this.grpFileInformation);
- this.Controls.Add(this.grpProcessing);
- this.Controls.Add(this.lblOutput);
- this.Controls.Add(this.btnSave);
- this.Controls.Add(this.txtInputFilename);
- this.Controls.Add(this.lblInput);
- this.Controls.Add(this.statusStrip);
- this.Controls.Add(this.btnOpen);
- this.Controls.Add(this.txtOutputFilename);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.Margin = new System.Windows.Forms.Padding(2);
- this.MaximizeBox = false;
- this.Name = "Main";
- this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
- this.Text = "Brovicon";
- this.Load += new System.EventHandler(this.Main_Load);
- this.statusStrip.ResumeLayout(false);
- this.statusStrip.PerformLayout();
- this.grpProcessing.ResumeLayout(false);
- this.grpProcessingAudio.ResumeLayout(false);
- this.grpProcessingAudio.PerformLayout();
- this.grpProcessingVideo.ResumeLayout(false);
- this.grpProcessingVideo.PerformLayout();
- this.grpFileInformation.ResumeLayout(false);
- this.grpVideoInformationOutput.ResumeLayout(false);
- this.grpVideoInformationOutput.PerformLayout();
- this.grpVideoInformationInput.ResumeLayout(false);
- this.grpVideoInformationInput.PerformLayout();
- this.grpOutput.ResumeLayout(false);
- this.grpOutputEncoding.ResumeLayout(false);
- this.grpOutputEncoding.PerformLayout();
- this.grpOutputPresentation.ResumeLayout(false);
- this.grpOutputPresentation.PerformLayout();
- this.grpResize.ResumeLayout(false);
- this.grpResize.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(369, 641);
+ Controls.Add(btnConvert);
+ Controls.Add(grpResize);
+ Controls.Add(grpOutput);
+ Controls.Add(grpFileInformation);
+ Controls.Add(grpProcessing);
+ Controls.Add(lblOutput);
+ Controls.Add(btnSave);
+ Controls.Add(txtInputFilename);
+ Controls.Add(lblInput);
+ Controls.Add(statusStrip);
+ Controls.Add(btnOpen);
+ Controls.Add(txtOutputFilename);
+ FormBorderStyle = FormBorderStyle.FixedSingle;
+ Margin = new Padding(2);
+ MaximizeBox = false;
+ Name = "Main";
+ SizeGripStyle = SizeGripStyle.Hide;
+ Text = "Brovicon";
+ Load += Main_Load;
+ statusStrip.ResumeLayout(false);
+ statusStrip.PerformLayout();
+ grpProcessing.ResumeLayout(false);
+ grpProcessingAudio.ResumeLayout(false);
+ grpProcessingAudio.PerformLayout();
+ grpProcessingVideo.ResumeLayout(false);
+ grpProcessingVideo.PerformLayout();
+ grpFileInformation.ResumeLayout(false);
+ grpVideoInformationOutput.ResumeLayout(false);
+ grpVideoInformationOutput.PerformLayout();
+ grpVideoInformationInput.ResumeLayout(false);
+ grpVideoInformationInput.PerformLayout();
+ grpOutput.ResumeLayout(false);
+ grpOutputEncoding.ResumeLayout(false);
+ grpOutputEncoding.PerformLayout();
+ grpOutputPresentation.ResumeLayout(false);
+ grpOutputPresentation.PerformLayout();
+ grpResize.ResumeLayout(false);
+ grpResize.PerformLayout();
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
@@ -905,5 +837,7 @@ private void InitializeComponent()
private CheckBox chkMixStereo;
private GroupBox grpProcessingVideo;
private Label lblForce;
+ private Label lblFieldOrder;
+ private ComboBox boxFieldOrder;
}
}
\ No newline at end of file
diff --git a/Brovicon/Main.cs b/Brovicon/Main.cs
index 087118c..6f40598 100644
--- a/Brovicon/Main.cs
+++ b/Brovicon/Main.cs
@@ -1,3 +1,5 @@
+using static Brovicon.Standards;
+
namespace Brovicon
{
public partial class Main : Form
@@ -16,6 +18,9 @@ private void Main_Load(object sender, EventArgs e)
// No resize
boxResizeMode.SelectedIndex = 0;
+ // Set FieldOrder enum data source for combo box
+ boxFieldOrder.DataSource = Enum.GetValues(typeof(FieldOrder));
+
// Ensure dependencies exist
if (!File.Exists("avs/ffmpeg.exe"))
{
@@ -82,6 +87,10 @@ private void chkForceInterlaced_CheckedChanged(object sender, EventArgs e)
{
// Unchecks 'Force Progressive' if it is checked
chkForceProgressive.Checked &= !chkForceInterlaced.Checked;
+
+ // Enables field order selector
+ lblFieldOrder.Enabled = chkForceInterlaced.Checked;
+ boxFieldOrder.Enabled = chkForceInterlaced.Checked;
}
// Triggered when 'Force Progressive' is toggled
@@ -89,6 +98,10 @@ private void chkForceProgressive_CheckedChanged(object sender, EventArgs e)
{
// Unchecks 'Force Interlaced' if it is checked
chkForceInterlaced.Checked &= !chkForceProgressive.Checked;
+
+ // Disables field order selector
+ lblFieldOrder.Enabled = false;
+ boxFieldOrder.Enabled = false;
}
// Triggered when resize mode is changed
@@ -360,6 +373,12 @@ private async void btnConvert_Click(object sender, EventArgs e)
if (chkForceProgressive.Checked)
deInterlace = false;
+ // Field order
+ var fieldOrder = FieldOrder.Auto;
+
+ if (boxFieldOrder.Enabled)
+ fieldOrder = (FieldOrder)boxFieldOrder.SelectedItem;
+
// Codecs and bit rates
var videoCodec = boxOutputVideoCodec.Text.ToLower();
var videoBitRate = 0;
@@ -384,6 +403,7 @@ private async void btnConvert_Click(object sender, EventArgs e)
var script = Scripting.GenerateAviSynthScript(
inputFilename,
deInterlace,
+ fieldOrder,
processNoise,
originalHeight,
originalRatio,
diff --git a/Brovicon/Main.resx b/Brovicon/Main.resx
index 6a25399..f9469ff 100644
--- a/Brovicon/Main.resx
+++ b/Brovicon/Main.resx
@@ -1,4 +1,64 @@
-
+
+
+
diff --git a/Brovicon/Scripting.cs b/Brovicon/Scripting.cs
index 40cc05d..e9de7aa 100644
--- a/Brovicon/Scripting.cs
+++ b/Brovicon/Scripting.cs
@@ -1,4 +1,6 @@
-namespace Brovicon
+using static Brovicon.Standards;
+
+namespace Brovicon
{
static class Scripting
{
@@ -25,18 +27,19 @@ static class Scripting
// Generates an AviSynth script given parameters
public static string GenerateAviSynthScript
(
- string videoFileName,
- bool deInterlace,
- bool deNoise,
- int originalHeight,
- double originalRatio,
- int targetWidth,
- int targetHeight,
- double cropRatio,
- double stretchRatio,
- bool stretchFirst,
- double targetFrameRate,
- bool interpolate
+ string videoFileName,
+ bool deInterlace,
+ FieldOrder fieldOrder,
+ bool deNoise,
+ int originalHeight,
+ double originalRatio,
+ int targetWidth,
+ int targetHeight,
+ double cropRatio,
+ double stretchRatio,
+ bool stretchFirst,
+ double targetFrameRate,
+ bool interpolate
)
{
// String the script will be written to
@@ -93,7 +96,19 @@ void callFunction(string function, params object[] args)
// De-interlace
if (deInterlace)
+ {
+ // Set field order
+ if (fieldOrder != FieldOrder.Auto)
+ {
+ if (fieldOrder == FieldOrder.Upper)
+ callFunction("AssumeTFF");
+
+ if (fieldOrder == FieldOrder.Lower)
+ callFunction("AssumeBFF");
+ }
+
callFunction("QTGMC");
+ }
// De-noise
if (deNoise)
diff --git a/Brovicon/Standards.cs b/Brovicon/Standards.cs
index 51c7f20..0708358 100644
--- a/Brovicon/Standards.cs
+++ b/Brovicon/Standards.cs
@@ -2,6 +2,14 @@
{
static class Standards
{
+ // Interlacing - field dominance
+ public enum FieldOrder
+ {
+ Auto,
+ Upper,
+ Lower
+ }
+
public class NTSC : IStandard
{
// NTSC rates only