Example #1
0
        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();
        }
Example #2
0
 public MuxWindow(IMuxing muxer, MainForm mainForm) : base()
 {
     InitializeComponent();
     this.mainForm = mainForm;
     this.muxer    = muxer;
     if (muxer.GetSupportedAudioTypes().Count == 0)
     {
         audioGroupbox.Enabled = false;
     }
     if (muxer.GetSupportedChapterTypes().Count == 0)
     {
         chaptersGroupbox.Enabled = false;
     }
     if (muxer.GetSupportedSubtitleTypes().Count == 0)
     {
         subtitleGroupbox.Enabled = false;
     }
     if (muxer.GetSupportedContainerInputTypes().Count == 0)
     {
         muxedInputOpenButton.Enabled = false;
     }
     if (muxer.GetSupportedChapterTypes().Count == 0)
     {
         chaptersGroupbox.Enabled = false;
     }
 }
Example #3
0
        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;
                }
            }
        }
Example #4
0
        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();
        }