diff options
author | sr55 <[email protected]> | 2008-04-17 20:53:10 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-04-17 20:53:10 +0000 |
commit | 327fd9f7cfd7a379a96ab8c22db4d871ef4bab1f (patch) | |
tree | 71fae1b08a8986b230c04a4400ba68f0b207d455 /win/C#/frmMain.cs | |
parent | 823fe31bd3ab2e75e5687791b4571da299762f97 (diff) |
WinGui:
- Added theora support.
- Renamed the video encoders to match the mac gui.
- Made 64bit/OptimizeMP4/ipodatom invisible when non .mp4/m4v formats are in use
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1425 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 75 |
1 files changed, 74 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 7930f5036..2ae2e1b90 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -639,11 +639,32 @@ namespace Handbrake private void text_destination_TextChanged(object sender, EventArgs e)
{
setAudioByContainer(text_destination.Text);
+ setVideoByContainer(text_destination.Text);
}
// Output Settings
private void drp_videoEncoder_SelectedIndexChanged(object sender, EventArgs e)
{
+ if ((text_destination.Text.Contains(".mp4")) || (text_destination.Text.Contains(".m4v")))
+ {
+ check_largeFile.Enabled = true;
+ check_iPodAtom.Enabled = true;
+ check_optimiseMP4.Enabled = true;
+ check_largeFile.Visible = true;
+ check_iPodAtom.Visible = true;
+ check_optimiseMP4.Visible = true;
+ }
+ else
+ {
+ check_largeFile.Checked = false;
+ check_iPodAtom.Checked = false;
+ check_optimiseMP4.Checked = false;
+ check_largeFile.Visible = false;
+ check_iPodAtom.Visible = false;
+ check_optimiseMP4.Visible = false;
+ }
+
+
//Turn off some options which are H.264 only when the user selects a non h.264 encoder
if (!drp_videoEncoder.Text.Contains("H.264"))
{
@@ -1799,7 +1820,7 @@ namespace Handbrake {
string oldval = "";
- if ((path.EndsWith(".mp4")) || (path.EndsWith(".mp4")))
+ if ((path.EndsWith(".mp4")) || (path.EndsWith(".m4v")))
{
oldval = drp_audenc_1.Text;
drp_audenc_1.Items.Clear();
@@ -1944,6 +1965,58 @@ namespace Handbrake }
}
}
+ private void setVideoByContainer(String path)
+ {
+ string oldval = "";
+
+ if ((path.EndsWith(".mp4")) || (path.EndsWith(".m4v")))
+ {
+ oldval = drp_videoEncoder.Text;
+ drp_videoEncoder.Items.Clear();
+ drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");
+ drp_videoEncoder.Items.Add("MPEG-4 (XviD)");
+ drp_videoEncoder.Items.Add("H.264 (x264)");
+ if (oldval == "VP3 (Theora)")
+ drp_videoEncoder.SelectedIndex = 2;
+ else
+ drp_videoEncoder.Text = oldval;
+
+ }
+ else if (path.EndsWith(".avi"))
+ {
+ oldval = drp_videoEncoder.Text;
+ drp_videoEncoder.Items.Clear();
+ drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");
+ drp_videoEncoder.Items.Add("MPEG-4 (XviD)");
+ drp_videoEncoder.Items.Add("H.264 (x264)");
+ if (oldval == "VP3 (Theora)")
+ drp_videoEncoder.SelectedIndex = 2;
+ else
+ drp_videoEncoder.Text = oldval;
+ }
+ else if (path.EndsWith(".ogm"))
+ {
+ oldval = drp_videoEncoder.Text;
+ drp_videoEncoder.Items.Clear();
+ drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");
+ drp_videoEncoder.Items.Add("MPEG-4 (XviD)");
+ drp_videoEncoder.Items.Add("VP3 (Theora)");
+ if (oldval == "H.264 (x264)")
+ drp_videoEncoder.SelectedIndex = 2;
+ else
+ drp_videoEncoder.Text = oldval;
+ }
+ else if (path.EndsWith(".mkv"))
+ {
+ oldval = drp_videoEncoder.Text;
+ drp_videoEncoder.Items.Clear();
+ drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");
+ drp_videoEncoder.Items.Add("MPEG-4 (XviD)");
+ drp_videoEncoder.Items.Add("H.264 (x264)");
+ drp_videoEncoder.Items.Add("VP3 (Theora)");
+ drp_videoEncoder.Text = oldval;
+ }
+ }
// Preset system functions
private void addPresetToList(ArrayList presetNameList)
|