public MuxWindow(IMuxing muxer, MainForm mainForm) : base() { InitializeComponent(); this.mainForm = mainForm; this.muxer = muxer; if (muxer.GetSupportedAudioTypes().Count == 0) { audio.Enabled = false; } if (muxer.GetSupportedChapterTypes().Count == 0) { chaptersGroupbox.Enabled = false; } if (muxer.GetSupportedSubtitleTypes().Count == 0) { subtitles.Enabled = false; } if (muxer.GetSupportedChapterTypes().Count == 0) { chaptersGroupbox.Enabled = false; } muxedInput.Filter = muxer.GetMuxedInputFilter(); audioTracks[0].Filter = muxer.GetAudioInputFilter(); output.Filter = muxer.GetOutputTypeFilter(); subtitleTracks[0].Filter = muxer.GetSubtitleInputFilter(); vInput.Filter = muxer.GetVideoInputFilter(); }
public MuxWindow(IMuxing muxer, MainForm mainForm) : base(mainForm, muxer) { InitializeComponent(); this.muxer = muxer; if (muxer.GetSupportedAudioTypes().Count == 0) { audio.Enabled = false; } if (muxer.GetSupportedChapterTypes().Count == 0) { chaptersGroupbox.Enabled = false; } if (muxer.GetSupportedSubtitleTypes().Count == 0) { subtitles.Enabled = false; } else if (this.muxer.MuxerType == MuxerType.MKVMERGE) { subtitleTracks[0].ShowDefaultSubtitleStream = true; subtitleTracks[0].ShowDelay = true; subtitleTracks[0].chkDefaultStream.CheckedChanged += new System.EventHandler(base.chkDefaultStream_CheckedChanged); subtitleTracks[0].chkDefaultStream.Checked = true; subtitleTracks[0].ShowForceSubtitleStream = true; } if (muxer.GetSupportedChapterTypes().Count == 0) { chaptersGroupbox.Enabled = false; } if (muxer.GetSupportedDeviceTypes().Count == 0) { cbType.Enabled = false; } muxedInput.Filter = muxer.GetMuxedInputFilter(); audioTracks[0].Filter = muxer.GetAudioInputFilter(); output.Filter = muxer.GetOutputTypeFilter(); subtitleTracks[0].Filter = muxer.GetSubtitleInputFilter(); vInput.Filter = muxer.GetVideoInputFilter(); chapters.Filter = muxer.GetChapterInputFilter(); base.muxButton.Click += new System.EventHandler(this.muxButton_Click); this.Text = "MeGUI - " + muxer.Name; cbType.Items.Clear(); cbType.Items.Add("Standard"); cbType.Items.AddRange(muxer.GetSupportedDeviceTypes().ToArray()); this.cbType.SelectedIndex = 0; foreach (object o in cbType.Items) // I know this is ugly, but using the DeviceOutputType doesn't work unless we're switching to manual serialization { if (o.ToString().Equals(mainForm.Settings.AedSettings.DeviceOutputType)) { cbType.SelectedItem = o; break; } } }
public MuxWindow(IMuxing muxer, MainForm mainForm) : base(mainForm) { InitializeComponent(); this.muxer = muxer; if (muxer.GetSupportedAudioTypes().Count == 0) audio.Enabled = false; if (muxer.GetSupportedChapterTypes().Count == 0) chaptersGroupbox.Enabled = false; if (muxer.GetSupportedSubtitleTypes().Count == 0) subtitles.Enabled = false; if (muxer.GetSupportedChapterTypes().Count == 0) chaptersGroupbox.Enabled = false; if (muxer.GetSupportedDeviceTypes().Count == 0) cbType.Enabled = false; muxedInput.Filter = muxer.GetMuxedInputFilter(); audioTracks[0].Filter = muxer.GetAudioInputFilter(); output.Filter = muxer.GetOutputTypeFilter(); subtitleTracks[0].Filter = muxer.GetSubtitleInputFilter(); vInput.Filter = muxer.GetVideoInputFilter(); chapters.Filter = muxer.GetChapterInputFilter(); }