/// <summary> /// The export. /// </summary> /// <param name="filename"> /// The filename. /// </param> /// <param name="preset"> /// The preset. /// </param> /// <param name="configuration"> /// The configuration. /// </param> public void Export(string filename, Preset preset, HBConfiguration configuration) { // TODO Add support for multiple export PresetTransportContainer container = JsonPresetFactory.ExportPreset(preset, configuration); HandBrakePresetService.ExportPreset(filename, container); }
public void Export(string filename, string presetName) { Preset foundPreset = this.flatPresetList.FirstOrDefault(s => s.Name == presetName); if (foundPreset != null) { PresetTransportContainer container = JsonPresetFactory.ExportPreset(foundPreset); HandBrakePresetService.ExportPreset(filename, container); } }
public void ExportCategories(string filename, IList <PresetDisplayCategory> categories, HBConfiguration configuration) { PresetTransportContainer container = JsonPresetFactory.ExportPresetCategories(categories, configuration); HandBrakePresetService.ExportPreset(filename, container); }