public IJobProcessor GetMuxer(MuxerType type, MeGUISettings settings) { IMuxing muxer = GetMuxer(type); if (muxer == null) { return(null); } return(muxer.GetMuxer(settings)); }
public baseMuxWindow(MainForm mainForm, IMuxing muxer) : this() { this.mainForm = mainForm; this.settings = mainForm.Settings; this.muxer = muxer; muxProvider = mainForm.MuxProvider; cbType.Items.Add("Standard"); cbType.Items.AddRange(muxProvider.GetSupportedDevices((ContainerType)cbContainer.SelectedItem).ToArray()); cbType.SelectedIndex = 0; }
public IJobProcessor GetEncoder(TEncoderType codec, TType outputType, MeGUISettings settings) { if (supportedEncoderTypes.Contains(codec)) { foreach (TType vto in GetSupportedOutputTypes(codec)) { if (vto.GetType() == outputType.GetType()) { return(CreateEncoder(settings)); } } } return(null); }
/// <summary> /// gets an encoder for the given codec and output type /// </summary> /// <param name="videoCodec">the desired video codec</param> /// <param name="outputType">the desired output type</param> /// <returns>the encoder found or null if no encoder was found</returns> public IJobProcessor GetEncoder(MeGUISettings settings, TEncoderType codec, TType outputType) { IJobProcessor encoder = null; foreach (IEncoding <TCodec, TType, TEncoderType> encodingInterface in this.registeredEncoders) { if (!encodingInterface.GetSupportedEncoderTypes().Contains(codec)) { continue; } if (!encodingInterface.GetSupportedOutputTypes(codec).Contains(outputType)) { continue; } encoder = encodingInterface.GetEncoder(codec, outputType, settings); } return(encoder); }
public override IJobProcessor GetMuxer(MeGUISettings settings) { return(new MkvMergeMuxer(settings.MkvmergePath)); }
public override IJobProcessor CreateEncoder(MeGUISettings settings) { return(new mencoderEncoder(settings.MencoderPath)); }
public override IJobProcessor GetMuxer(MeGUISettings settings) { return(new MP4BoxMuxer(settings.Mp4boxPath)); }
public override IJobProcessor CreateEncoder(MeGUISettings settings) { return(new XviDEncoder(settings.XviDEncrawPath)); }
public override IJobProcessor CreateEncoder(MeGUISettings settings) { return(new x264Encoder(settings.X264Path)); }
private void mnuToolsSettings_Click(object sender, System.EventArgs e) { using (SettingsForm sform = new SettingsForm()) { sform.Settings = this.settings; if (sform.ShowDialog() == DialogResult.OK) { this.settings = sform.Settings; this.saveSettings(); Jobs.showAfterEncodingStatus(settings); } } }
internal AviSynthAudioEncoder(MeGUISettings settings) { _settings = settings; }
public abstract IJobProcessor GetMuxer(MeGUISettings meguiSettings);
public AudioEncoder(MeGUISettings settings) { this.settings = settings; }
public baseMuxWindow(MainForm mainForm) : this() { this.mainForm = mainForm; this.settings = mainForm.Settings; muxProvider = mainForm.MuxProvider; cbType.Items.Add("Standard"); cbType.Items.AddRange(muxProvider.GetSupportedDevices().ToArray()); cbType.SelectedIndex = 0; }
public override Muxer GetMuxer(MeGUISettings settings) { throw new Exception("AVI-Mux GUI muxer not supported yet"); //return new AVIMuxGUIMuxer(settings.AviMuxGUIPath); }
internal AviSynthAudioEncoder(MeGUISettings settings) { SAMPLES_PER_UPDATE = (int)settings.AudioSamplesPerUpdate; _settings = settings; }
/// <summary> /// loads the global settings /// </summary> public void loadSettings() { string fileName = Path.Combine(path, "settings.xml"); if (File.Exists(fileName)) { XmlSerializer ser = null; using (Stream s = File.OpenRead(fileName)) { ser = new XmlSerializer(typeof(MeGUISettings)); try { this.settings = (MeGUISettings)ser.Deserialize(s); } catch (Exception e) { MessageBox.Show("Settings could not be loaded.", "Error loading profile", MessageBoxButtons.OK, MessageBoxIcon.Error); Console.Write(e.Message); } } } }
/// <summary> /// default constructor /// initializes all the GUI components, initializes the internal objects and makes a default selection for all the GUI dropdowns /// In addition, all the jobs and profiles are being loaded from the harddisk /// </summary> public void constructMeGUIInfo() { muxProvider = new MuxProvider(this); this.codecs = new CodecManager(); this.path = System.Windows.Forms.Application.StartupPath; this.jobUtil = new JobUtil(this); this.settings = new MeGUISettings(); addPackages(); this.profileManager = new ProfileManager(this.path); this.profileManager.LoadProfiles(); this.mediaFileFactory = new MediaFileFactory(this); this.loadSettings(); this.dialogManager = new DialogManager(this); }
public override IJobProcessor GetMuxer(MeGUISettings settings) { return(new Avc2AviMuxer(settings.Avc2aviPath)); }
public virtual string EncoderPath(MeGUISettings settings) { return(settings.MencoderPath); }
public override Muxer GetMuxer(MeGUISettings meguiSettings) { return(new DivXMuxer(meguiSettings.DivXMuxPath)); }
public baseMuxWindow(MainForm mainForm) : this() { this.mainForm = mainForm; this.settings = mainForm.Settings; }
public abstract IJobProcessor CreateEncoder(MeGUISettings settings);
public abstract Muxer GetMuxer(MeGUISettings meguiSettings);
public override string EncoderPath(MeGUISettings settings) { return(settings.X264farmControllerPath); }
public override IJobProcessor CreateEncoder(MeGUISettings settings) { return(new AviSynthAudioEncoder(settings)); }
public override string EncoderPath(MeGUISettings settings) { return(settings.XviDEncrawPath); }
public VideoEncoder(MeGUISettings settings) { this.settings = settings; }